/* ============================================================
   RESIDENZA DERUBEIS — DESIGN SYSTEM
   Dark editorial luxury. Four Seasons emerald DNA.
   Playfair Display (display) + Plus Jakarta Sans (body).
   Single accent. Single radius. One theme (dark) locked.
   ============================================================ */

:root {
  /* --- Surfaces (near-black, faint cool-green undertone, never #000) --- */
  --bg:            #222222;
  --bg-alt:        #262626;
  --surface:       #2A2A2A;
  --surface-2:     #333333;

  /* --- Lines / hairlines --- */
  --line:          rgba(209, 209, 209, 0.10);
  --line-strong:   rgba(209, 209, 209, 0.18);

  /* --- Single accent: Four Seasons emerald (#4F6B4F), tuned for dark/AA --- */
  --accent:        #729472;  /* buttons, large marks */
  --accent-bright: #8FB48F;  /* small text / eyebrows on dark (AA) */
  --accent-hover:  #84A884;
  --accent-deep:   #4F6B4F;  /* original FS primary, for tints */
  --accent-glow:   rgba(114, 148, 114, 0.30);
  --accent-tint:   rgba(114, 148, 114, 0.10);

  /* --- Text (warm bone off-white, never pure #fff) --- */
  --text:          #D1D1D1;
  --muted:         #A6A6A6;
  --muted-2:       #6E6E6E;
  --on-accent:     #1A1A1A;  /* near-black on emerald buttons */

  /* --- Type --- */
  --font-display:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:     'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* --- Structure: ONE radius system (near-sharp, FS editorial) --- */
  --r:             4px;
  --r-pill:        4px;
  --max:           1240px;
  --max-narrow:    920px;

  --shadow:        0 24px 70px -28px rgba(0, 0, 0, 0.75);
  --shadow-soft:   0 16px 50px -24px rgba(0, 0, 0, 0.6);
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --t:             0.4s var(--ease);

  --nav-h:         72px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); line-height: 1.08; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
em { font-style: italic; color: var(--accent-bright); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 60ch; }
p { color: var(--muted); }

/* Testi narrativi giustificati (stile rivista d'architettura) */
.lead, .camera-desc, .camera-detail-corpo p, .hero-pagina-inner p, .sezione p, .narrow p {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.display-em { font-style: italic; color: var(--accent-bright); line-height: 1.12; padding-bottom: 0.06em; display: inline-block; }

/* === LAYOUT === */
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.sezione { padding: clamp(80px, 12vh, 150px) 0; }
.sezione-alt { background: var(--bg-alt); }
.narrow { max-width: var(--max-narrow); margin-inline: auto; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent-bright);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); display: inline-block; }
.eyebrow-white { color: var(--accent-bright); }

.sez-header { max-width: 640px; margin-bottom: 56px; }
.sez-header.centro { margin-inline: auto; text-align: center; }
.sez-header.centro .eyebrow { justify-content: center; }
.sez-header h2 { margin-bottom: 18px; }
.sez-header p { font-size: 1.08rem; }

/* === SCROLL REVEAL === */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.active { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }

/* GSAP: pre-nascondi gli elementi dell'entrance hero (solo se movimento consentito
   e GSAP attivo) per evitare il flash prima dell'animazione. */
@media (prefers-reduced-motion: no-preference) {
  html.gsap-on .hero-inner > * { opacity: 0; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--r);
  font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn i { font-size: 0.9em; transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primario { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -12px var(--accent-glow); }
.btn-primario:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 16px 40px -14px var(--accent-glow); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-bright); }

.btn-outline-white { background: rgba(242,240,233,0.04); color: var(--text); border-color: var(--line-strong); backdrop-filter: blur(8px); }
.btn-outline-white:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.btn-ghost { background: transparent; color: var(--text); border-color: transparent; padding-inline: 6px; }
.btn-ghost:hover { color: var(--accent-bright); }

.btn-lg { padding: 17px 34px; font-size: 15px; }
.btn-full { width: 100%; }

