/* ============================================================
   STUDIO PARATELLI — Shared stylesheet for sub-pages
   (sedi + pagine servizio + privacy)
   Used by: coronella.html, marrara.html,
            implantologia.html, ortodonzia.html,
            igiene-dentale.html, estetica-dentale.html
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: 'DM Sans', sans-serif;
  color: #1a2a3a;
  background: #e8eff8;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
:root {
  --gold: #b8964e;
  --gold-light: #d4b876;
  --charcoal: #0d2e75;
  --charcoal-deep: #133a8a;
  --cream: #e8eff8;
  --cream-dark: #d2dfee;
  --text: #1a2a3a;
  --text-light: #6b6b6b;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ============================================================
   NAV (sticky con sfondo sempre visibile sulle sub-pages)
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(19, 58, 138, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 clamp(24px, 5vw, 80px);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 155px; object-fit: contain; }
@media (max-width: 768px) { .nav-logo img { height: 60px; } }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-link {
  color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.3s;
  background: none; border: none; padding: 0;
}
.nav-link { white-space: nowrap; }
.nav-link:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold); color: #fff;
  border: 1.5px solid var(--gold);
  padding: 10px 24px; border-radius: 4px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}
.nav-cta:hover { background: transparent; color: var(--gold); }
.nav-burger {
  display: none;
  background: none; border: none;
  color: #fff; font-size: 28px;
  padding: 4px 8px;
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
}

/* ===== Nav dropdown (Le Sedi) ===== */
.nav-dd { position: relative; }
.nav-dd-trigger {
  color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit;
}
.nav-dd-trigger { white-space: nowrap; }
.nav-dd-trigger .arrow { font-size: 10px; opacity: 0.7; }
.nav-dd-trigger:hover { color: var(--gold); }
.nav-dd-trigger[aria-current="page"] { color: var(--gold); }

.nav-dd-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
  pointer-events: none;
  opacity: 0;
}
.nav-dd-menu-inner {
  background: #fff; border-radius: 2px; padding: 14px 0;
  box-shadow: 0 24px 60px rgba(13,30,75,0.18), 0 4px 12px rgba(13,30,75,0.06);
  min-width: 220px;
  border-top: 2px solid var(--gold);
  position: relative;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
}
.nav-dd-menu-inner::before {
  content: '';
  position: absolute; top: -8px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px; height: 12px; background: var(--gold);
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu { pointer-events: auto; opacity: 1; }
.nav-dd:hover .nav-dd-menu-inner,
.nav-dd:focus-within .nav-dd-menu-inner {
  opacity: 1; transform: translateY(0);
}
.nav-dd-link {
  display: block; padding: 12px 24px; text-align: center;
  color: #0d2e75; text-decoration: none;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-bottom: 1px solid rgba(19,58,138,0.06);
  transition: color 0.25s, letter-spacing 0.25s;
}
.nav-dd-link:last-child { border-bottom: none; }
.nav-dd-link:hover { color: var(--gold); letter-spacing: 0.12em; }
.nav-dd-link[aria-current="page"] { color: var(--gold); }
.nav-dd-menu-inner.services { min-width: 260px; padding: 8px 0; }
.nav-dd-menu-inner.services .nav-dd-link { text-align: left; padding: 11px 26px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(30,30,30,0.98);
  display: none;
  flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 0; padding: 90px 24px 48px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-menu .top { white-space: nowrap; }
.mobile-menu-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none;
  color: #fff; font-size: 32px;
}
.mobile-menu .top {
  color: #fff; text-decoration: none; font-size: 22px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: none; border: none; font-family: inherit; cursor: pointer;
  margin: 18px 0;
}
.mobile-menu > .top:first-of-type { margin-top: 0; }
.m-acc { display: flex; flex-direction: column; align-items: center; margin: 18px 0; }
.m-acc .top { margin: 0; }
.m-acc-trigger { display: inline-flex; align-items: center; gap: 9px; }
.m-acc-arrow { font-size: 13px; opacity: 0.6; transition: transform 0.3s ease; }
.m-acc.open > .m-acc-trigger { color: var(--gold); }
.m-acc.open .m-acc-arrow { transform: rotate(180deg); opacity: 1; }
.m-acc-panel {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}
.m-acc.open .m-acc-panel { max-height: 80vh; opacity: 1; margin-top: 18px; }
.mobile-menu a.sub {
  color: rgba(255,255,255,0.72); text-decoration: none;
  font-size: 16px; font-weight: 400; letter-spacing: 0.05em;
}
.mobile-menu a.sub:hover { color: var(--gold); }

/* ============================================================
   PAGE HEAD (hero compatto)
   ============================================================ */
.page-head {
  background: linear-gradient(135deg, #133a8a 0%, #1c4aa8 100%);
  color: #fff;
  padding: clamp(56px, 9vw, 96px) clamp(24px, 5vw, 80px) clamp(48px, 8vw, 80px);
  position: relative; overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--head-bg, none);
  background-size: cover; background-position: center;
  opacity: 0.18;
  filter: grayscale(0.2) brightness(0.85);
  pointer-events: none;
}
.page-head-inner {
  max-width: 880px; margin: 0 auto;
  position: relative; z-index: 1;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before {
  content: ''; width: 32px; height: 1.5px; background: var(--gold);
}
.page-head h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 5vw, 56px); font-weight: 500;
  line-height: 1.15; margin-bottom: 14px;
  text-wrap: pretty;
}
.page-head h1 .accent { color: var(--gold); }
.page-head .subtitle {
  color: rgba(255,255,255,0.72);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  max-width: 620px;
}
.page-head-cta {
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: #fff;
  padding: 12px 24px; border-radius: 4px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none; border: none;
  transition: opacity 0.25s;
}
.page-head-cta:hover { opacity: 0.88; }

