@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&family=Noto+Sans:wght@300;400;500;700&family=JetBrains+Mono:wght@400&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  /* Brand palette — Studio Dentistico Renzo logo colors */
  --navy:      #1B5A7D;  /* cool ocean blue — nav / CTA / location headers (lighter than the old near-black navy) */
  --navy-deep: #123F58;  /* darker companion for gradients */
  --navy-mid:  #1A5F8A;  /* logo tooth mid-teal — hovers */
  --teal:      #1480A8;  /* deeper teal matching logo — primary accent */
  --teal-lt:   #2A9EC9;  /* lighter teal — highlights */
  --gold:      #E8B83A;  /* warm amber — CTAs (not neon) */
  --gold-lt:   #F5CC60;  /* light amber */
  --magenta:   #EC008C;  /* magenta — accent kept */
  --white:     #ffffff;
  --cream:     #F4F9FD;  /* pale cool white — section bg */
  --paper:     #EBF3F9;  /* slight blue tint — alternate bg */
  --ink:       #162030;  /* deep navy text */
  --warm-grey: #4A5F70;  /* blue-gray — body text */
  --border:    #C2D9EC;  /* soft blue border */
  --mint:      #2A9EC9;  /* alias for inline labels */
  --mono:      'JetBrains Mono', monospace;
  --serif:     'Figtree', system-ui, sans-serif;   /* heading font */
  --sans:      'Noto Sans', system-ui, sans-serif;  /* body font */
  --radius:    6px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.07);
  --shadow-md: 0 8px 40px rgba(0,0,0,.12);
  --shadow-lg: 0 20px 80px rgba(0,0,0,.18);
  --transition: .25s ease;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Accessibility ───────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.treatment-card, .team-card, .location-card, .gallery-item { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--serif); line-height: 1.18; }
p { color: var(--warm-grey); line-height: 1.75; }

.section-label {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}

.heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  line-height: 1.18;
  font-weight: 700;
}
.heading em { font-style: italic; color: var(--teal); font-weight: 700; }

.subhead {
  font-size: 1rem;
  color: var(--warm-grey);
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.75;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0 28px;
}
.section    { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; position: relative; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--white);
  font-size: .9rem; font-weight: 600; padding: 14px 32px;
  border-radius: 100px; transition: var(--transition); cursor: pointer;
  min-height: 44px;
}
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(20,128,168,.36); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--teal);
  font-size: .9rem; font-weight: 600; padding: 13px 30px;
  border-radius: 100px; border: 2px solid var(--teal); transition: var(--transition); cursor: pointer;
  min-height: 44px;
}
.btn-outline:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }

.btn-gold,
.btn-sun {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--ink);
  font-size: .9rem; font-weight: 700; padding: 14px 32px;
  border-radius: 100px; transition: var(--transition); cursor: pointer;
  min-height: 44px;
}
.btn-gold:hover, .btn-sun:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,184,58,.4); }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--navy);
  font-size: .9rem; font-weight: 600; padding: 14px 32px;
  border-radius: 100px; transition: var(--transition); cursor: pointer;
  min-height: 44px;
}
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }

.cta-phone-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); font-size: .9rem; font-weight: 600;
  padding: 13px 26px; border-radius: 100px; transition: var(--transition); cursor: pointer;
  min-height: 44px;
}
.cta-phone-btn:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 15px 0;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.nav .container { display: flex; align-items: center; }
.nav.scrolled {
  background: rgba(255,255,255,.97); padding: 9px 0;
  box-shadow: 0 2px 20px rgba(22,46,69,.08);
}

.nav-logo {
  display: flex; align-items: center; margin-right: auto; flex-shrink: 0;
  position: relative;
  padding: 8px 20px; transition: opacity var(--transition);
}
/* Logo sits on a light header now — no white glow needed */
.nav-logo::before { display: none; }
.nav-logo:hover { opacity: .88; }

/* ── Landing (homepage) immersive header ──────────────────
   Transparent over the hero photo at the top (white logo + light links),
   turning into the solid white header with the colored logo once scrolled. */
.nav-logo-img.nav-logo-white { display: none; }   /* hidden by default; shown only at the top of the landing hero */
.nav .container { position: relative; z-index: 2; }
.nav-light:not(.scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav-light:not(.scrolled)::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 230%; z-index: 1;
  background: linear-gradient(180deg, rgba(18,58,82,.5) 0%, rgba(18,58,82,0) 100%);
  pointer-events: none;
}
.nav-light:not(.scrolled) .nav-links a { color: rgba(255,255,255,.92); }
.nav-light:not(.scrolled) .nav-links a:hover,
.nav-light:not(.scrolled) .nav-links a.active { color: #fff; }
.nav-light:not(.scrolled) .nav-hamburger span { background: #fff; }
.nav-light:not(.scrolled) .nav-logo-color { display: none; }
.nav-light:not(.scrolled) .nav-logo-white { display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,.28)); }
.nav-logo-img { height: 50px; width: auto; display: block; position: relative; z-index: 1; }

