/* ==========================================================================
   STUDIO BOUTIQUE ODONTOIATRICO — DENTISTA2_COMPONENTI.CSS
   Componenti: Hero Immersiva, Stepper a 4 Fasi, Bento Grid 3 Colonne,
   Testimonianze Editoriali, FAQ Accordion, Sezione Contatti & Sticky Bar
   Cache Busting: ?v=1.0.0
   ========================================================================== */

/* 1. HERO SECTION IMMERSIVA CENTRATA */
.hero-centered {
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
}

.hero-header-box {
  max-width: 820px;
  margin: 0 auto 2.5rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--p-muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-btn-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Panorama Immersivo con Indicatori di Qualità */
.hero-panorama {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--p-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  aspect-ratio: 16 / 8.5;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-panorama img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-soft);
}

.hero-panorama:hover img {
  transform: scale(1.02);
}

.hero-badges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: 1.5rem auto 0;
}

.hero-badge-card {
  background-color: var(--p-surface-card);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--p-border);
  box-shadow: var(--p-shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}

.hero-badge-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--p-accent-soft);
  color: var(--p-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-badge-card strong {
  display: block;
  font-size: 0.92rem;
  color: var(--p-ink);
}

.hero-badge-card span {
  font-size: 0.8rem;
  color: var(--p-muted);
}

/* 2. IL PERCORSO DI CURA IN 4 FASI (STEPPER ARCHITETTURALE) */
.stepper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.step-card {
  background-color: var(--p-surface-card);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  border: 1px solid var(--p-border);
  box-shadow: var(--p-shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-normal), box-shadow var(--trans-normal);
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--p-shadow-md);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--p-accent);
  line-height: 1;
  margin-bottom: 1.25rem;
  display: block;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--p-ink);
  margin-bottom: 0.65rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--p-muted);
  line-height: 1.55;
}

/* 3. BENTO GRID TRATTAMENTI A 3 COLONNE */
.bento-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-cell {
  background-color: var(--p-surface-card);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.8vw, 2.25rem);
  border: 1px solid var(--p-border);
  box-shadow: var(--p-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--trans-normal), box-shadow var(--trans-normal);
}

.bento-cell:hover {
  transform: translateY(-2px);
  box-shadow: var(--p-shadow-md);
}

.bento-cell--featured {
  background: linear-gradient(145deg, #ffffff 0%, var(--p-surface-subtle) 100%);
  border: 1.5px solid rgba(44, 88, 119, 0.25);
}

.bento-cell-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: var(--p-accent-soft);
  color: var(--p-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.bento-cell-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--p-accent);
  margin-bottom: 0.5rem;
}

/* 4. SEZIONE SPAZIO CLINICO / BOUTIQUE & METODO */
.boutique-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.boutique-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.boutique-img-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--p-shadow-md);
  aspect-ratio: 4 / 3;
}

.boutique-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-soft);
}

.boutique-img-frame:hover img {
  transform: scale(1.02);
}

.boutique-img-frame--tall {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

/* 5. TESTIMONIANZE EDITORIALI & RATING */
.testimonials-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testi-card {
  background-color: var(--p-surface-card);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  border: 1px solid var(--p-border);
  box-shadow: var(--p-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--trans-normal), box-shadow var(--trans-normal);
}

.testi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--p-shadow-md);
}

.testi-stars {
  display: flex;
  gap: 0.2rem;
  color: var(--p-warm);
  margin-bottom: 1rem;
}

.testi-quote {
  font-size: 0.94rem;
  color: var(--p-ink-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.testi-patient {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--p-border);
  padding-top: 1rem;
}

.testi-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--p-accent-soft);
  color: var(--p-accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testi-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--p-ink);
}

.testi-meta {
  font-size: 0.78rem;
  color: var(--p-subtle);
}

/* 6. FAQ ACCORDION PULITO */
.faq-box-centered {
  max-width: 800px;
  margin: 0 auto;
}

.faq-card {
  background-color: var(--p-surface-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--p-border);
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.faq-card.is-active {
  border-color: rgba(44, 88, 119, 0.4);
  box-shadow: var(--p-shadow-sm);
}

.faq-header {
  width: 100%;
  text-align: left;
  padding: 1.3rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--p-ink);
  cursor: pointer;
  gap: 1rem;
}

.faq-header:hover {
  color: var(--p-accent);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--p-accent);
  transition: transform var(--trans-normal);
}

.faq-card.is-active .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  display: none;
  padding: 0 1.6rem 1.3rem 1.6rem;
}

.faq-card.is-active .faq-body {
  display: block;
}

/* 7. SEZIONE CONTATTI SPECIALE SENZA MODULO */
.contact-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-card-info {
  background-color: var(--p-surface-card);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid var(--p-border);
  box-shadow: var(--p-shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-dial-box {
  background-color: var(--p-surface-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.75rem;
  margin: 1.25rem 0 1.75rem;
  border: 1px solid rgba(44, 88, 119, 0.15);
}

.contact-dial-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--p-accent);
  display: block;
  margin-bottom: 0.35rem;
}

.contact-dial-phone {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 700;
  color: var(--p-ink);
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  word-break: break-all;
  transition: color var(--trans-fast);
}

.contact-dial-phone:hover {
  color: var(--p-accent);
}

.contact-schedule {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--p-border);
}

.contact-schedule-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--p-ink-light);
}

.contact-map-wrapper {
  background-color: var(--p-surface-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--p-border);
  overflow: hidden;
  box-shadow: var(--p-shadow-md);
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.contact-iframe {
  flex: 1;
  width: 100%;
  min-height: 300px;
  border: 0;
}

.contact-map-bottom {
  padding: 1.25rem 1.6rem;
  background-color: var(--p-surface-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--p-border);
}

/* 8. FOOTER */
.site-footer {
  background-color: var(--p-ink);
  color: #ffffff;
  padding-top: 3.5rem;
  padding-bottom: clamp(3.5rem, 5vw, 4.5rem);
}

.footer-inner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 1.5rem;
  font-size: 0.84rem;
  color: var(--p-subtle);
}

/* 9. PULSANTE "CHIAMA ORA" STICKY */
.sticky-call-bar {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.sticky-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  height: 48px;
  padding: 0 1.6rem;
  border-radius: var(--radius-full);
  background-color: var(--p-accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(44, 88, 119, 0.35);
  text-decoration: none;
  transition: transform var(--trans-fast), background-color var(--trans-fast);
}

.sticky-call-btn:hover {
  background-color: var(--p-accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .stepper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-badges-row,
  .stepper-grid,
  .bento-3col,
  .boutique-split,
  .contact-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .sticky-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(244, 242, 237, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--p-border);
    box-shadow: 0 -4px 14px rgba(22, 32, 44, 0.08);
  }

  .sticky-call-btn {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-md);
  }

  body {
    padding-bottom: 70px;
  }
}

