/* ==========================================================
   LIDO SAN GIULIANO · Mediterraneo Edition
   Trapani, Sicilia — Palette chiara e solare
   Teal profondo · Avorio caldo · Oro sabbia
   Typography: Playfair Display + Cormorant Garamond + Montserrat
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  /* Brand — mare mediterraneo */
  --teal:         #0B7A6E;
  --teal-dark:    #065E54;
  --teal-deep:    #044840;
  --teal-light:   #12A896;
  --teal-pale:    #E0F5F2;

  /* Accento — sabbia & oro */
  --gold:         #C4993B;
  --gold-light:   #E8C97A;
  --gold-dim:     #9E7B35;
  --gold-pale:    #FBF3E0;

  /* Superfici chiare */
  --bg:           #F7F2E8;
  --bg-2:         #EDE5D5;
  --bg-3:         #E3D9C6;
  --bg-warm:      #FDFAF4;
  --white:        #FFFFFF;

  /* Superfici scure (per contrasto hero/overlay) */
  --dark:         #0A1F1C;
  --dark-2:       #122920;

  /* Testo su sfondo chiaro */
  --text:         #1A2E2A;
  --text-2:       #3D524E;
  --muted:        #7A8C88;
  --muted-2:      #B0BDB9;

  /* Linee */
  --line:         rgba(26,46,42,.10);
  --line-strong:  rgba(26,46,42,.20);
  --overlay:      rgba(4,72,64,.55);
  --overlay-light:rgba(4,72,64,.35);

  /* Layout */
  --nav-h:        88px;
  --max:          1280px;
  --max-text:     680px;
  --section-pad:  120px;
  --section-pad-m:64px;

  /* Spacing */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  24px;
  --sp-lg:  40px;
  --sp-xl:  64px;
  --sp-2xl: 96px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26,46,42,.08);
  --shadow-md: 0 4px 20px rgba(26,46,42,.12);
  --shadow-lg: 0 8px 40px rgba(26,46,42,.16);
  --shadow-card: 0 2px 8px rgba(26,46,42,.06), 0 8px 24px rgba(26,46,42,.10);
  --shadow-gold: 0 4px 20px rgba(196,153,59,.20);

  /* Radii */
  --r-sm:   6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-full: 9999px;

  /* Motion */
  --ease:     cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(0,0,.2,1);
  --dur:      .45s;
  --dur-fast: .25s;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-body:    'Montserrat', 'Helvetica Neue', sans-serif;
}

/* ── 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);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px dotted var(--teal); outline-offset: 4px; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--teal-light); border-radius: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 10001;
  background: var(--teal); color: var(--white);
  padding: 12px 24px; font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: var(--r-sm);
}
.skip-link:focus { left: 16px; }

/* ── Custom Cursor ── */
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot { display: none !important; }
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 10000;
  width: 32px; height: 32px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  transition: width var(--dur-fast) var(--ease),
              height var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              opacity .2s;
}
.cursor.hover { width: 56px; height: 56px; background: rgba(11,122,110,.12); }
.cursor.hidden { opacity: 0; }
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 10001;
  width: 4px; height: 4px;
  background: var(--teal);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
}

/* ── Preloader ── */
.preloader {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--bg-warm);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px;
  padding-inline: 24px;
  transition: opacity .9s var(--ease), visibility .9s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-logo {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  text-align: center;
  padding-left: .2em; /* compensa la spaziatura finale per un centraggio perfetto */
  line-height: 1.15;
  max-width: 100%;
}
.preloader-sub {
  font-size: .62rem;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding-left: .45em;
}
.preloader-bar {
  width: 180px; height: 2px;
  background: var(--bg-3);
  position: relative; overflow: hidden;
  border-radius: 1px;
}
.preloader-bar::after {
  content: '';
  position: absolute; inset-block: 0; left: -100%;
  width: 100%; background: var(--teal);
  animation: barSlide 1.6s var(--ease) forwards .2s;
  border-radius: 1px;
}
@keyframes barSlide { to { left: 0; } }