.nav-links { display: flex; align-items: center; gap: 32px; margin-right: 32px; }
.nav-links a { color: var(--navy); font-size: .875rem; font-weight: 500; transition: color var(--transition); white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 6px; left: 0; right: 0; height: 2px; background: var(--magenta); border-radius: 2px; transform: scaleX(0); transition: transform var(--transition); transform-origin: center; }
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { transform: scaleX(.6); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after { transform: scaleX(1); }
.nav.scrolled .nav-links a { color: var(--navy); }
.nav.scrolled .nav-links a:hover { color: var(--teal); }
.nav.scrolled .nav-links a.active { color: var(--navy); }

.nav-cta {
  background: var(--gold); color: var(--ink) !important;
  font-size: .8rem !important; font-weight: 700 !important;
  padding: 9px 22px; border-radius: 100px;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center;
}
.nav-cta:hover { background: var(--gold-lt) !important; transform: translateY(-1px); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; margin-left: 16px; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }
.nav.scrolled .nav-hamburger span { background: var(--navy); }
/* Inner pages: links + hamburger always white (transparent nav sits over navy page-hero) */
/* Unified light header on every page — nav text is dark everywhere (see .nav-links a),
   so the .nav-inner / .nav-light class variants no longer need color overrides. */

/* ── Mobile overlay nav ──────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: linear-gradient(160deg, #1B5A7D 0%, #103A52 100%);
  display: flex; flex-direction: column;
  padding: 0 2rem 2.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden;
  transform: translateY(-14px) scale(.98);
  transition: opacity .3s ease, visibility .3s, transform .38s cubic-bezier(.22,1,.36,1);
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.mm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 0 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1.8rem;
}
.mm-head a { position: relative; display: inline-flex; }
.mm-head a::before {
  content: '';
  position: absolute;
  inset: -10px -24px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.82) 0%, rgba(255,255,255,.18) 55%, transparent 78%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}
.mm-logo-img { height: 50px; width: auto; display: block; position: relative; z-index: 1; }
.mm-close {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center; cursor: pointer; position: relative; flex-shrink: 0;
  transition: background .2s;
}
.mm-close:hover { background: rgba(255,255,255,.13); }
.mm-close span {
  position: absolute; width: 16px; height: 2px;
  background: white; border-radius: 2px; display: block;
}
.mm-close span:first-child { transform: rotate(45deg); }
.mm-close span:last-child  { transform: rotate(-45deg); }

.mm-nav { display: flex; flex-direction: column; flex: 1; }
.mm-nav a {
  color: rgba(255,255,255,.6);
  font-size: 1.7rem; font-family: var(--serif); font-weight: 600;
  padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.06);
  display: block; opacity: 0; transform: translateX(28px);
  transition: opacity .32s, transform .38s cubic-bezier(.22,1,.36,1), color .18s;
}
.mm-nav a:hover { color: white; }
.mm-nav a.active { color: white; }
.mobile-menu.open .mm-nav a:nth-child(1) { opacity:1; transform:none; transition-delay:.06s; }
.mobile-menu.open .mm-nav a:nth-child(2) { opacity:1; transform:none; transition-delay:.12s; }
.mobile-menu.open .mm-nav a:nth-child(3) { opacity:1; transform:none; transition-delay:.18s; }
.mobile-menu.open .mm-nav a:nth-child(4) { opacity:1; transform:none; transition-delay:.24s; }
.mobile-menu.open .mm-nav a:nth-child(5) { opacity:1; transform:none; transition-delay:.30s; }
/* catch-all so EVERY item shows (the 6th item was previously left hidden) */
.mobile-menu.open .mm-nav a,
.mobile-menu.open .mm-nav .mm-acc { opacity:1; transform:none; }
.mobile-menu.open .mm-nav a:nth-child(6) { transition-delay:.36s; }

/* Mobile "Trattamenti" expandable accordion */
.mm-acc { border-bottom: 1px solid rgba(255,255,255,.06); }
.mm-acc-toggle {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  color: rgba(255,255,255,.6); font-family: var(--serif); font-size: 1.7rem; font-weight: 600;
  padding: .7rem 0; display: flex; align-items: center; justify-content: space-between;
}
.mm-acc-toggle svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .25s; opacity: .7; }
.mm-acc-toggle.active, .mm-acc.open .mm-acc-toggle { color: #fff; }
.mm-acc.open .mm-acc-toggle svg { transform: rotate(180deg); }
.mm-sub { max-height: 0; overflow: hidden; transition: max-height .32s ease; display: flex; flex-direction: column; }
.mm-acc.open .mm-sub { max-height: 640px; }
.mm-sub a {
  color: rgba(255,255,255,.5) !important; font-family: var(--serif); font-size: 1.05rem; font-weight: 500;
  padding: .5rem 0 .5rem 1.1rem !important; border-bottom: 1px solid rgba(255,255,255,.05);
  opacity: 1 !important; transform: none !important;
}
.mm-sub a:hover { color: #fff !important; }
.mm-sub a:last-child { color: var(--gold-lt) !important; font-weight: 700; border-bottom: none; }

.mm-cta {
  display: block; text-align: center;
  background: var(--gold); color: var(--ink) !important;
  font-weight: 700; font-size: .95rem;
  padding: 1rem; border-radius: 100px; margin-top: 2rem;
  transition: background var(--transition);
  opacity: 0; transform: translateY(12px);
  transition: opacity .32s, transform .38s cubic-bezier(.22,1,.36,1), background .18s;
}
.mm-cta:hover { background: var(--gold-lt); }
.mobile-menu.open .mm-cta { opacity:1; transform:none; transition-delay:.34s; }

/* ── Page Hero ───────────────────────────────────────────── */
.page-hero {
  --hero-glow: rgba(20,128,168,.16);   /* per-page accent (override inline) */
  --hero-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231480A8' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2C8.5 2 6 4.5 6 7c0 2 1 4 2 5.5L9 18c.5 2 1.5 4 3 4s2.5-2 3-4l1-5.5C17 11 18 9 18 7c0-2.5-2.5-5-6-5z'/%3E%3C/svg%3E");
  position: relative; overflow: hidden;
  padding: 150px 0 86px;
  background:
    radial-gradient(56% 95% at 87% -14%, var(--hero-glow) 0%, transparent 60%),
    radial-gradient(46% 80% at -6% 116%, rgba(232,184,58,.10) 0%, transparent 62%),
    linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero .container { position: relative; z-index: 2; }
/* faint dental watermark for brand personality */
.page-hero::after {
  content: ''; position: absolute; right: -46px; bottom: -64px; z-index: 0;
  width: 340px; height: 340px; pointer-events: none; opacity: .06;
  background: var(--hero-icon) center / contain no-repeat;
}
/* thin brand accent strip along the bottom edge */
.page-hero::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 55%, var(--magenta) 100%);
  opacity: .85;
}
.page-hero-title { font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--ink); font-weight: 700; line-height: 1.1; }
.page-hero-title em { font-style: italic; color: var(--teal); }
.page-hero-sub { color: var(--warm-grey); font-size: 1.1rem; margin-top: 16px; max-width: 520px; line-height: 1.7; }
/* eyebrow label with a leading accent line */
.page-hero .section-label { display: inline-flex; align-items: center; gap: 10px; }
.page-hero .section-label::before { content: ''; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

/* Two-column hero (text + photo) for richer page headers */
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.page-hero-copy { min-width: 0; }
.page-hero-media {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 4 / 3.1; background: var(--paper);
  border: 6px solid #fff; box-shadow: 0 26px 60px rgba(22,46,69,.20);
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }

.page-hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.page-hero-chips span {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 100px;
  padding: 8px 16px; font-size: .82rem; color: var(--warm-grey);
  box-shadow: var(--shadow-sm);
}
.page-hero-chips strong { color: var(--teal); font-family: var(--serif); font-weight: 700; font-size: 1rem; }

@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-hero-media { aspect-ratio: 16 / 10; max-height: 300px; }
}

