/* Tecnonastri – single page */
:root {
  --color-bg: #f5f5f0;
  --color-text: #1a1a1a;
  --color-primary: #c45a2e;
  --color-primary-hover: #a84a24;
  --color-accent: #2d5a4a;
  --color-overlay: rgba(0, 0, 0, 0.5);
  --font-sans: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-serif: Georgia, serif;
  --max-width: 960px;
  --space: 1.25rem;
  --space-lg: 2.5rem;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space);
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus {
  top: var(--space);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space);
  color: #fff;
  max-width: 32rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 1.05rem;
  margin: 0 0 var(--space-lg);
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.hero-phone {
  margin: 0 0 var(--space);
  font-size: 1.15rem;
}

.hero-phone a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.hero-phone a:hover {
  text-decoration: underline;
}

.hero-counter {
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.counter-text {
  color: #fff;
  font-weight: 500;
}

/* Banner Urgente */
.banner-urgente {
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
  color: #fff;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.banner-urgente.hidden {
  display: none;
}

.banner-urgente-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
}

.banner-icon {
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.banner-text {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

#banner-timer {
  font-weight: 700;
  color: #fef3c7;
  font-size: 1.05rem;
}

.banner-close {
  position: absolute;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  padding: 0;
  line-height: 1;
}

.banner-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-urgent {
  position: relative;
  animation: glow 2s infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 10px rgba(196, 90, 46, 0.5); }
  50% { box-shadow: 0 0 20px rgba(196, 90, 46, 0.8); }
}

@media (max-width: 768px) {
  .banner-text {
    font-size: 0.85rem;
  }
  
  .banner-urgente-inner {
    padding-right: 2.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--color-text);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #20bd5a;
}

/* Sections */
.section {
  padding: var(--space-lg) 0;
}

.section-title {
  font-size: 1.75rem;
  margin: 0 0 var(--space);
  color: var(--color-text);
}

.section-intro {
  margin: 0 0 var(--space-lg);
  color: #444;
}

/* Chi siamo */
.chi-siamo-lead {
  font-size: 1.15rem;
  margin-bottom: var(--space);
}

.chi-siamo .container p {
  margin: 0 0 0.75rem;
}

.link-video {
  color: var(--color-primary);
  font-weight: 600;
}

/* Prodotti */
.prodotti-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.prodotto-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-lg);
  border-bottom: 1px solid #ddd;
  border-radius: var(--radius);
}

.prodotto-row:last-child {
  border-bottom: none;
}

.prodotto-featured {
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(196, 90, 46, 0.15);
  background: linear-gradient(to bottom, #fff 0%, #fffaf8 100%);
  position: relative;
  padding: 2.5rem;
  margin: 0 calc(-1 * var(--space-lg));
  grid-column: 1 / -1;
  max-width: calc(100% + 2 * var(--space-lg));
}

@media (min-width: 768px) {
  .prodotto-featured {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
  }
}

.prodotto-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
}

.badges-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.badge-featured {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
}

.badge-bestseller {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.timer-offerta-prodotto {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0.5rem 0 1rem;
  padding: 0.5rem 1rem;
  background: rgba(196, 90, 46, 0.1);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-primary);
}

.prodotto-benefici {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.prodotto-featured .prodotto-benefici {
  margin: 1.5rem 0 2rem;
  padding: 1rem;
  background: rgba(196, 90, 46, 0.05);
  border-radius: var(--radius);
}

.prodotto-benefici li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  color: #444;
  font-size: 0.95rem;
}

.prodotto-featured .prodotto-benefici li {
  padding: 0.65rem 0 0.65rem 2rem;
  font-size: 1rem;
  font-weight: 500;
}

.prodotto-benefici li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 700;
  font-size: 1.1rem;
}

.prodotto-info h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.prodotto-featured .prodotto-info h3 {
  font-size: 1.75rem;
  margin: 0.5rem 0 0.75rem;
}

.prodotto-info .desc {
  margin: 0 0 var(--space);
  color: #444;
  line-height: 1.6;
}