/* ── Back to Top ── */
.btt {
  position: fixed; bottom: 32px; right: 32px; z-index: 500;
  width: 48px; height: 48px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              background var(--dur-fast), color var(--dur-fast);
  pointer-events: none;
}
.btt svg { width: 18px; height: 18px; }
.btt.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.btt:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ── Layout ── */
.container { max-width: var(--max); margin-inline: auto; padding-inline: 60px; }
.section { padding-block: var(--section-pad); }
.section--white  { background: var(--white); }
.section--ivory  { background: var(--bg); }
.section--warm   { background: var(--bg-warm); }
.section--sand   { background: var(--bg-2); }
.section--teal   { background: var(--teal); }
.section--dark   { background: var(--dark); }
/* Alias compatibilità generatore HTML */
.section--light  { background: var(--bg-warm); }
.section--alt    { background: var(--bg-2); }

.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: .65rem; font-weight: 600;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.section-label::before {
  content: ''; display: block;
  width: 28px; height: 1.5px; background: var(--teal);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 400; line-height: 1.1;
  color: var(--text); margin-bottom: var(--sp-md);
}
.section-title em { color: var(--teal); font-style: italic; }

/* Titoli su sfondo scuro / teal */
.on-dark .section-title,
.section--dark .section-title,
.section--teal .section-title { color: var(--white); }
.on-dark .section-title em,
.section--dark .section-title em,
.section--teal .section-title em { color: var(--gold-light); }
.on-dark .section-label,
.section--dark .section-label,
.section--teal .section-label { color: var(--gold-light); }
.on-dark .section-label::before,
.section--dark .section-label::before,
.section--teal .section-label::before { background: var(--gold-light); }
/* stat e testi generici su section--dark */
.section--dark .stat-num { color: var(--gold-light); }
.section--dark .stat-lbl { color: rgba(255,255,255,.55); }
.section--dark .contact-lbl { color: var(--gold-light); }
.section--dark .contact-val { color: rgba(255,255,255,.80); }
.section--dark .contact-item { border-color: rgba(255,255,255,.12); }
.section--dark .contact-icon { color: var(--gold-light); }
.section--dark .form-group label { color: var(--gold-light); }
.section--dark .form-group input,
.section--dark .form-group select,
.section--dark .form-group textarea {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  color: var(--white);
}
.section--dark .form-group input::placeholder,
.section--dark .form-group textarea::placeholder { color: rgba(255,255,255,.35); }
.section--dark .form-group input:focus,
.section--dark .form-group select:focus,
.section--dark .form-group textarea:focus {
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(18,168,150,.15);
}

.section-text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300; line-height: 1.9;
  color: var(--text-2);
  max-width: var(--max-text);
}
.section--teal .section-text { color: rgba(255,255,255,.82); }
.section--dark .section-text { color: rgba(255,255,255,.70); }

.gold-rule {
  display: flex; align-items: center; gap: 16px;
  margin-block: var(--sp-lg);
}
.gold-rule::before, .gold-rule::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--line-strong));
}
.gold-rule::after { background: linear-gradient(to left, transparent, var(--line-strong)); }
.gold-rule span { color: var(--gold); font-size: 1rem; }