/* === NAVBAR === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 13, 12, 0.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent; transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.scrolled { background: rgba(10, 13, 12, 0.88); border-bottom-color: var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-logo { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.nav-logo span { color: var(--accent-bright); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a:not(.btn) {
  font-size: 14px; font-weight: 500; color: var(--muted); padding: 9px 14px; border-radius: var(--r);
  transition: color 0.25s var(--ease); position: relative;
}
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links > a.attivo { color: var(--text); }
.nav-links > a.attivo::after { transform: scaleX(1); }
.nav-cta { margin-left: 10px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); transition: var(--t); display: block; }

.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 14px 28px 26px; background: rgba(10,13,12,0.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav-mobile a { padding: 13px 4px; font-size: 1.05rem; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); }
.nav-mobile a.btn { color: var(--on-accent); border: none; margin-top: 14px; justify-content: center; }
.nav-mobile.open { display: flex; }

/* === HERO (HOMEPAGE) === */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; padding: calc(var(--nav-h) + 40px) 0 70px; }
.hero-bg {
  position: absolute; inset: -12% -4% -12% -4%; z-index: 0;
  background: url('https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?w=1900&q=80') center/cover no-repeat;
  transform: scale(1.08); will-change: transform;
  animation: kenburns 22s ease-out infinite alternate;
}
/* Quando GSAP è attivo gestisce ken-burns + parallax: niente animazione CSS in conflitto sul transform */
html.gsap-on .hero-bg { animation: none; }
@keyframes kenburns { from { transform: scale(1.06) translateY(0); } to { transform: scale(1.16) translateY(-2%); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(8,11,10,0.96) 0%, rgba(8,11,10,0.78) 42%, rgba(8,11,10,0.36) 100%),
    linear-gradient(0deg, var(--bg) 2%, rgba(10,13,12,0) 40%);
}
.hero-content { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.hero-inner { max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-bright);
  padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: rgba(10,13,12,0.4); backdrop-filter: blur(6px); margin-bottom: 30px;
}
.hero h1 { font-size: clamp(2.9rem, 6.4vw, 5.2rem); line-height: 1.04; margin-bottom: 26px; }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(242,240,233,0.78); max-width: 52ch; margin-bottom: 40px; }
.hero-azioni { display: flex; flex-wrap: wrap; gap: 14px; }

/* === STATS BAND === */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 48px 28px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 600; color: var(--text); line-height: 1; }
.stat-num span { color: var(--accent-bright); }
.stat-label { margin-top: 12px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* === PERCHE / VALUE GRID === */
.perche-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.perche-card { background: var(--surface); padding: 38px 30px; transition: background 0.4s var(--ease); }
.perche-card:hover { background: var(--surface-2); }
.perche-icon { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); background: var(--accent-tint); color: var(--accent-bright); font-size: 1.3rem; margin-bottom: 22px; }
.perche-card h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; margin-bottom: 12px; }
.perche-card p { font-size: 0.96rem; }

/* === CAMERE — HOMEPAGE ASYMMETRIC GRID === */
.camere-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.camera-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); display: flex; flex-direction: column; }
.camera-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.camera-card.featured { grid-row: span 2; }
.camera-img { position: relative; overflow: hidden; aspect-ratio: 16/11; }
.camera-card.featured .camera-img { aspect-ratio: auto; flex: 1; min-height: 340px; }
.camera-img img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
/* Hover affordance senza toccare il transform (di cui GSAP fa la parallax) */
.camera-img img { transition: filter 0.5s var(--ease); }
.camera-card:hover .camera-img img { filter: brightness(1.06); }
.camera-badge { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 13px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); }
.camera-badge.premium { background: var(--text); color: var(--bg); }
.camera-corpo { padding: 30px; display: flex; flex-direction: column; gap: 8px; }
.camera-tipo { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-bright); font-weight: 600; }
.camera-corpo h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 4px; }
.camera-prezzo { font-family: var(--font-display); font-size: 2rem; color: var(--text); margin: 4px 0 14px; }
.camera-prezzo span { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.camera-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.tag i { color: var(--accent-bright); font-size: 0.9em; }
.camera-corpo .btn { margin-top: auto; }

/* === CAMERE — DETAIL ROWS (camere.html) === */
.camere-lista { display: flex; flex-direction: column; gap: clamp(60px, 9vh, 110px); }
.camera-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.camera-detail.inversa .camera-detail-img { order: 2; }
.camera-detail-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); }
.camera-detail-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.camera-detail:hover .camera-detail-img img { transform: scale(1.04); }
.camera-detail-prezzo { font-family: var(--font-display); font-size: 2.4rem; color: var(--text); margin: 6px 0 18px; }
.camera-detail-prezzo span { font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.camera-desc { margin-bottom: 28px; font-size: 1.05rem; }
.camera-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 30px; }
.spec-item { background: var(--surface); display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-size: 0.95rem; color: var(--text); }
.spec-icon, .spec-item i { color: var(--accent-bright); font-size: 1rem; width: 20px; text-align: center; }