.prodotto-featured .prodotto-info .desc {
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.prodotto-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.prodotto-featured .prodotto-tabs {
  margin: 1rem 0 1.25rem;
}

.prodotto-tab {
  padding: 0.5rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -2px;
  position: relative;
}

.prodotto-tab:hover {
  color: var(--color-primary);
  background: rgba(196, 90, 46, 0.05);
}

.prodotto-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: rgba(196, 90, 46, 0.08);
}

.prodotto-tab:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .prodotto-tabs {
    gap: 0.25rem;
  }
  
  .prodotto-tab {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    flex: 1;
  }
}

.prodotto-info .btn {
  margin-top: 0.5rem;
}

.prodotto-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.prodotto-featured .prodotto-cta-group {
  margin-top: 2rem;
  gap: 1rem;
}

.prodotto-cta-group .btn {
  flex: 1;
  min-width: 140px;
  margin-top: 0;
}

@media (max-width: 767px) {
  .prodotto-cta-group {
    flex-direction: column;
  }
  
  .prodotto-cta-group .btn {
    width: 100%;
    flex: none;
  }
}

.prodotto-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  background: #e8e8e8;
}

.prodotto-gallery {
  width: 100%;
}

.prodotto-image-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  background: #e8e8e8;
  margin-bottom: 0.75rem;
  transition: opacity 0.3s ease;
}

.prodotto-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.prodotto-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: calc(var(--radius) * 0.75);
  background: #e8e8e8;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.prodotto-thumbnail:hover {
  opacity: 1;
  border-color: var(--color-primary);
  transform: scale(1.05);
}

.prodotto-thumbnail.active {
  opacity: 1;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(196, 90, 46, 0.2);
}

.prezzi-table-wrap {
  overflow-x: auto;
  margin: var(--space) 0;
}

.prodotto-featured .prezzi-table-wrap {
  margin: 1.5rem 0;
}

.prezzi-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prezzi-table th,
.prezzi-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border: 1px solid #ddd;
}

.prezzi-table th {
  background: #eee;
  font-weight: 600;
}

.prezzi-table th.sconto-header {
  background: #dcfce7;
  color: #166534;
}

.prezzi-table td {
  background: #fff;
}

.prezzi-table td.sconto-cell {
  background: #dcfce7;
}

.badge-sconto {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: calc(var(--radius) * 0.75);
  white-space: nowrap;
}

.prezzo-originale {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.9em;
  display: block;
  margin-bottom: 0.25rem;
}

.prezzo-scontato {
  color: #16a34a;
  font-weight: 700;
  font-size: 1.1em;
  display: block;
}

/* Offerta */
.offerta {
  background: linear-gradient(135deg, #2d5a4a 0%, #1e3d32 100%);
  color: #fff;
}

.offerta .section-title {
  color: #fff;
}

.offerta-text {
  font-size: 1.15rem;
  margin: 0 0 var(--space);
}

.timer {
  font-size: 1.25rem;
  font-weight: 600;
}

.timer-label {
  margin-right: 0.5rem;
}

/* Come funziona */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: var(--space-lg);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: #444;
}