/* Per-page hero personalities: distinct accent glow + watermark icon */
.page-hero.h-team    { --hero-glow: rgba(20,128,168,.16); --hero-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231480A8' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.page-hero.h-tratt   { --hero-glow: rgba(232,184,58,.18); }
.page-hero.h-studio  { --hero-glow: rgba(27,90,125,.16); --hero-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231480A8' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16M9 8h1M9 12h1M9 16h1M14 8h1M14 12h1M14 16h1'/%3E%3C/svg%3E"); }
.page-hero.h-gallery { --hero-glow: rgba(236,0,140,.12); --hero-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231480A8' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E"); }
.page-hero.h-contact { --hero-glow: rgba(42,158,201,.18); --hero-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231480A8' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13S3 17 3 10a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }

/* ── Hero ─────────────────────────────────────────────────── */
/* ── Hero — full-bleed background photo ─────────────────── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  position: relative; display: flex; align-items: center; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(100deg, rgba(18,58,82,.52) 0%, rgba(18,58,82,.24) 50%, rgba(18,58,82,.04) 100%);
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  top: -10%; left: 0; right: 0;
  height: 130%;
  background-size: cover; background-position: center 30%;
  opacity: 0; transition: opacity 1.2s ease;
  will-change: transform;
}
.hero-slide.active { opacity: 1; }
.hero-dots {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.35); border: none; cursor: pointer; padding: 0;
  transition: background .3s, transform .3s;
}
.hero-dot.active { background: var(--gold); transform: scale(1.3); }
.hero-content { position: relative; z-index: 2; padding: 140px 0 100px; max-width: 640px; }

.float-icon {
  position: absolute; z-index: 1; pointer-events: none;
  will-change: transform; line-height: 0;
}
@media (max-width: 900px) { .float-icon { display: none; } }

.hero-eyebrow {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--teal); }

.hero-title { font-size: clamp(2.6rem, 5vw, 4.2rem); color: var(--white); line-height: 1.1; font-weight: 700; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub { color: rgba(255,255,255,.72); font-size: 1.1rem; margin-top: 20px; line-height: 1.75; max-width: 500px; }
.hero-ctas { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; align-items: center; }

.hero-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500; padding: 13px 0;
  transition: color var(--transition); min-height: 44px;
}
.hero-btn-ghost:hover { color: var(--white); }

/* ── Hero animations ─────────────────────────────────────── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}

.hero-eyebrow { animation: heroFadeUp .55s ease .05s both; }
.hero-title   { animation: heroFadeUp .65s ease .2s  both; }
.hero-sub     { animation: heroFadeUp .65s ease .38s both; }
.hero-ctas    { animation: heroFadeUp .65s ease .54s both; }

/* Parallax generic */
[data-parallax] { will-change: transform; }

/* Photo sections — oversized img for parallax within container */
.photo-section { position: relative; overflow: hidden; }
.photo-section > img {
  position: absolute; inset: 0;
  width: 100%; height: 130%;
  top: -15%; object-fit: cover;
  will-change: transform;
}

/* ── Stats bar ─────────────────────────────────────────── */
.stats-bar { background: var(--teal); }
.stats-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 32px 28px; border-right: 1px solid rgba(255,255,255,.14); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--serif); font-size: 2.4rem; color: var(--white); font-weight: 700; line-height: 1; }
.stat-num span { color: var(--gold-lt); }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.65); margin-top: 4px; }