/* === BENTO — ALL INCLUSIVE === */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 215px; gap: 18px; }
.bento-cell { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; overflow: hidden; transition: border-color 0.4s var(--ease), background 0.4s var(--ease); display: flex; flex-direction: column; justify-content: flex-end; }
.bento-cell:hover { border-color: var(--line-strong); background: var(--surface-2); }
.bento-cell .b-icon { font-size: 1.5rem; color: var(--accent-bright); margin-bottom: auto; }
.bento-cell h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.2rem; margin-bottom: 8px; }
.bento-cell p { font-size: 0.94rem; }
.bento-feature { grid-column: span 2; grid-row: span 2; justify-content: flex-end; }
.bento-feature::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(8,11,10,0.2) 0%, rgba(8,11,10,0.92) 88%),
              url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?w=1100&q=80') center/cover;
}
.bento-feature > * { position: relative; z-index: 1; }
.bento-feature h3 { font-family: var(--font-display); font-size: 1.9rem; }
.bento-feature p { color: rgba(242,240,233,0.8); max-width: 42ch; }
.bento-tall { grid-row: span 2; }
.bento-tint { background: var(--accent-deep); border-color: transparent; }
.bento-tint .b-icon, .bento-tint h3 { color: var(--text); }
.bento-tint p { color: rgba(242,240,233,0.82); }

/* === SERVIZI GRID (servizi.html) === */
.servizi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.servizio-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 34px 30px; transition: border-color 0.4s var(--ease), transform 0.4s var(--ease); }
.servizio-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.servizio-card-icon, .servizio-icon { width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); background: var(--accent-tint); color: var(--accent-bright); font-size: 1.25rem; margin-bottom: 20px; }
.servizio-card h3, .servizio-item h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; margin-bottom: 10px; }
.servizio-card p, .servizio-item p { font-size: 0.95rem; }

/* === SERVIZI FASCIA (homepage dark band) === */
.servizi-fascia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.servizio-item { background: var(--surface); padding: 36px 28px; }

/* === FASCIA CTA === */
.fascia-cta { position: relative; padding: clamp(80px, 13vh, 150px) 0; text-align: center; overflow: hidden; background: var(--bg-alt); border-top: 1px solid var(--line); }
.fascia-cta::before { content: ""; position: absolute; top: -40%; left: 50%; width: 700px; height: 700px; transform: translateX(-50%); background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%); opacity: 0.5; z-index: 0; }
.fascia-cta .container { position: relative; z-index: 1; }
.fascia-cta h2 { max-width: 16ch; margin: 0 auto 18px; }
.fascia-cta p { max-width: 52ch; margin: 0 auto 36px; font-size: 1.08rem; }
.fascia-cta-azioni { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === PAGE HERO (inner pages) === */
.hero-pagina { position: relative; padding: calc(var(--nav-h) + 90px) 0 80px; text-align: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-pagina::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--accent-tint) 0%, transparent 70%); }
.hero-pagina-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.hero-pagina .eyebrow { justify-content: center; }
.hero-pagina h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); margin-bottom: 20px; }
.hero-pagina p { max-width: 56ch; margin: 0 auto; font-size: 1.1rem; }

/* === LOCATION === */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.mappa-placeholder { aspect-ratio: 4/5; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 40px; position: sticky; top: 100px; }
.mappa-placeholder-icon { font-size: 2.6rem; color: var(--accent-bright); }
.mappa-placeholder strong { font-family: var(--font-display); font-size: 1.4rem; color: var(--text); }
.mappa-placeholder p { font-size: 0.92rem; }
.mappa-placeholder iframe, .location-grid iframe { width: 100%; aspect-ratio: 4/5; border: 1px solid var(--line); border-radius: var(--r); position: sticky; top: 100px; display: block; filter: grayscale(0.25) invert(0.9) hue-rotate(180deg) contrast(0.92); }
.distanze { display: flex; flex-direction: column; }
.distanza-item { display: flex; align-items: center; gap: 18px; padding: 20px 4px; border-bottom: 1px solid var(--line); transition: padding-left 0.3s var(--ease); }
.distanza-item:hover { padding-left: 12px; }
.distanza-icon { width: 46px; height: 46px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); background: var(--accent-tint); color: var(--accent-bright); font-size: 1.15rem; }
.distanza-item > div:nth-child(2) { flex: 1; }
.distanza-nome { font-weight: 600; color: var(--text); font-size: 1rem; }
.distanza-desc { font-size: 0.88rem; color: var(--muted); }
.distanza-badge { flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--accent-bright); padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: var(--r); white-space: nowrap; }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 5vw, 70px); align-items: start; }
.about-img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--line); position: sticky; top: 100px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-testo h2 { margin-bottom: 22px; }
.about-testo p { margin-bottom: 18px; font-size: 1.05rem; }
.about-valori { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 36px; }
.valore { background: var(--surface); padding: 26px 24px; }
.valore-icon { font-size: 1.4rem; color: var(--accent-bright); margin-bottom: 14px; }
.valore h4 { font-family: var(--font-body); font-weight: 600; margin-bottom: 6px; }
.valore p { font-size: 0.9rem; }