/* Form contatti */
.form-contatti {
  max-width: 48rem;
  background: #fff;
  padding: 2rem;
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row:last-of-type {
  margin-bottom: 0;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-row-split {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.form-col {
  display: flex;
  flex-direction: column;
}

.form-row label,
.form-col label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-size: 0.95rem;
}

.form-row input,
.form-row select,
.form-row textarea,
.form-col input,
.form-col select,
.form-col textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  background: #fff;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-row input::placeholder,
.form-row textarea::placeholder,
.form-col input::placeholder,
.form-col textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.form-row input:hover,
.form-row select:hover,
.form-row textarea:hover,
.form-col input:hover,
.form-col select:hover,
.form-col textarea:hover {
  border-color: #9ca3af;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
.form-col input:focus,
.form-col select:focus,
.form-col textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(196, 90, 46, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  appearance: none;
}

.form-row input.error,
.form-row select.error,
.form-row textarea.error,
.form-col input.error,
.form-col select.error,
.form-col textarea.error {
  border-color: #dc3545;
  background-color: #fff5f5;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15), 0 2px 4px rgba(220, 53, 69, 0.1);
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.form-row input.error:focus,
.form-row select.error:focus,
.form-row textarea.error:focus,
.form-col input.error:focus,
.form-col select.error:focus,
.form-col textarea.error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2), 0 2px 4px rgba(220, 53, 69, 0.15);
}

.form-row-checkbox input.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.form-row-checkbox input.error + label {
  color: #dc3545;
}

.required-mark {
  color: #dc3545;
  font-weight: 700;
  margin-left: 2px;
}

.form-row-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: var(--radius);
  border: 1.5px solid #e5e7eb;
  transition: all 0.2s ease;
}

.form-row-checkbox:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.form-row-checkbox input {
  width: auto;
  margin-top: 0.25rem;
  cursor: pointer;
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.form-row-checkbox label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.form-row-checkbox a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-row-checkbox a:hover {
  color: var(--color-primary-hover);
}

.form-actions {
  margin-top: 2rem;
}

.form-actions .btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.form-actions .btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Footer */
.footer {
  background: #2d2d2d;
  color: #ddd;
  padding: var(--space-lg) 0;
  margin-top: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-block h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: #fff;
}

.footer-block p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-block a {
  color: #a8d4ff;
  text-decoration: none;
}

.footer-block a:hover {
  text-decoration: underline;
}

.footer-legal {
  font-size: 0.85rem;
  color: #999;
  margin: 0;
}

.footer-legal a {
  color: #aaa;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #2d2d2d;
  color: #eee;
  padding: var(--space);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space);
}

.cookie-banner-inner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-banner-inner a {
  color: #a8d4ff;
}

/* Responsive */
@media (max-width: 768px) {
  .prodotto-row {
    grid-template-columns: 1fr;
  }

  .prodotto-row .prodotto-image {
    max-height: 220px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    display: block;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .prezzi-table {
    font-size: 0.85rem;
  }

  .prezzi-table th,
  .prezzi-table td {
    padding: 0.4rem 0.5rem;
  }
}

/* Trust Bar */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.trust-icon {
  color: #10b981;
  font-weight: 700;
  font-size: 1.2rem;
}

.trust-text {
  font-weight: 600;
}

@media (max-width: 768px) {
  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .trust-item {
    font-size: 0.85rem;
  }
}

/* Recensioni */
.recensioni {
  background: #f9fafb;
  padding: var(--space-lg) 0;
}

.rating-overview {
  text-align: center;
  margin-bottom: 2rem;
}

.rating-main {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.rating-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stars {
  display: flex;
  gap: 0.25rem;
  font-size: 1.5rem;
  color: #fbbf24;
}

.star.filled {
  color: #fbbf24;
}

.rating-count {
  font-size: 1rem;
  color: #6b7280;
}

.recensioni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.recensione-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.recensione-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.recensione-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.recensione-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--color-text);
}

.recensione-azienda {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

.recensione-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.recensione-testo {
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* FAQ */
.faq {
  background: #fff;
  padding: var(--space-lg) 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  background: #fff;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #f3f4f6;
}

.faq-question.active {
  background: var(--color-primary);
  color: #fff;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-answer.active {
  max-height: 500px;
  padding: 1.5rem;
}

.faq-answer p {
  margin: 0;
  color: #4b5563;
  line-height: 1.7;
}

/* Form Multi-Step */
.form-multistep {
  position: relative;
}

.form-progress {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  transition: width 0.3s ease;
  border-radius: 3px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.progress-step {
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 500;
  position: relative;
  flex: 1;
  text-align: center;
}

.progress-step.active {
  color: var(--color-primary);
  font-weight: 700;
}

.progress-text {
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
  font-weight: 500;
}

.form-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary);
}

.form-step-actions {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.form-step-actions .btn {
  flex: 1;
  max-width: 200px;
}

@media (max-width: 768px) {
  .form-step-actions {
    flex-direction: column;
  }
  
  .form-step-actions .btn {
    max-width: 100%;
  }
  
  .progress-steps {
    font-size: 0.8rem;
  }
}

/* Comparatore Prodotti */
.comparatore-prodotti {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 3rem;
}

.comparatore-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 1.5rem;
  text-align: center;
}

.comparatore-table-wrap {
  overflow-x: auto;
}

.comparatore-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.comparatore-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.comparatore-table th:first-child {
  background: var(--color-accent);
}

.comparatore-table td {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  vertical-align: top;
}

.comparatore-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.comparatore-table tbody tr:hover {
  background: #f3f4f6;
}

.comparatore-feature {
  font-weight: 600;
  color: var(--color-text);
}

.comparatore-value {
  color: #4b5563;
}

.comparatore-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #10b981;
  color: #fff;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.25rem 0.25rem 0.25rem 0;
}

.comparatore-badge.medium {
  background: #f59e0b;
}

.comparatore-badge.low {
  background: #ef4444;
}

@media (max-width: 768px) {
  .comparatore-prodotti {
    padding: 1rem;
  }
  
  .comparatore-table {
    font-size: 0.85rem;
  }
  
  .comparatore-table th,
  .comparatore-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Quiz Prodotto */
.quiz-prodotto {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 3rem;
}

.quiz-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  text-align: center;
}

.quiz-intro {
  text-align: center;
  color: #6b7280;
  margin: 0 0 2rem;
}

.quiz-container {
  max-width: 600px;
  margin: 0 auto;
}

.quiz-step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.quiz-step.active {
  display: block;
}

.quiz-question {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 1.5rem;
  text-align: center;
}

.quiz-options {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-option {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.quiz-option:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.quiz-option.selected {
  border-color: var(--color-primary);
  background: #fef3c7;
  box-shadow: 0 4px 12px rgba(196, 90, 46, 0.2);
}

.quiz-option-label {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  display: block;
}

.quiz-option-desc {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.quiz-progress {
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.quiz-result {
  background: #fff;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.quiz-result-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

.quiz-result-desc {
  font-size: 1.1rem;
  color: #4b5563;
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.quiz-result-cta {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .quiz-prodotto {
    padding: 1.5rem;
  }
  
  .quiz-title {
    font-size: 1.2rem;
  }
  
  .quiz-question {
    font-size: 1.1rem;
  }
}

/* Exit Intent Popup */
.exit-intent-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.exit-intent-popup[hidden] {
  display: none;
}

.exit-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.exit-popup-content {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.3s ease;
  text-align: center;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.exit-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #6b7280;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
}

.exit-popup-close:hover {
  background: #f3f4f6;
  color: var(--color-text);
}

.exit-popup-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

.exit-popup-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.exit-popup-desc {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 2rem;
  line-height: 1.6;
}

.exit-popup-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .exit-popup-content {
    padding: 2rem 1.5rem;
  }
  
  .exit-popup-title {
    font-size: 1.5rem;
  }
  
  .exit-popup-text {
    font-size: 1.1rem;
  }
}

/* Sticky CTA Mobile */
.sticky-cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  display: none;
}

.sticky-cta-mobile:not([hidden]) {
  display: block;
}

.btn-sticky {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 12px rgba(196, 90, 46, 0.3);
  animation: pulseSticky 2s infinite;
}

@keyframes pulseSticky {
  0%, 100% { box-shadow: 0 4px 12px rgba(196, 90, 46, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(196, 90, 46, 0.5); }
}

@media (min-width: 769px) {
  .sticky-cta-mobile {
    display: none !important;
  }
}

/* Aggiungi padding al body quando sticky CTA è visibile su mobile */
@media (max-width: 768px) {
  body.sticky-cta-active {
    padding-bottom: 80px;
  }
}