/* ── Treatments ─────────────────────────────────────────── */
.treatments-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 48px; }
.treatment-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px; transition: var(--transition);
}
.treatment-card:hover { border-color: var(--teal); box-shadow: 0 8px 32px rgba(20,128,168,.14), inset 0 3px 0 var(--magenta); transform: translateY(-4px); }
.treatment-icon {
  width: 48px; height: 48px; background: rgba(20,128,168,.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--teal); transition: background var(--transition);
}
.treatment-card:hover .treatment-icon { background: var(--teal); color: var(--white); }
.treatment-name { font-family: var(--serif); font-size: 1rem; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.treatment-desc { font-size: .8rem; color: var(--warm-grey); line-height: 1.6; }

/* ── Image utilities ─────────────────────────────────────── */
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-frame {
  border-radius: 6px; overflow: hidden; position: relative;
  background: var(--paper);
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Photo placeholder (when image missing) */
.photo-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  color: var(--warm-grey); font-size: .8rem;
  background: linear-gradient(135deg, var(--paper) 0%, #c7e9f9 100%);
}
.photo-placeholder svg { color: var(--border); }

/* ── Team / About ─────────────────────────────────────────── */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img { border-radius: 6px; overflow: hidden; aspect-ratio: 4/5; background: var(--paper); position: relative; }
.about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-img-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--warm-grey); font-size: .875rem; }

.about-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.about-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--warm-grey); }
.about-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; margin-top: 7px; }

/* ── Team cards ─────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.team-card { background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 16px rgba(13,40,66,.07); transition: var(--transition); }
.team-card:hover { box-shadow: 0 8px 32px rgba(13,40,66,.13); transform: translateY(-5px); }
.team-card-photo { aspect-ratio: 3/4; background: var(--paper); position: relative; overflow: hidden; }
.team-card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.placeholder-avatar { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--paper) 0%, #c7e9f9 100%); font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--teal); }
.team-card-body { padding: 18px 20px 20px; border-top: 3px solid var(--teal); }
.team-card-name { font-family: var(--serif); font-size: 1rem; color: var(--ink); font-weight: 700; line-height: 1.3; }
.team-card-role { font-size: .72rem; color: var(--teal); font-weight: 700; margin-top: 5px; letter-spacing: .06em; text-transform: uppercase; }
.team-card-spec { font-size: .78rem; color: var(--warm-grey); margin-top: 8px; line-height: 1.6; }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; padding: 32px 28px; transition: var(--transition);
  position: relative;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.testimonial-stars { color: var(--magenta); font-size: 1rem; letter-spacing: 3px; margin-bottom: 18px; display: block; }
.testimonial-quote {
  font-size: .95rem; color: var(--warm-grey); line-height: 1.75; font-style: italic;
  padding-left: 16px; border-left: 3px solid var(--teal);
}
.testimonial-author { margin-top: 24px; display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; color: var(--teal); font-size: .9rem;
  flex-shrink: 0; border: 2px solid var(--border);
}
.testimonial-name { font-weight: 600; font-size: .9rem; color: var(--ink); }
.testimonial-location { font-size: .78rem; color: var(--warm-grey); }

/* ── Locations ─────────────────────────────────────────── */
.locations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.location-card { background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; transition: var(--transition); }
.location-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.location-card-header { background: var(--navy); padding: 28px; }
.location-number { font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; color: rgba(255,255,255,.3); margin-bottom: 8px; }
.location-city { font-family: var(--serif); font-size: 1.5rem; color: var(--white); font-weight: 700; }
.location-tag { display: inline-block; background: rgba(20,128,168,.3); color: rgba(255,255,255,.9); font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; margin-top: 8px; }
.location-card-body { padding: 24px 28px; }
.location-detail { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: .875rem; color: var(--warm-grey); }
.location-detail svg { color: var(--teal); flex-shrink: 0; margin-top: 1px; }
.location-map-link { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-size: .8rem; font-weight: 600; margin-top: 8px; transition: color var(--transition); }
.location-map-link:hover { color: var(--navy-mid); }