/* Reveal */
.reveal   { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.up { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-l.up { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-r.up { opacity: 1; transform: none; }

.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 16px 36px;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  position: relative; overflow: hidden;
  transition: color var(--dur) var(--ease);
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.btn span, .btn svg { position: relative; z-index: 1; }
.btn:hover { color: var(--white); }
.btn:hover::before { transform: scaleX(1); }
.btn svg { width: 16px; height: 16px; transition: transform var(--dur-fast); }
.btn:hover svg { transform: translateX(4px); }

.btn--solid {
  background: var(--teal); color: var(--white);
  border-color: var(--teal);
}
.btn--solid::before { background: var(--teal-dark); }
.btn--solid:hover { color: var(--white); }

.btn--gold {
  border-color: var(--gold); color: var(--gold);
}
.btn--gold::before { background: var(--gold); }
.btn--gold:hover { color: var(--white); }

.btn--white {
  border-color: rgba(255,255,255,.7); color: var(--white);
}
.btn--white::before { background: var(--white); }
.btn--white:hover { color: var(--teal); }

/* ── NAVBAR ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding-inline: 60px;
  transition: background var(--dur) var(--ease),
              height var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.topbar.scrolled {
  background: rgba(253,250,244,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 64px;
  box-shadow: 0 1px 0 var(--line);
}
.nav-wrap {
  max-width: var(--max); width: 100%; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
/* Logo a badge tondo verde — in alto a sinistra */
.nav-logo-img {
  height: 80px; width: auto; display: block;
  border-radius: 50%;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.35));
  transition: height var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.topbar.scrolled .nav-logo-img {
  height: 54px;
  filter: drop-shadow(0 1px 5px rgba(4,72,64,.18));
}
/* Fallback per il vecchio logo testuale (se presente) */
.nav-logo-main {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); line-height: 1;
}
.nav-logo-sub {
  font-size: .57rem; font-weight: 400;
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--muted); line-height: 1;
}
.topbar:not(.scrolled) .nav-logo-main { color: var(--white); }
.topbar:not(.scrolled) .nav-logo-sub  { color: rgba(255,255,255,.7); }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: .68rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-2);
  position: relative;
  transition: color var(--dur-fast);
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--teal);
  transition: width var(--dur) var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
/* Su hero */
.topbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,.85); }
.topbar:not(.scrolled) .nav-links a:hover { color: var(--white); }
.topbar:not(.scrolled) .nav-links a::after { background: var(--white); }

.nav-cta {
  font-size: .64rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 10px 22px;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  transition: background var(--dur-fast), color var(--dur-fast);
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--teal); color: var(--white); }
.topbar:not(.scrolled) .nav-cta {
  border-color: rgba(255,255,255,.8); color: var(--white);
}
.topbar:not(.scrolled) .nav-cta:hover {
  background: var(--white); color: var(--teal);
}

.lang-switch { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.lang-switch a {
  font-size: .62rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  padding: 4px 7px; border-radius: 3px;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.lang-switch a.active, .lang-switch a:hover {
  color: var(--teal);
  background: var(--teal-pale);
}
.topbar:not(.scrolled) .lang-switch a { color: rgba(255,255,255,.65); }
.topbar:not(.scrolled) .lang-switch a.active,
.topbar:not(.scrolled) .lang-switch a:hover {
  color: var(--white); background: rgba(255,255,255,.15);
}
.lang-sep { color: var(--line-strong); font-size: .55rem; }
.topbar:not(.scrolled) .lang-sep { color: rgba(255,255,255,.3); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 6px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: var(--teal);
  transition: transform var(--dur-fast), opacity var(--dur-fast), width var(--dur-fast);
}
.topbar:not(.scrolled) .nav-toggle span { background: var(--white); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile menu */
.mobile-nav {
  position: fixed; inset: 0; z-index: 790;
  background: var(--bg-warm);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 400; color: var(--text);
  transition: color var(--dur-fast);
}
.mobile-nav a:hover { color: var(--teal); }
.mobile-nav .lang-switch { margin-top: 16px; }
.mobile-nav .lang-switch a { font-size: .7rem; padding: 6px 10px; color: var(--muted); }
.mobile-nav .nav-cta { margin-top: 8px; font-size: .68rem; padding: 12px 28px; }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  height: 100svh;
  min-height: 600px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero--short {
  height: 62vh;
  height: calc(var(--vh, 1vh) * 62);
  height: 62svh;
  min-height: 400px;
  align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom { to { transform: scale(1.12); } }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(4,72,64,.25) 0%,
    rgba(4,72,64,.45) 40%,
    rgba(4,72,64,.80) 100%
  );
}
.hero--short .hero-bg::after {
  background: linear-gradient(to bottom, rgba(4,72,64,.30) 0%, rgba(4,72,64,.65) 100%);
}

/* Hero video background */
.hero-video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.hero.has-video .hero-bg {
  animation: none; transform: none;
  opacity: 1;                    /* visibile come fallback */
  transition: opacity 1.2s ease;
}
/* Quando il video sta girando, JS aggiunge .video-ready al hero → nascondi foto */
.hero.has-video.video-ready .hero-bg { opacity: 0; }
.hero.has-video .hero-bg::after { display: none; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    160deg,
    rgba(4,40,28,.08) 0%,
    rgba(4,40,28,.25) 40%,
    rgba(4,40,28,.60) 100%
  );
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero.has-video .hero-bg { opacity: 1 !important; animation: none; }
  .hero.has-video .hero-bg::after { display: block; }
  .hero-overlay { display: none; }
}

.hero-content {
  position: relative; z-index: 3;
  padding: 0 60px 96px;
  max-width: 860px;
}
.hero--short .hero-content {
  padding-bottom: 0;
  text-align: center;
  max-width: 100%; width: 100%;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: .65rem; font-weight: 600;
  letter-spacing: .45em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; width: 36px; height: 1.5px; background: var(--gold-light); }
.hero--short .hero-eyebrow { justify-content: center; }
.hero--short .hero-eyebrow::before { display: none; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 7.5rem);
  font-weight: 400; line-height: 1.03;
  color: var(--white); margin-bottom: 28px;
}
.hero-title em { color: var(--gold-light); font-style: italic; }
.hero--short .hero-title { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300; line-height: 1.8;
  color: rgba(255,255,255,.82);
  max-width: 540px; margin-bottom: 48px;
}
.hero--short .hero-sub { max-width: 600px; margin-inline: auto; color: rgba(255,255,255,.80); }
.hero-scroll {
  position: absolute; bottom: 40px; right: 60px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll-text {
  font-size: .58rem; letter-spacing: .35em; text-transform: uppercase;
  color: rgba(255,255,255,.6); writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: .3; transform: scaleY(.5); }
}