/* ============================================================
   SECTIONS (contenuto sub-page)
   ============================================================ */
.section {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 80px);
}
.section.wide { max-width: 1100px; }
.section-label {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold);
}
.section-label::before {
  content: ''; width: 32px; height: 1.5px; background: var(--gold);
}
.section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 500;
  color: var(--charcoal-deep);
  margin-bottom: 20px;
  line-height: 1.2;
  text-wrap: pretty;
}
.section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600;
  color: var(--charcoal-deep);
  margin-top: 28px; margin-bottom: 10px;
}
.section p, .section li {
  color: var(--text);
  font-size: 16px; line-height: 1.78;
  margin-bottom: 14px;
}
.section ul, .section ol { margin: 0 0 18px 22px; }
.section li { margin-bottom: 6px; }
.section strong { color: var(--charcoal-deep); font-weight: 600; }

/* Alternated background */
.section-alt {
  background: #fff;
  box-shadow: 0 -2px 24px rgba(13, 30, 75, 0.03);
}

/* ============================================================
   INFO BOX (areas served, contact card)
   ============================================================ */
.info-box {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  border-radius: 6px;
  margin: 18px 0 24px;
}
.info-box .label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.info-box p:last-child { margin-bottom: 0; }

/* ============================================================
   MAP + ADDRESS GRID
   ============================================================ */
.map-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: stretch;
  margin-top: 12px;
}
@media (max-width: 768px) {
  .map-grid { grid-template-columns: 1fr; }
}
.map-frame {
  position: relative; overflow: hidden;
  border-radius: 10px;
  background: #d0e0f0;
  min-height: 320px;
  box-shadow: 0 2px 16px rgba(13, 30, 75, 0.08);
}
.map-frame iframe {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  border: 0;
}
.map-info {
  background: #fff;
  border-radius: 10px;
  padding: 28px 32px;
  box-shadow: 0 2px 16px rgba(13, 30, 75, 0.06);
  display: flex; flex-direction: column; gap: 16px;
}
.map-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 600;
  color: var(--charcoal-deep);
  margin: 0;
}
.map-info p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text); }
.map-info .label-small {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
}
.map-info a.map-btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #fff;
  padding: 10px 18px; border-radius: 4px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.25s;
}
.map-info a.map-btn:hover { opacity: 0.88; }

/* ============================================================
   GALLERY (carousel for location pages)
   ============================================================ */