/* ── Trust section ─────────────────────────────────────── */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.trust-item { text-align: center; }
.trust-icon { width: 64px; height: 64px; border-radius: 8px; background: rgba(20,128,168,.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--teal); }
.trust-title { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; font-weight: 600; }
.trust-desc { font-size: .84rem; color: var(--warm-grey); line-height: 1.65; }

/* ── CTA banner ─────────────────────────────────────────── */
.cta-banner { background: var(--navy); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(20,128,168,.18) 0%, transparent 60%); pointer-events: none; }
.cta-banner h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 16px; font-weight: 700; }
.cta-banner h2 em { font-style: italic; color: var(--gold-lt); }
.cta-banner p { color: rgba(255,255,255,.6); font-size: 1rem; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-phone { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: var(--white); font-size: .9rem; font-weight: 600; padding: 13px 26px; border-radius: 100px; transition: var(--transition); min-height: 44px; }
.cta-phone:hover { background: rgba(255,255,255,.14); }

/* ── Photo sections (full-width) ─────────────────────────── */
.photo-section { position: relative; overflow: hidden; }
.photo-section img { width: 100%; height: 420px; object-fit: cover; display: block; }
.photo-section-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(18,58,82,.72) 0%, rgba(20,128,168,.30) 100%);
  display: flex; align-items: center;
}

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.gallery-item { border-radius: 6px; overflow: hidden; background: var(--paper); position: relative; }
.gallery-item img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:first-child { grid-column: span 2; }
.gallery-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: var(--warm-grey); font-size: .8rem; background: linear-gradient(135deg, var(--paper) 0%, #c7e9f9 100%); }

/* ── Treatment detail ─────────────────────────────────────── */
.treatment-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding: 56px 0; border-bottom: 1px solid var(--border); }
.treatment-detail:last-child { border-bottom: none; }
.treatment-detail.reverse { direction: rtl; }
.treatment-detail.reverse > * { direction: ltr; }
.treatment-detail-icon { width: 56px; height: 56px; border-radius: 8px; background: rgba(20,128,168,.1); display: flex; align-items: center; justify-content: center; color: var(--teal); margin-bottom: 20px; }
.treatment-detail-title { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); margin-bottom: 12px; font-weight: 700; }
.treatment-detail-text { color: var(--warm-grey); line-height: 1.75; }
.treatment-detail-img { border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; background: #fff; position: relative; }
.treatment-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.treatment-detail-img .photo-placeholder { position: absolute; inset: 0; }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .8rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.form-field input, .form-field select, .form-field textarea { padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-family: var(--sans); font-size: .9rem; color: var(--ink); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition); outline: none; width: 100%; min-height: 44px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,128,168,.14); }
.form-field textarea { resize: vertical; min-height: 120px; }

.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon { width: 44px; height: 44px; border-radius: 8px; background: rgba(20,128,168,.1); display: flex; align-items: center; justify-content: center; color: var(--teal); flex-shrink: 0; }
.contact-item-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--warm-grey); margin-bottom: 4px; }
.contact-item-val { font-size: .9rem; color: var(--ink); }
.contact-item-val a { color: var(--teal); font-weight: 500; }
.contact-item-val a:hover { color: var(--navy-mid); }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--cream); padding: 64px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--border); }
.footer-logo { display: inline-flex; align-items: center; margin-bottom: 16px; background: transparent; padding: 0; border-radius: 0; }
.footer-logo img { display: block; height: 64px; width: auto; }
.footer-brand-desc { font-size: .82rem; color: var(--warm-grey); line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--border); color: var(--teal);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--teal); color: #fff; border-color: var(--teal); transform: translateY(-2px); }
.footer-col h4 { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--warm-grey); font-size: .84rem; margin-bottom: 8px; transition: color var(--transition); }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: .78rem; color: var(--warm-grey); }