/* ── ABOUT / INTRO ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl); align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-main { width: 100%; height: 560px; object-fit: cover; }
.about-img-accent {
  position: absolute;
  width: 56%; height: 260px; object-fit: cover;
  bottom: -32px; right: -32px;
  border: 5px solid var(--bg);
  box-shadow: var(--shadow-md);
}
.about-badge {
  position: absolute; top: 32px; left: -24px;
  background: var(--teal);
  padding: 20px 24px; text-align: center; min-width: 96px;
}
.about-badge-num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 600; color: var(--white); line-height: 1;
}
.about-badge-lbl {
  font-size: .55rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.8); margin-top: 4px;
}
.stats-bar {
  display: flex; gap: var(--sp-lg);
  margin-top: var(--sp-xl); padding-top: var(--sp-lg);
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 400; color: var(--teal); line-height: 1;
}
.stat-lbl {
  font-size: .6rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-top: 6px;
}

/* ── SERVICES GRID ── */
.services-intro { text-align: center; max-width: 680px; margin-inline: auto; margin-bottom: var(--sp-xl); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--bg-2);
}
.service-card {
  position: relative; overflow: hidden;
  height: 420px; cursor: pointer;
  background: var(--white);
}
.service-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.65) saturate(.85);
  transition: filter .8s var(--ease), transform .8s var(--ease);
}
.service-card:hover img { filter: brightness(.45); transform: scale(1.06); }
.service-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4,72,64,.9) 0%, rgba(4,72,64,.1) 55%);
}
.service-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 28px;
  transform: translateY(6px);
  transition: transform var(--dur) var(--ease);
}
.service-card:hover .service-body { transform: none; }
.service-icon {
  width: 46px; height: 46px;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); margin-bottom: 14px;
}
.service-icon svg { width: 20px; height: 20px; }
.service-title {
  font-family: var(--font-display);
  font-size: 1.35rem; color: var(--white); margin-bottom: 10px;
}
.service-desc {
  font-family: var(--font-serif);
  font-size: .92rem; color: rgba(255,255,255,.85); line-height: 1.7;
  opacity: 0; transition: opacity var(--dur) var(--ease) .05s;
}
.service-card:hover .service-desc { opacity: 1; }
.service-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-size: .6rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0; transition: opacity var(--dur) var(--ease) .1s;
}
.service-link svg { width: 14px; height: 14px; transition: transform var(--dur-fast); }
.service-link:hover svg { transform: translateX(4px); }
.service-card:hover .service-link { opacity: 1; }