.gallery {
  position: relative; overflow: hidden;
  border-radius: 10px;
  background: #d0e0f0;
  aspect-ratio: 16/9;
  box-shadow: 0 2px 16px rgba(13, 30, 75, 0.06);
}
.gallery img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.5s ease;
}
.gallery img.active { opacity: 1; }
.gallery .gnav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.45); color: #fff;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.gallery .gnav:hover { background: rgba(0,0,0,0.65); }
.gallery .gnav.prev { left: 12px; }
.gallery .gnav.next { right: 12px; }
.gallery .gdots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.gallery .gdots span {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s;
}
.gallery .gdots span.active { background: #fff; }

/* ============================================================
   HOURS TABLE
   ============================================================ */
.hours {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
}
.hours th, .hours td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(19, 58, 138, 0.08);
  font-size: 15px;
}
.hours th {
  background: var(--cream);
  font-weight: 600;
  color: var(--charcoal-deep);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hours td.closed { color: #a0a0a0; }

/* ============================================================
   REVIEWS (compact, sub-pages)
   ============================================================ */
.reviews-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 12px 0 24px;
}
.review-mini {
  background: #fff;
  border-radius: 10px;
  padding: 22px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
.review-mini:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.review-mini .stars { font-size: 15px; color: var(--gold); letter-spacing: 2px; }
.review-mini blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-style: italic;
  color: var(--charcoal); line-height: 1.55;
  margin: 0;
}
.review-mini .who {
  font-size: 12px; color: var(--text-light);
  letter-spacing: 0.04em;
}
.reviews-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); text-decoration: none;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.reviews-cta:hover { color: var(--charcoal-deep); }

/* ============================================================
   FAQ
   ============================================================ */
.faq details {
  border-bottom: 1px solid rgba(19, 58, 138, 0.10);
  padding: 18px 0;
}
.faq details[open] summary { color: var(--gold); }
.faq summary {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600;
  color: var(--charcoal-deep);
  cursor: pointer;
  list-style: none;
  padding-right: 32px;
  position: relative;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 4px; top: -2px;
  font-size: 24px; font-weight: 300;
  color: var(--gold);
  transition: transform 0.3s;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body {
  padding-top: 12px;
  color: var(--text);
  font-size: 15.5px; line-height: 1.75;
}
.faq .faq-body p { margin-bottom: 10px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ============================================================
   "Aree servite" box
   ============================================================ */
.areas-box {
  background: linear-gradient(180deg, #f4f8fd 0%, #ffffff 100%);
  border: 1px solid rgba(19, 58, 138, 0.10);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 24px 0;
}
.areas-box .areas-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.areas-box p { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.75; }

/* ============================================================
   END CTA
   ============================================================ */
.end-cta {
  background: linear-gradient(135deg, #133a8a 0%, #1c4aa8 100%);
  color: #fff;
  padding: clamp(56px, 9vw, 90px) clamp(24px, 5vw, 80px);
  text-align: center;
}
.end-cta-inner { max-width: 640px; margin: 0 auto; }
.end-cta h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 44px); font-weight: 500;
  margin-bottom: 18px; color: #fff;
  text-wrap: pretty;
}
.end-cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px; line-height: 1.7;
}
.end-cta-buttons {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.end-cta a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 4px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s;
}
.end-cta .btn-primary {
  background: var(--gold); color: #fff;
}
.end-cta .btn-primary:hover { opacity: 0.88; }
.end-cta .btn-ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}
.end-cta .btn-ghost:hover { background: rgba(255,255,255,0.16); }
.end-cta .btn-whatsapp {
  background: #25D366; color: #fff;
}
.end-cta .btn-whatsapp:hover { background: #1ebe5b; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #152e55; color: rgba(255,255,255,0.4);
  padding: 40px clamp(24px, 5vw, 80px);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; font-size: 13px;
}
.footer-inner a {
  color: rgba(255,255,255,0.4); text-decoration: none;
  transition: color 0.2s;
}
.footer-inner a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 24px; }

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.fab-whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  color: #fff; text-decoration: none;
  transition: transform 0.2s;
}
.fab-whatsapp:hover { transform: scale(1.1); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

body.no-scroll { overflow: hidden; }