/* ── Navbar dropdown (Trattamenti) ───────────────────────── */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd-caret { width: 11px; height: 11px; transition: transform .2s; }
.nav-dd:hover .nav-dd-caret { transform: rotate(180deg); }
.nav-dd::before { content: ''; position: absolute; left: -10px; right: -10px; top: 100%; height: 16px; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(22,46,69,.18); padding: 8px; min-width: 240px;
  display: grid; gap: 1px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dd-menu a {
  display: block !important; padding: 9px 14px !important; border-radius: 8px;
  font-size: .84rem !important; font-weight: 500 !important; color: var(--navy) !important;
  white-space: nowrap; min-height: 0 !important;
}
.nav-dd-menu a::after { display: none !important; }
.nav-dd-menu a:hover { background: var(--cream); color: var(--teal) !important; }
.nav-dd-menu .nav-dd-all { border-top: 1px solid var(--border); margin-top: 5px; padding-top: 11px !important; font-weight: 700 !important; color: var(--teal) !important; }
@media (max-width: 768px) { .nav-dd-menu { display: none !important; } }

/* Treatment cross-links (per-treatment pages) */
.treat-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.treat-links a { background: #fff; border: 1px solid var(--border); border-radius: 100px; padding: 10px 18px; font-size: .82rem; font-weight: 600; color: var(--teal); transition: var(--transition); }
.treat-links a:hover { background: var(--teal); color: #fff; border-color: var(--teal); transform: translateY(-2px); }

/* Treatment page hero image — white frame so the transparent AI art sits on white */
.treatment-hero-img { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; overflow: hidden; }
.treatment-hero-img img { width: 100%; height: auto; display: block; border-radius: 6px; }

/* "Scopri di più" link on treatment sections */
.treatment-more { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 700; font-size: .85rem; margin-top: 18px; transition: gap var(--transition); }
.treatment-more:hover { gap: 11px; }

/* Agency credit (Ainnantis) */
.footer-credit { margin-top: 20px; display: flex; justify-content: center; }
.footer-credit a { display: inline-flex; align-items: center; gap: 11px; color: var(--warm-grey); font-size: .78rem; transition: color var(--transition); }
.footer-credit a:hover { color: var(--ink); }
.footer-credit img { height: 34px; width: auto; display: block; }
.footer-credit-url { font-weight: 700; color: var(--teal); }
.footer-credit a:hover .footer-credit-url { color: var(--navy-mid); }
@media (max-width: 480px) { .footer-credit a { flex-direction: column; gap: 8px; text-align: center; } }

/* ── Scroll reveal ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Utility ─────────────────────────────────────────────── */
.text-center  { text-align: center; }
.bg-cream     { background: var(--cream); }
.bg-pale      { background: var(--cream); }
.bg-navy      { background: var(--navy); }
.bg-white     { background: var(--white); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split { grid-template-columns: 1fr; gap: 40px; }
  .about-img { aspect-ratio: 16/7; }
  .locations-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 64px 0; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .treatments-grid { grid-template-columns: repeat(2, 1fr); }
  .locations-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 2; }
  .treatment-detail { grid-template-columns: 1fr; gap: 32px; }
  .treatment-detail.reverse { direction: ltr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .photo-section img { height: 260px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-bar .container { grid-template-columns: 1fr 1fr; }
  .treatments-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Hero mobile */
  .hero-eyebrow { display: none; }
  .hero-sub     { display: none; }
  .hero-content { padding: 120px 0 80px; }
  .hero-ctas    { display: none; }
  /* Show top of photos (faces) on portrait mobile */
  .hero-slide   { background-position: center top !important; top: 0; height: 100%; }

  /* Stronger overlay on mobile so photo doesn't clash with text */
  .hero::before {
    background: linear-gradient(180deg, rgba(18,58,82,.66) 0%, rgba(18,58,82,.38) 60%, rgba(18,58,82,.66) 100%);
  }

  /* Push hero dots up above sticky bar */
  .hero-dots { bottom: 80px; }

  /* Body padding so content isn't hidden behind sticky bar */
  body { padding-bottom: 64px; }
}

/* Hide action bar when mobile nav is open */
.mobile-menu.open ~ .mobile-action-bar { display: none !important; }

/* ── Sticky mobile action bar ────────────────────────────── */
.mobile-action-bar {
  display: none;
}
@media (max-width: 480px) {
  .mobile-action-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: var(--navy, #162E45);
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .mobile-action-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 12px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .02em;
    transition: opacity .2s;
  }
  .mobile-action-bar a:active { opacity: .8; }
  .mobile-action-bar .mab-call {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
  }
  .mobile-action-bar .mab-book {
    background: var(--gold, #C9A84C);
    color: #1a1a1a;
  }
  .mobile-action-bar svg { flex-shrink: 0; }
}

/* ── Gallery page ────────────────────────────────────────── */
/* Masonry: each photo keeps its native proportions, packed with no white gaps */
.foto-grid {
  column-count: 3;
  column-gap: 10px;
  margin-top: 40px;
}
.foto-item {
  position: relative; overflow: hidden; border-radius: 8px;
  cursor: pointer; background: var(--cream);
  break-inside: avoid; -webkit-column-break-inside: avoid;
  margin-bottom: 10px; display: block;
}
.foto-item img {
  width: 100%; height: auto; display: block;
  transition: transform .5s ease;
}
.foto-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 90vh; object-fit: contain; border-radius: 4px;
}
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  font-size: 2rem; color: white; cursor: pointer; background: none; border: none;
  line-height: 1; opacity: .7; transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2rem; color: white; cursor: pointer; background: none; border: none;
  opacity: .55; transition: opacity .2s; padding: 12px;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }

@media (max-width: 768px) {
  .foto-grid { column-count: 2; column-gap: 8px; }
  .foto-item { margin-bottom: 8px; }
}
@media (max-width: 480px) {
  .foto-grid { column-count: 1; }
}

/* ── Logo intro animation ────────────────────────────────── */
#logo-intro-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: #fff;
  pointer-events: none;
}
#logo-intro-img {
  position: fixed; z-index: 10001;
  height: auto;
  pointer-events: none;
  opacity: 0;
}

/* ── Google Reviews carousel ─────────────────────────────── */
.reviews-summary {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin-top: 18px;
}
.reviews-summary:empty { display: none; }
.rv-summary-score { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1; }
.rv-summary-count { font-size: .82rem; color: var(--warm-grey); }
.rv-stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; line-height: 1; white-space: nowrap; }
.rv-stars-empty { color: var(--border); }