/* ── EXPERIENCES ── */
.exp-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-2xl); align-items: center;
}
.exp-img { width: 100%; height: 580px; object-fit: cover; }
.exp-list { display: flex; flex-direction: column; }
.exp-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: padding-left var(--dur) var(--ease);
  cursor: pointer;
}
.exp-item:first-child { border-top: 1px solid var(--line); }
.exp-item:hover { padding-left: 10px; }
.exp-num {
  font-family: var(--font-display);
  font-size: .95rem; color: var(--teal-light);
  flex-shrink: 0; padding-top: 4px; min-width: 28px;
}
.exp-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--text); margin-bottom: 6px; }
.exp-text { font-family: var(--font-serif); font-size: .95rem; color: var(--muted); line-height: 1.7; }

/* ── GALLERY ── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 280px 280px; gap: 4px;
}
.gallery-item { overflow: hidden; position: relative; cursor: pointer; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.78);
  transition: transform .8s var(--ease), filter var(--dur) var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); filter: brightness(.55); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-caption {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: 24px;
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption span {
  font-family: var(--font-serif); font-size: 1rem;
  color: var(--white); letter-spacing: .1em;
  background: rgba(4,72,64,.5); padding: 4px 12px;
}

/* ── TESTIMONIALS ── */
.testimonials-wrap { text-align: center; max-width: 820px; margin-inline: auto; }
.quote-icon {
  font-family: var(--font-display); font-size: 6rem; line-height: .5;
  color: var(--teal); opacity: .2; margin-bottom: 24px;
}
.testimonial { display: none; }
.testimonial.active { display: block; }
.testimonial-stars { color: var(--gold); letter-spacing: 4px; font-size: 1rem; margin-bottom: 20px; }
.testimonial-text {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-style: italic; font-weight: 300; line-height: 1.8;
  color: var(--text); margin-bottom: 28px;
}
.testimonial-author { font-size: .65rem; letter-spacing: .28em; text-transform: uppercase; color: var(--teal); }
.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.t-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted-2); cursor: pointer;
  transition: width var(--dur-fast), background var(--dur-fast), border-radius var(--dur-fast);
}
.t-dot.active { width: 24px; background: var(--teal); border-radius: 3px; }