/* === FAQ ACCORDION === */
.faq-lista { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-domanda {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 4px; font-family: var(--font-display); font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600;
  color: var(--text); transition: color 0.3s var(--ease);
}
.faq-domanda:hover { color: var(--accent-bright); }
.faq-chevron { flex-shrink: 0; font-size: 1rem; color: var(--accent-bright); transition: transform 0.4s var(--ease); }
.faq-domanda.aperta .faq-chevron { transform: rotate(180deg); }
.faq-risposta { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-risposta.aperta { max-height: 420px; }
.faq-risposta-inner, .faq-risposta { color: var(--muted); }
.faq-risposta { padding: 0 4px; }
.faq-risposta.aperta { padding-bottom: 28px; }
.faq-risposta-inner { padding-bottom: 0; max-width: 70ch; line-height: 1.7; }

/* === CONTATTI === */
.contatti-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contatti-info h3 { font-family: var(--font-display); margin-bottom: 16px; }
.contatti-info > p { margin-bottom: 32px; font-size: 1.05rem; }
.contatto-dettagli { display: flex; flex-direction: column; gap: 4px; margin-bottom: 30px; }
.contatto-item { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contatto-icon { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); background: var(--accent-tint); color: var(--accent-bright); font-size: 1.1rem; }
.contatto-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contatto-valore { font-size: 1.02rem; color: var(--text); font-weight: 500; }
.whatsapp-btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: var(--r); background: var(--accent-tint); border: 1px solid var(--accent); color: var(--accent-bright); font-weight: 600; transition: var(--t); }
.whatsapp-btn:hover { background: var(--accent); color: var(--on-accent); }
.orari { margin-top: 34px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.orari h4 { font-family: var(--font-body); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--text); }
.orari h4 i { color: var(--accent-bright); }
.orari p { font-size: 0.98rem; line-height: 1.9; }

/* === FORM === */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(28px, 4vw, 44px); }
.form-card h3 { font-family: var(--font-display); margin-bottom: 8px; }
.form-card > p.form-intro { margin-bottom: 26px; font-size: 0.98rem; }
.form-riga { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.01em; }
.form-group input, .form-group select, .form-group textarea {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: 13px 15px; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); width: 100%;
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted-2); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.form-group select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235BC8A8' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-group select option { background: var(--surface); color: var(--text); }
.form-nota { font-size: 0.85rem; color: var(--muted); margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.form-nota i { color: var(--accent-bright); }
.form-error { font-size: 0.82rem; color: #F09; color: #FF8FA3; margin-top: -10px; margin-bottom: 14px; display: none; }
.form-error.show { display: block; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success .check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-bright); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.form-success h3 { margin-bottom: 8px; }
.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(6,18,14,0.35); border-top-color: var(--on-accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === FOOTER === */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 80px 0 36px; }
.footer-griglia { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 18px; color: var(--text); }
.footer-logo span { color: var(--accent-bright); }
.footer-brand p { max-width: 36ch; font-size: 0.96rem; margin-bottom: 24px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--muted); transition: var(--t); }
.footer-social a:hover { border-color: var(--accent); color: var(--accent-bright); transform: translateY(-2px); }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; font-weight: 600; }
.footer-col a { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 0.96rem; color: var(--muted); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--accent-bright); }
.footer-col a i { width: 16px; color: var(--accent-bright); font-size: 0.85em; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 30px; font-size: 0.88rem; color: var(--muted); flex-wrap: wrap; }
.footer-bottom a { color: var(--muted); transition: color 0.25s var(--ease); }
.footer-bottom a:hover { color: var(--accent-bright); }
.footer-legal { display: flex; gap: 24px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .perche-grid, .servizi-fascia { grid-template-columns: repeat(2, 1fr); }
  .servizi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-griglia { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .camere-grid { grid-template-columns: 1fr; }
  .camera-card.featured { grid-row: auto; }
  .camera-card.featured .camera-img { min-height: 0; aspect-ratio: 16/11; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .bento-feature { grid-column: span 2; }
  .camera-detail, .camera-detail.inversa { grid-template-columns: 1fr; }
  .camera-detail.inversa .camera-detail-img { order: 0; }
  .location-grid, .about-grid, .contatti-grid { grid-template-columns: 1fr; }
  .mappa-placeholder, .about-img, .location-grid iframe { position: static; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .perche-grid, .servizi-fascia, .servizi-grid, .bento, .camera-specs, .about-valori { grid-template-columns: 1fr; }
  .bento-feature { grid-column: auto; grid-row: span 2; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .form-riga { grid-template-columns: 1fr; }
  .footer-griglia { grid-template-columns: 1fr; }
  .hero-azioni .btn, .fascia-cta-azioni .btn { width: 100%; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { animation: none; transform: scale(1.06); }
}

/* === REDUCED TRANSPARENCY FALLBACK === */
@media (prefers-reduced-transparency: reduce) {
  .nav, .nav.scrolled { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero-badge { backdrop-filter: none; }
}

/* ============================================================
   CONVIVO 35 — Prenota forms (index.html)
   Scoped to #prenota · dark/gold theme
   ============================================================ */
#prenota .prenota-form-card {
  background: var(--bg-base, #222222);
  border: 1px solid var(--border, rgba(209, 209, 209, 0.08));
  border-radius: var(--radius-lg, 20px);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

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

#prenota .prenota-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

#prenota .prenota-form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary, #D1D1D1);
}

#prenota .prenota-form-group input,
#prenota .prenota-form-group select,
#prenota .prenota-form-group textarea {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.95rem;
  color: var(--text-primary, #D1D1D1);
  background: var(--bg-input, #333333);
  border: 1px solid var(--border, rgba(209, 209, 209, 0.08));
  border-radius: var(--radius-sm, 6px);
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 300ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

#prenota .prenota-form-group textarea {
  min-height: 110px;
  resize: vertical;
}

#prenota .prenota-form-group input::placeholder,
#prenota .prenota-form-group textarea::placeholder {
  color: var(--text-muted, #6E6E6E);
}

#prenota .prenota-form-group input:focus,
#prenota .prenota-form-group select:focus,
#prenota .prenota-form-group textarea:focus {
  outline: none;
  border-color: var(--gold, #729472);
  box-shadow: 0 0 0 3px var(--gold-bg, rgba(114, 148, 114, 0.10));
}

#prenota .prenota-form-group input.is-invalid,
#prenota .prenota-form-group select.is-invalid,
#prenota .prenota-form-group textarea.is-invalid {
  border-color: #E07A7A;
}

#prenota .prenota-form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C9A96E' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.5rem;
}

#prenota .prenota-form-group select option {
  background: var(--bg-input, #333333);
  color: var(--text-primary, #D1D1D1);
}

#prenota .prenota-form-error {
  font-size: 0.78rem;
  color: #E07A7A;
  min-height: 0;
  margin: 0;
  display: none;
}

#prenota .prenota-form-error.is-visible {
  display: block;
}

#prenota .prenota-form-group--check .prenota-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-secondary, #A6A6A6);
  cursor: pointer;
}

#prenota .prenota-check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold, #729472);
  flex-shrink: 0;
  cursor: pointer;
}

#prenota .prenota-submit {
  margin-top: 0.5rem;
}

#prenota .prenota-submit[aria-busy="true"] {
  opacity: 0.85;
  pointer-events: none;
}

#prenota .prenota-submit .prenota-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(34, 34, 34, 0.25);
  border-top-color: #222222;
  border-radius: 50%;
  animation: prenota-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes prenota-spin {
  to { transform: rotate(360deg); }
}

#prenota .prenota-success {
  text-align: center;
  padding: 2rem 1rem;
}

#prenota .prenota-success-msg {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 1.15rem;
  color: var(--text-primary, #D1D1D1);
  margin-top: 1.25rem;
  line-height: 1.5;
}

#prenota .prenota-checkmark {
  display: block;
  margin: 0 auto;
}

#prenota .prenota-checkmark-circle {
  stroke: var(--gold, #729472);
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: prenota-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

#prenota .prenota-checkmark-path {
  stroke: var(--gold, #729472);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: prenota-stroke 0.35s 0.45s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes prenota-stroke {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 600px) {
  #prenota .prenota-form-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #prenota .prenota-checkmark-circle,
  #prenota .prenota-checkmark-path {
    animation: none;
    stroke-dashoffset: 0;
  }
  #prenota .prenota-submit .prenota-spinner {
    animation: none;
  }
}