.reviews-carousel { position: relative; width: min(1160px, 100%); margin: 44px auto 0; }
.reviews-track {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 28px 28px; scroll-padding-left: 28px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 clamp(270px, 78vw, 348px); scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.review-card-empty { flex-basis: min(520px, 90vw); align-items: flex-start; }

.rv-head { display: flex; align-items: center; gap: 12px; }
.rv-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rv-avatar-initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--teal); border: 2px solid var(--border);
  font-family: var(--serif); font-weight: 700; font-size: .9rem;
}
.rv-meta { flex: 1; min-width: 0; }
.rv-name { font-weight: 700; font-size: .92rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-time { font-size: .76rem; color: var(--warm-grey); }
.rv-google { flex-shrink: 0; }
.review-card .rv-stars { font-size: 1.05rem; }
.rv-text {
  font-size: .9rem; color: var(--warm-grey); line-height: 1.7; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}

.reviews-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border); color: var(--teal);
  font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer; transition: var(--transition);
}
.reviews-arrow:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.reviews-arrow:disabled { opacity: .35; cursor: default; }
.reviews-arrow:disabled:hover { background: var(--white); color: var(--teal); border-color: var(--border); }
.reviews-arrow-prev { left: -6px; }
.reviews-arrow-next { right: -6px; }
@media (max-width: 768px) { .reviews-arrow { display: none; } }

/* ── Cookie consent banner ───────────────────────────────── */
#rz-cookie {
  position: fixed; left: 22px; bottom: 22px; z-index: 9000;
  width: min(360px, calc(100% - 44px));
  background: #fff; color: var(--warm-grey);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 16px 48px rgba(22,46,69,.22);
  padding: 20px 22px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(24px) scale(.98); opacity: 0; pointer-events: none;
  transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
#rz-cookie.rz-cookie-show { transform: none; opacity: 1; pointer-events: auto; }
.rz-cookie-inner { display: block; width: auto; margin: 0; padding: 0; }
.rz-cookie-text { font-size: .8rem; line-height: 1.6; color: var(--warm-grey); margin: 0 0 16px; }
.rz-cookie-text a { color: var(--teal); text-decoration: underline; }
.rz-cookie-actions { display: flex; gap: 10px; }
.rz-cookie-btn { flex: 1; padding: 11px 16px; border-radius: 100px; font-size: .8rem; font-weight: 700; cursor: pointer; transition: var(--transition); min-height: 44px; }
.rz-cookie-primary { background: var(--gold); color: var(--ink); }
.rz-cookie-primary:hover { background: var(--gold-lt); }
.rz-cookie-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.rz-cookie-ghost:hover { background: var(--cream); }
@media (max-width: 480px) {
  #rz-cookie { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* Legal / policy pages */
.legal { width: min(820px, 100%); margin: 0 auto; }
.legal h2 { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); margin: 36px 0 12px; font-weight: 700; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin: 22px 0 8px; font-weight: 600; }
.legal p, .legal li { color: var(--warm-grey); line-height: 1.8; font-size: .95rem; }
.legal ul { margin: 8px 0 8px 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--teal); font-weight: 600; }
.legal a:hover { color: var(--navy-mid); }
.legal .legal-updated { font-size: .82rem; color: var(--warm-grey); font-style: italic; margin-bottom: 28px; }
.legal .legal-box { background: var(--cream); border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; margin: 18px 0; }

/* Legal links row in footer */
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--warm-grey); font-size: .76rem; }
.footer-legal a:hover { color: var(--teal); }
@media (max-width: 768px) {
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}

/* ── AI Chat Widget ────────────────────────────────────── */
#rz-chat { position: fixed; bottom: 24px; right: 24px; z-index: 500; font-family: var(--sans, system-ui, sans-serif); }
/* Kill double-tap-to-zoom on every chat control (tap = interaction, not zoom) */
#rz-chat button, #rz-chat input, #rz-chat a { touch-action: manipulation; }
/* Raised above the sticky mobile action bar (≈63px + safe area) so it never
   overlaps the "Prenota visita" button. */