/* ── BOOKING FORM ── */
.booking-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl); align-items: center;
}
.booking-img-wrap { position: relative; }
.booking-img-wrap img { width: 100%; height: 540px; object-fit: cover; }
.booking-img-wrap::after {
  content: ''; position: absolute; inset: 14px;
  border: 1.5px solid rgba(11,122,110,.25); pointer-events: none;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: .6rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--teal);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  color: var(--text);
  padding: 13px 16px;
  font-family: var(--font-serif); font-size: 1rem;
  outline: none; border-radius: 0; -webkit-appearance: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-2); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11,122,110,.08);
}
.form-group select option { background: var(--white); color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
.form-stack { display: flex; flex-direction: column; gap: var(--sp-sm); }
.btn-submit {
  width: 100%; background: var(--teal); color: var(--white);
  font-family: var(--font-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 18px;
  transition: background var(--dur-fast);
}
.btn-submit:hover { background: var(--teal-dark); }

/* ── CONTACTS ── */
.contacts-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: var(--sp-2xl); align-items: start;
}
.contact-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.contact-item:first-child { border-top: 1px solid var(--line); }
.contact-icon { color: var(--teal); flex-shrink: 0; margin-top: 3px; }
.contact-icon svg { width: 20px; height: 20px; }
.contact-lbl {
  font-size: .58rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 5px;
}
.contact-val { font-family: var(--font-serif); font-size: 1.05rem; color: var(--text); line-height: 1.6; }
.map-wrap { height: 420px; position: relative; overflow: hidden; }
.map-wrap iframe { width: 100%; height: 100%; border: none;
  filter: grayscale(.3) saturate(1.2) brightness(1.05); }
.map-frame-glow {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 60px var(--bg);
}

/* ── FOOTER ── */
.footer {
  background: var(--teal-deep);
  padding-top: 72px; padding-bottom: 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-xl); margin-bottom: var(--sp-xl);
}
.footer-brand-logo {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 4px;
}
.footer-brand-sub {
  font-size: .57rem; font-weight: 400;
  letter-spacing: .38em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 18px;
}
.footer-desc {
  font-family: var(--font-serif);
  font-size: .98rem; color: rgba(255,255,255,.65); line-height: 1.8;
  margin-bottom: 24px; max-width: 300px;
}
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.social-link:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.social-link svg { width: 15px; height: 15px; }
.footer-col-title { font-family: var(--font-display); font-size: 1rem; color: var(--white); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-family: var(--font-serif); font-size: 1rem; color: rgba(255,255,255,.6);
  transition: color var(--dur-fast), padding-left var(--dur-fast);
}
.footer-links a:hover { color: var(--white); padding-left: 6px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1);
}
.footer-copy { font-size: .6rem; letter-spacing: .1em; color: rgba(255,255,255,.3); }
.footer-copy a { color: var(--gold-light); }
.footer .lang-switch a { color: rgba(255,255,255,.4); }
.footer .lang-switch a:hover,
.footer .lang-switch a.active { color: var(--white); background: rgba(255,255,255,.1); }
.footer .lang-sep { color: rgba(255,255,255,.15); }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  background: var(--white);
  border-top: 2px solid var(--teal);
  box-shadow: 0 -4px 24px rgba(26,46,42,.12);
  padding: 20px 60px;
  display: flex; align-items: center; gap: 24px; justify-content: space-between;
  transform: translateY(100%);
  transition: transform var(--dur) var(--ease);
}
.cookie-banner.show { transform: none; }
.cookie-text { font-family: var(--font-serif); font-size: .95rem; color: var(--text-2); line-height: 1.6; }
.cookie-text a { color: var(--teal); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--font-body); font-size: .62rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 11px 22px;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.cookie-btn.accept { background: var(--teal); color: var(--white); border: 1.5px solid var(--teal); }
.cookie-btn.accept:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.cookie-btn.decline { background: transparent; color: var(--muted); border: 1.5px solid var(--line-strong); }
.cookie-btn.decline:hover { border-color: var(--teal); color: var(--teal); }

/* ── CTA SECTION ── */
.cta-section {
  position: relative; overflow: hidden;
  padding-block: var(--section-pad); text-align: center;
}
.cta-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.38) saturate(.9);
}
.cta-section.has-video .cta-bg { filter: none; }
.cta-content { position: relative; z-index: 3; max-width: 680px; margin-inline: auto; }
.cta-content .section-title { color: var(--white); }
.cta-content .section-title em { color: var(--gold-light); }
.cta-content .section-text { color: rgba(255,255,255,.78); margin-inline: auto; margin-bottom: var(--sp-lg); }

/* ── PAGE LEVEL ── */
.servizi-detail {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-2xl); align-items: center;
  margin-bottom: var(--sp-2xl);
}
.servizi-detail.reverse { direction: rtl; }
.servizi-detail.reverse > * { direction: ltr; }
.servizi-detail-img { width: 100%; height: 460px; object-fit: cover; }
.servizi-detail-icon {
  width: 56px; height: 56px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); margin-bottom: 18px;
}
.servizi-detail-icon svg { width: 24px; height: 24px; }

.esperienze-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.esp-card {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
  border: 1px solid var(--line);
}
.esp-card:hover { box-shadow: var(--shadow-lg); }
.esp-card img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.esp-card-body {
  background: var(--white); padding: 36px 28px;
  display: flex; flex-direction: column; justify-content: center;
}
.esp-card-num { font-family: var(--font-display); font-size: .85rem; color: var(--teal-light); margin-bottom: 10px; }
.esp-card-title { font-family: var(--font-display); font-size: 1.35rem; color: var(--text); margin-bottom: 10px; }
.esp-card-text { font-family: var(--font-serif); font-size: .93rem; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  :root { --section-pad: 80px; }
  .container { padding-inline: 40px; }
  .about-grid, .exp-grid, .booking-grid,
  .contacts-grid, .servizi-detail { grid-template-columns: 1fr; }
  .about-img-accent { right: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
  .topbar { padding-inline: 40px; }
  .hero-content { padding-inline: 40px; }
  .cookie-banner { padding-inline: 40px; }
}
@media (max-width: 768px) {
  :root { --section-pad: var(--section-pad-m); --nav-h: 64px; }
  .container { padding-inline: 20px; }
  /* Navbar mobile: sempre leggibile con gradiente scuro in cima */
  .topbar {
    padding-inline: 20px;
    background: linear-gradient(to bottom, rgba(4,28,20,.55) 0%, transparent 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .topbar.scrolled {
    background: rgba(253,250,244,.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }
  /* Logo sempre bianco su hero, scuro quando scrolled */
  .topbar:not(.scrolled) .nav-logo-main { color: var(--white) !important; }
  .topbar:not(.scrolled) .nav-logo-sub  { color: rgba(255,255,255,.8) !important; }
  .hero-content { padding: 0 20px 72px; }
  .hero--short .hero-content { padding: 0 20px; }
  .nav-links, .lang-switch, .nav-cta { display: none; }
  /* Hamburger sempre visibile: sfondo semitrasparente */
  .nav-toggle {
    display: flex;
    background: rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 10px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.25);
  }
  .topbar.scrolled .nav-toggle {
    background: rgba(4,72,64,.08);
    border-color: rgba(4,72,64,.15);
  }
  .nav-toggle span { background: var(--white) !important; width: 22px; height: 2px; }
  .topbar.scrolled .nav-toggle span { background: var(--teal-deep) !important; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-item.wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding-top: 48px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .stats-bar { gap: var(--sp-md); }
  .cookie-banner { flex-direction: column; padding: 20px; text-align: center; }
  .cookie-btns { flex-direction: row; width: 100%; }
  .cookie-btn { flex: 1; }
  .form-row { grid-template-columns: 1fr; }
  .btt { bottom: 20px; right: 20px; }
  .hero-scroll { display: none; }
  .esperienze-grid { grid-template-columns: 1fr; }
  .esp-card { grid-template-columns: 1fr; }
  .esp-card img { min-height: 220px; }
  .servizi-detail.reverse { direction: ltr; }
  .photo-slide { width: clamp(260px, 80vw, 520px) !important; height: clamp(200px, 55vw, 380px) !important; }
  .video-showcase-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .photo-slide { width: 88vw !important; height: 58vw !important; }
  .video-showcase-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   MOBILE POLISH · rifiniture responsive
   ============================================================ */
@media (max-width: 768px) {
  /* Logo badge proporzionato alla navbar mobile */
  .nav-logo-img { height: 58px; }
  .topbar.scrolled .nav-logo-img { height: 48px; }

  /* Titolo hero: evita che il testo tocchi i bordi */
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.6rem); margin-bottom: 22px; }
  .hero-sub   { font-size: 1.02rem; margin-bottom: 34px; }
  .hero-content { max-width: 100%; }
  .hero--short .hero-title { font-size: clamp(2rem, 9vw, 3rem); }

  /* Titoli e testi di sezione più compatti */
  .section-title { font-size: clamp(1.9rem, 8.5vw, 2.8rem); }
  .services-intro { margin-bottom: var(--sp-lg); }

  /* Immagine About: niente sovrapposizioni che sforano lo schermo */
  .about-grid, .exp-grid, .booking-grid { gap: var(--sp-lg); }
  .about-img-main { height: 340px; }
  .about-img-accent { width: 46%; height: 150px; right: 0; bottom: -18px; border-width: 4px; }
  .about-badge { top: 16px; left: 0; padding: 14px 16px; min-width: 76px; }
  .about-badge-num { font-size: 1.5rem; }
  .booking-img-wrap img, .exp-img { height: 320px; }

  /* Statistiche: vanno a capo con eleganza su schermi stretti */
  .stats-bar { flex-wrap: wrap; gap: var(--sp-md) var(--sp-lg); }
  .stats-bar > div { flex: 1 1 40%; }

  /* Card servizi: testo sempre visibile su touch (niente hover) */
  .service-card { height: 300px; }
  .service-desc { opacity: 1; }
  .service-link { opacity: 1; }
  .service-body { transform: none; padding: 24px 22px; }

  /* Bottoni full-width per il pollice */
  .hero-content .btn, .cta-content .btn { width: 100%; justify-content: center; }

  /* Testimonianze: virgolette più piccole */
  .quote-icon { font-size: 4rem; }

  /* Slider foto: frecce un filo più piccole */
  .photo-slider-btn { width: 44px; height: 44px; }
  .photo-slider-btn--prev { left: 8px; }
  .photo-slider-btn--next { right: 8px; }

  /* Footer allineato a sinistra e più arioso */
  .footer-grid { gap: var(--sp-lg); }

  /* Ripristina il selettore lingua dentro il menu mobile
     (la regola globale .lang-switch{display:none} lo nascondeva) */
  .mobile-nav .lang-switch { display: flex; }
  .mobile-nav .nav-cta { display: inline-flex; }
}

@media (max-width: 400px) {
  .container { padding-inline: 16px; }
  .topbar { padding-inline: 16px; }
  .hero-content { padding: 0 16px 60px; }
  .nav-logo-img { height: 52px; }
  .hero-title { font-size: clamp(2.1rem, 12vw, 2.9rem); }
  .stats-bar > div { flex: 1 1 100%; }
  .cookie-btns { flex-direction: column; }
}

/* ── PHOTO MOSAIC ── */
/* ── PHOTO SLIDER ── */
.photo-slider-wrap {
  position: relative;
  width: 100%;
}
.photo-slider-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.photo-slider-track {
  display: flex;
  gap: 12px;
  transition: transform .35s ease-out;
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.photo-slider-track.dragging { cursor: grabbing; transition: none; }
.photo-slide {
  flex: 0 0 auto;
  width: clamp(300px, 58vw, 820px);
  height: clamp(260px, 48vw, 600px);
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}
.photo-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s var(--ease);
  pointer-events: none;
}
.photo-slide:hover img { transform: scale(1.04); }

/* Frecce navigazione */
.photo-slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,.95);
  border: none; border-radius: 50%;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 6px 22px rgba(0,0,0,.25);
  transition: background var(--dur-fast), transform var(--dur-fast);
  color: var(--teal-deep);
}
.photo-slider-btn:hover { background: var(--teal); color: var(--white); transform: translateY(-50%) scale(1.08); }
.photo-slider-btn--prev { left: 16px; }
.photo-slider-btn--next { right: 16px; }
.photo-slider-btn svg { width: 24px; height: 24px; }

/* Dots */
.photo-slider-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 24px;
}
.photo-slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg-3);
  border: none; cursor: pointer; padding: 0;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.photo-slider-dot.active {
  background: var(--teal);
  transform: scale(1.35);
}

/* ── VIDEO SHOWCASE ── */
.video-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--dark);
}
.video-card img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .7s var(--ease), filter .4s;
  filter: brightness(.75);
  display: block;
}
.video-card:hover img { transform: scale(1.05); filter: brightness(.45); }
.video-card-overlay,
.video-play-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  padding: 16px;
}
.video-play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.video-play-btn svg { width: 22px; height: 22px; margin-left: 3px; }
.video-card:hover .video-play-btn {
  background: var(--teal);
  border-color: var(--teal);
  transform: scale(1.1);
}
.video-card-title {
  font-family: var(--font-serif);
  font-size: 1rem; color: var(--white);
  text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.video-card-dur {
  font-size: .58rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
  background: rgba(0,0,0,.3); padding: 2px 8px;
}

/* ── VIDEO MODAL ── */
.video-modal {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(4,40,36,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.video-modal.open { opacity: 1; visibility: visible; }
.video-modal-inner {
  position: relative;
  width: min(92vw, 1200px);
  max-height: 90vh;
}
.video-modal video {
  width: 100%; max-height: 80vh;
  display: block; background: #000;
}
.video-modal-close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,255,255,.4);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem; line-height: 1;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.video-modal-close:hover { background: var(--teal); border-color: var(--teal); }