@media (max-width: 480px) { #rz-chat { bottom: calc(86px + env(safe-area-inset-bottom)); right: 14px; } }

#rz-chat-btn {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy, #162E45); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.28);
  position: relative; transition: transform .2s, opacity .2s;
}
#rz-chat-btn:hover { transform: scale(1.08); }
#rz-chat-btn.rz-hidden { opacity: 0; pointer-events: none; transform: scale(.8); }

#rz-press-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 2.5px solid var(--teal, #0d9488); opacity: 0;
  transform: scale(.7); transition: transform .6s ease, opacity .1s;
}
#rz-press-ring.rz-ring-active { opacity: 1; transform: scale(1); }

/* Panel */
#rz-chat-panel {
  position: absolute; bottom: 64px; right: 0;
  width: 320px; max-height: 480px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.97);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
#rz-chat-panel.rz-open {
  opacity: 1; transform: none; pointer-events: all;
}
@media (max-width: 480px) {
  #rz-chat-panel {
    position: fixed; bottom: 0; left: 0; right: 0;
    width: 100%; max-height: 75vh; border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
  #rz-chat-panel.rz-open { transform: none; }
}

#rz-chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--navy, #162E45); color: #fff;
  flex-shrink: 0;
}
#rz-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal, #0d9488);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  background-image: url('../img/logo.png');
  background-size: cover; background-position: center;
}
#rz-chat-close {
  background: none; border: none; color: rgba(255,255,255,.7);
  cursor: pointer; padding: 4px; border-radius: 6px; line-height: 0;
  transition: color .2s;
}
#rz-chat-close:hover { color: #fff; }

#rz-messages {
  flex: 1; overflow-y: auto; padding: 14px 14px 6px;
  display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth;
}

.rz-msg {
  max-width: 86%; padding: 9px 12px; border-radius: 14px;
  font-size: .82rem; line-height: 1.55; word-break: break-word;
}
.rz-msg-user {
  align-self: flex-end; background: var(--navy, #162E45); color: #fff;
  border-bottom-right-radius: 4px;
}
.rz-msg-assistant {
  align-self: flex-start; background: #f0f4f8; color: #1a2b3c;
  border-bottom-left-radius: 4px;
}

.rz-typing { display: flex; gap: 4px; align-items: center; padding: 10px 14px; }
.rz-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #94a3b8;
  animation: rzBounce 1.2s ease-in-out infinite;
}
.rz-typing span:nth-child(2) { animation-delay: .15s; }
.rz-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes rzBounce { 0%,60%,100% { transform: none; } 30% { transform: translateY(-5px); } }

.rz-action-link {
  align-self: flex-start; display: inline-block;
  margin-top: 2px; padding: 7px 12px;
  background: var(--teal, #0d9488); color: #fff;
  border-radius: 20px; font-size: .78rem; font-weight: 600;
  text-decoration: none; transition: opacity .2s;
}
.rz-action-link:hover { opacity: .85; }

#rz-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 12px 8px; flex-shrink: 0;
}
.rz-chip {
  padding: 5px 11px; border-radius: 20px;
  border: 1.5px solid var(--teal, #0d9488); background: none;
  color: var(--teal, #0d9488); font-size: .76rem; font-weight: 600;
  cursor: pointer; transition: background .2s, color .2s;
}
.rz-chip:hover { background: var(--teal, #0d9488); color: #fff; }

#rz-input-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-top: 1px solid #e8edf2; flex-shrink: 0;
}
#rz-input {
  flex: 1; border: 1.5px solid #dde3ea; border-radius: 22px;
  padding: 9px 14px; font-size: .82rem; outline: none;
  transition: border-color .2s; font-family: inherit;
}
#rz-input:focus { border-color: var(--teal, #0d9488); }
/* iOS Safari auto-zooms the page when a focused input has font-size < 16px.
   Must live AFTER the base #rz-input rule — same specificity, last one wins.
   (hover: none) also covers phones in landscape, wider than 480px. */
@media (hover: none), (max-width: 480px) {
  #rz-input { font-size: 16px; }
}
#rz-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal, #0d9488); border: none; cursor: pointer;
  color: #fff; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: opacity .2s;
}
#rz-send:disabled { opacity: .5; cursor: default; }
#rz-send:not(:disabled):hover { opacity: .85; }

/* Booking confirmation bubble */
.rz-msg-confirmed {
  align-self: flex-start;
  display: flex; align-items: flex-start; gap: 8px;
  background: #d1fae5; color: #065f46;
  border-radius: 14px; border-bottom-left-radius: 4px;
  padding: 10px 13px; font-size: .82rem; line-height: 1.55;
  max-width: 86%;
}

/* GDPR consent banner inside chat */
#rz-consent {
  background: #f0f4f8;
  border: 1px solid #dde3ea;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .77rem;
  color: #4a5568;
  line-height: 1.55;
  margin-bottom: 4px;
}
#rz-consent p { margin: 0; }
#rz-consent-ok {
  background: var(--teal, #0d9488);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}
#rz-consent-ok:hover { opacity: .85; }
