/* ============================================================================
   Font self-hosted (GDPR): nessuna richiesta a Google. File variabili in /assets/fonts/.
   ============================================================================ */
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400 800;font-display:swap;src:url('/assets/fonts/playfair-display.woff2') format('woff2')}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400 500;font-display:swap;src:url('/assets/fonts/playfair-display-italic.woff2') format('woff2')}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:300 800;font-display:swap;src:url('/assets/fonts/montserrat.woff2') format('woff2')}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/fonts/open-sans.woff2') format('woff2')}

/* ============================================================================
   B&B Peonia Sun Light — site.css
   Design system 2026 "Fedele + rifinito": palette calda terra/sabbia/oliva,
   tipografia elegante (Playfair Display + Montserrat + Open Sans), micro-interazioni,
   glass leggero, reveal on scroll. Vanilla, mobile-first, prefers-reduced-motion.
   Variabili colore iniettate da layout.php (:root).
   ============================================================================ */

/* ── Reset base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* L'attributo hidden deve sempre nascondere (anche con display impostato altrove) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.15; color: var(--brand); font-weight: 700; }
strong { color: inherit; font-weight: 700; }

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 22px; }
.container-narrow { max-width: 860px; }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--sand-light), var(--bg)); }
.section-sand { background: var(--sand-light); }
.section-dark { background: var(--brand); color: #f3ede1; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.center { text-align: center; }
.kicker {
  display: inline-block; font-family: 'Montserrat', sans-serif; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; font-size: .72rem;
  color: var(--gold); margin-bottom: .9rem;
}
.section-dark .kicker { color: var(--sand); }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.2rem); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-head p { margin-top: 1rem; color: var(--text); opacity: .9; }
.eyebrow-line { width: 54px; height: 2px; background: var(--gold); border: 0; margin: 1.1rem auto 0; }
.lead { font-size: 1.12rem; }
.muted { opacity: .7; }

/* ── Bottoni ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .82rem;
  letter-spacing: .09em; text-transform: uppercase; cursor: pointer;
  padding: .95rem 1.9rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  text-align: center; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(72,63,51,.28); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 14px 30px rgba(72,63,51,.36); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 10px 24px rgba(182,148,87,.32); }
.btn-gold:hover { background: #a5824a; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: var(--brand); }
.btn-lg { padding: 1.1rem 2.4rem; font-size: .88rem; }
.btn-block { display: flex; width: 100%; }
.btn .arw { transition: transform .25s ease; }
.btn:hover .arw { transform: translateX(4px); }

/* ── Icone (inline SVG stroke) ────────────────────────────────────────────── */
.ic-svg { width: 34px; height: 34px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: .55rem 0;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30,26,20,.55), rgba(30,26,20,0));
  opacity: 1; transition: opacity .35s ease;
}
.site-header.scrolled { background: rgba(247,244,236,.92); backdrop-filter: blur(12px); box-shadow: 0 6px 26px rgba(60,52,40,.12); padding: .35rem 0; }
.site-header.scrolled::before { opacity: 0; }
.header-inner { display: flex; align-items: center; gap: 1.4rem; }
.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand img { height: 60px; width: auto; transition: height .35s ease; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.site-header.scrolled .brand img { height: 48px; filter: none; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: .3rem; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: .84rem;
  letter-spacing: .04em; color: #fff; padding: .6rem .95rem; display: inline-flex; align-items: center; gap: .35rem;
  border-radius: 8px; text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.main-nav a:hover { color: var(--sand); }
.site-header.scrolled .main-nav a { color: var(--brand); text-shadow: none; }
.site-header.scrolled .main-nav a:hover { color: var(--gold); }
.has-children > a::after { content: "▾"; font-size: .7rem; opacity: .8; }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(60,52,40,.18);
  padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s; border: 1px solid rgba(0,0,0,.05);
}
.main-nav li.has-children:hover .submenu, .main-nav li.has-children:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(4px); }
.submenu a { color: var(--brand); text-shadow: none; display: block; padding: .55rem .8rem; border-radius: 8px; }
.submenu a:hover { background: var(--sand-light); color: var(--brand-dark); }

.header-cta { margin-left: .5rem; flex-shrink: 0; }

/* ── Switcher lingua ──────────────────────────────────────────────────────── */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-current {
  display: flex; align-items: center; gap: .3rem; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.5); color: #fff; padding: .5rem .8rem; border-radius: 999px;
  font-family: 'Montserrat', sans-serif; font-size: .76rem; font-weight: 600; cursor: pointer;
  backdrop-filter: blur(4px); letter-spacing: .04em;
}
.site-header.scrolled .lang-current { background: var(--sand-light); border-color: var(--sand); color: var(--brand); }
.lang-caret { font-size: .7rem; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 156px; background: #fff;
  border-radius: 12px; box-shadow: 0 18px 40px rgba(60,52,40,.18); padding: .4rem; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  border: 1px solid rgba(0,0,0,.05); z-index: 20;
}
.lang-switch:hover .lang-menu, .lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; gap: .5rem; align-items: center; color: var(--brand); padding: .5rem .7rem; border-radius: 8px; font-family: 'Montserrat', sans-serif; font-size: .86rem; }
.lang-menu a:hover { background: var(--sand-light); }
.lang-menu a.active { color: var(--gold); font-weight: 700; }
.lang-menu .lang-code { font-size: .7rem; opacity: .55; min-width: 20px; }
.lang-switch-mobile { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); }
.lang-mobile-label { width: 100%; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sand); font-family: 'Montserrat', sans-serif; margin-bottom: .3rem; }
.lang-switch-mobile a { color: #fff; background: rgba(255,255,255,.1); padding: .4rem .8rem; border-radius: 999px; font-size: .85rem; }
.lang-switch-mobile a.active { background: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.site-header.scrolled .nav-toggle span { background: var(--brand); box-shadow: none; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; padding: 8rem 0 3rem; }
.hero-media { position: absolute; inset: -6% 0 0 0; z-index: -2; }
.hero-media img { width: 100%; height: 108%; object-fit: cover; animation: kenburns 22s ease-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translateY(0); } to { transform: scale(1.12) translateY(-2%); } }
@media (prefers-reduced-motion: reduce) { .hero-media img { animation: none; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(35,30,22,.5) 0%, rgba(35,30,22,.28) 40%, rgba(35,30,22,.72) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-copy { max-width: 640px; }
.hero .kicker { color: var(--sand); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); text-shadow: 0 3px 24px rgba(0,0,0,.4); font-weight: 700; }
.hero h1 strong { color: #fff; }
.hero .hero-sub { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.8rem); margin-top: .6rem; color: var(--sand); }
.hero .hero-lead { margin-top: 1.3rem; font-size: 1.1rem; max-width: 540px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-page { min-height: 62vh; }
.hero-page .hero-inner { grid-template-columns: 1fr; text-align: center; }
.hero-page .hero-copy { max-width: 820px; margin: 0 auto; }

/* Mini widget prenotazione nella hero */
.book-widget { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-radius: 18px; padding: 1.5rem; box-shadow: 0 22px 50px rgba(30,26,20,.35); color: var(--text); }
.book-widget h3 { font-size: 1.25rem; margin-bottom: 1rem; text-align: center; }
.book-widget .bw-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.book-widget label { font-family: 'Montserrat', sans-serif; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--olive); display: block; margin-bottom: .3rem; }
.book-widget input, .book-widget select { width: 100%; padding: .7rem .8rem; border: 1.5px solid #dcd4c1; border-radius: 10px; font-family: inherit; font-size: .95rem; color: var(--text); background: #fff; }
.book-widget input:focus, .book-widget select:focus { outline: none; border-color: var(--gold); }
.book-widget .btn { margin-top: 1rem; }

/* ── Feature cards ────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.card {
  background: #fff; border-radius: 18px; padding: 2.2rem 1.8rem; text-align: center;
  box-shadow: 0 10px 30px rgba(60,52,40,.07); border: 1px solid rgba(72,63,51,.06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(60,52,40,.14); }
.card .card-ic { width: 68px; height: 68px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--sand-light); }
.card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.card p { font-size: .98rem; opacity: .9; }

/* ── Split (immagine + testo) ─────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 55px rgba(60,52,40,.18); }
.split-media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.split-media:hover img { transform: scale(1.06); }
.split-media::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 22px; pointer-events: none; }
.split-badge { position: absolute; bottom: 18px; left: 18px; background: rgba(72,63,51,.86); color: #fff; padding: .5rem 1.1rem; border-radius: 999px; font-family: 'Montserrat', sans-serif; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(4px); }
.split-body h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.split-body p { margin-top: 1rem; }
.split-body .btn { margin-top: 1.8rem; }
.feat-list { margin-top: 1.5rem; display: grid; gap: .7rem; }
.feat-list li { position: relative; padding-left: 1.9rem; font-size: 1rem; }
.feat-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* ── Camere (rooms) ───────────────────────────────────────────────────────── */
.rooms { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.room { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.room:nth-child(even) .room-media { order: 2; }
.room-media { border-radius: 22px; overflow: hidden; box-shadow: 0 22px 50px rgba(60,52,40,.16); position: relative; }
.room-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s ease; }
.room-media:hover img { transform: scale(1.05); }
.room-body h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.room-body .room-lead { margin-top: .9rem; }

/* ── Amenities ────────────────────────────────────────────────────────────── */
.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.amenity { background: #fff; border-radius: 18px; padding: 2rem 1.8rem; box-shadow: 0 10px 30px rgba(60,52,40,.07); border-top: 3px solid var(--gold); }
.amenity h3 { font-size: 1.3rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .7rem; }
.amenity ul { display: grid; gap: .55rem; }
.amenity li { position: relative; padding-left: 1.6rem; font-size: .97rem; }
.amenity li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); }

/* ── Gallery ──────────────────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.gallery-grid a, .gallery-grid figure { border-radius: 16px; overflow: hidden; position: relative; margin: 0; box-shadow: 0 10px 26px rgba(60,52,40,.1); }
.gallery-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .7s ease; }
.gallery-grid figure:hover img { transform: scale(1.08); }

/* ── Tariffe (rates table) ────────────────────────────────────────────────── */
.rates-wrap { overflow-x: auto; border-radius: 18px; box-shadow: 0 14px 40px rgba(60,52,40,.1); }
.rates-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 460px; }
.rates-table th, .rates-table td { padding: 1rem 1.3rem; text-align: left; border-bottom: 1px solid #ece5d5; }
.rates-table thead th { background: var(--brand); color: #fff; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.rates-table thead th:not(:first-child) { text-align: center; }
.rates-table td:not(:first-child) { text-align: center; font-weight: 700; color: var(--brand); font-family: 'Montserrat', sans-serif; }
.rates-table td:first-child { font-weight: 600; }
.rates-table tbody tr:hover { background: var(--sand-light); }
.rates-table tbody tr:last-child td { border-bottom: 0; }
.info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.info-box { background: #fff; border-radius: 16px; padding: 1.6rem 1.8rem; box-shadow: 0 10px 26px rgba(60,52,40,.07); }
.info-box h3 { font-size: 1.25rem; margin-bottom: .9rem; }
.info-box ul { display: grid; gap: .5rem; }
.info-box li { position: relative; padding-left: 1.6rem; }
.info-box li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }
.info-box .row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed #e2dac7; }
.info-box .row:last-child { border-bottom: 0; }
.info-box .row b { color: var(--brand); white-space: nowrap; }

/* ── Territorio tiles ─────────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.tile { position: relative; border-radius: 20px; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; color: #fff; box-shadow: 0 14px 36px rgba(60,52,40,.16); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); z-index: -2; }
.tile:hover img { transform: scale(1.08); }
/* Scrim leggibilità: gradiente multi-stop più deciso + leggero scurimento globale. */
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .4s ease;
  background:
    linear-gradient(180deg, rgba(18,14,10,0) 8%, rgba(18,14,10,.28) 42%, rgba(18,14,10,.72) 72%, rgba(18,14,10,.92) 100%),
    linear-gradient(0deg, rgba(18,14,10,.12), rgba(18,14,10,.12));
}
.tile:hover::after { opacity: .88; }
.tile-body { padding: 1.8rem; position: relative; z-index: 1; }
.tile-body h3 { color: #fff; font-size: 1.5rem; margin-bottom: .5rem; text-shadow: 0 2px 16px rgba(8,6,4,.6); }
.tile-body p { font-size: .95rem; opacity: 1; text-shadow: 0 1px 12px rgba(8,6,4,.75); }
.tile-sm { min-height: 260px; }
.tile-sm .tile-body h3 { font-size: 1.25rem; }
/* Tile cliccabile (es. la 6ª "Emozioni in Vela" → prenotazione) */
a.tile { text-decoration: none; }
a.tile::before {
  content: ""; position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--brand); display: grid; place-items: center; font-size: 1rem;
  content: "↗"; font-weight: 700; opacity: 0; transform: translateY(-4px); transition: .25s ease;
}
a.tile:hover::before { opacity: 1; transform: none; }

/* ── Emozioni in Vela — esperienza in evidenza (Sulcis Sail Charter) ──────── */
.vela-section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.vela-feature {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center; color: #fff; border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2b5561 0%, var(--sea) 52%, #59919f 100%);
  padding: clamp(1.8rem, 4vw, 3.4rem);
  box-shadow: 0 34px 74px rgba(43, 74, 84, .34);
}
.vela-feature::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(50% 80% at 0% 100%, rgba(0,0,0,.22), transparent 60%);
}
.vela-body, .vela-gallery { position: relative; z-index: 1; }
.vela-badge {
  display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.38); color: #fff; padding: .45rem 1rem; border-radius: 999px;
  font-family: 'Montserrat', sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; backdrop-filter: blur(4px); margin-bottom: 1rem;
}
.vela-badge-ic { width: 18px; height: 18px; stroke: #fff; }
.vela-feature h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); }
.vela-lead { font-size: 1.16rem; margin-top: .5rem; }
.vela-body p { margin-top: 1rem; opacity: .96; }
.vela-highlights { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.5rem 0 .4rem; }
.vela-highlights li {
  display: inline-flex; align-items: center; gap: .45rem; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3); padding: .45rem .9rem; border-radius: 999px;
  font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 500;
}
.vela-highlights li::before { content: "⚓"; font-size: .85em; opacity: .9; }
.vela-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.vela-note { margin-top: 1.4rem; font-size: .84rem; opacity: .85; }
.vela-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; grid-auto-rows: 1fr; }
.vela-gallery img {
  width: 100%; height: 100%; min-height: 140px; object-fit: cover; border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0,0,0,.28); transition: transform .6s ease;
}
.vela-gallery img:first-child { grid-row: span 2; }
.vela-gallery:hover img:first-child { transform: scale(1.03); }

/* ── Blog cards ───────────────────────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.8rem; }
.post-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(60,52,40,.08); display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(60,52,40,.15); }
.post-card .post-cover { aspect-ratio: 16/10; overflow: hidden; }
.post-card .post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.post-card:hover .post-cover img { transform: scale(1.06); }
.post-card .post-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-family: 'Montserrat', sans-serif; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: .6rem; }
.post-card h3 { font-size: 1.3rem; line-height: 1.25; }
.post-card p { margin-top: .7rem; font-size: .95rem; opacity: .9; flex: 1; }
.post-card .read-more { margin-top: 1rem; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .82rem; color: var(--brand); display: inline-flex; align-items: center; gap: .4rem; }
.post-card:hover .read-more { color: var(--gold); }

/* Articolo singolo */
.article { max-width: 820px; margin: 0 auto; }
.article-cover { border-radius: 20px; overflow: hidden; margin-bottom: 2.2rem; box-shadow: 0 20px 50px rgba(60,52,40,.16); }
.article-body { font-size: 1.08rem; }
.article-body h2 { font-size: 1.8rem; margin: 2.2rem 0 1rem; }
.article-body h3 { font-size: 1.4rem; margin: 1.8rem 0 .8rem; }
.article-body p { margin-bottom: 1.2rem; }
.article-body img { border-radius: 14px; margin: 1.6rem 0; }
.article-body ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.2rem; }
.article-body a { color: var(--sea); text-decoration: underline; }

/* ── CTA banner ───────────────────────────────────────────────────────────── */
.cta-banner { position: relative; text-align: center; color: #fff; padding: clamp(3.5rem, 7vw, 6rem) 0; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--brand); }
.cta-banner.with-img::before { background-size: cover; background-position: center; }
.cta-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(47,42,34,.9), rgba(47,42,34,.6)); }
.cta-banner h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); }
.cta-banner p { margin: 1rem auto 2rem; max-width: 620px; font-size: 1.1rem; opacity: .95; }

/* ── Booking form (pagina Prenota Ora) ────────────────────────────────────── */
.booking-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: start; }
.booking-side { position: sticky; top: 100px; }
.booking-side .note-box { background: #fff; border-radius: 16px; padding: 1.6rem 1.8rem; box-shadow: 0 12px 30px rgba(60,52,40,.09); border-left: 4px solid var(--peony); }
.booking-side .note-box h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.booking-side .rates-link { margin-top: 1.4rem; }
.booking-form { background: #fff; border-radius: 22px; padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: 0 20px 55px rgba(60,52,40,.12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: 'Montserrat', sans-serif; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--olive); }
.field label .req { color: var(--peony); }
.field input, .field select, .field textarea {
  padding: .8rem .9rem; border: 1.5px solid #dcd4c1; border-radius: 11px; font-family: inherit;
  font-size: 1rem; color: var(--text); background: #fdfcf9; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(182,148,87,.15); }
.field textarea { resize: vertical; min-height: 90px; }
.check { display: flex; gap: .6rem; align-items: flex-start; grid-column: 1 / -1; font-size: .9rem; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.check a { color: var(--sea); text-decoration: underline; }
.form-note { grid-column: 1 / -1; background: var(--sand-light); border-radius: 12px; padding: 1rem 1.2rem; font-size: .88rem; }
.form-note strong { color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-feedback, .form-feedback { grid-column: 1 / -1; margin: 0; font-size: .95rem; min-height: 1.2em; }
.lead-feedback.ok, .form-feedback.ok { color: #2e7d4f; font-weight: 600; }
.lead-feedback.err, .form-feedback.err { color: #b3402a; font-weight: 600; }

/* ── Contatti ─────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.contact-card { background: #fff; border-radius: 16px; padding: 1.4rem 1.6rem; box-shadow: 0 10px 26px rgba(60,52,40,.07); display: flex; gap: 1rem; align-items: flex-start; }
.contact-card .ci-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--sand-light); display: grid; place-items: center; flex-shrink: 0; }
.contact-card h4 { font-family: 'Montserrat', sans-serif; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--olive); margin-bottom: .3rem; }
.contact-card a, .contact-card p { font-size: 1.02rem; color: var(--brand); }
.contact-card a:hover { color: var(--gold); }
.map-embed { border-radius: 18px; overflow: hidden; box-shadow: 0 14px 36px rgba(60,52,40,.12); margin-top: 1.5rem; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }
.blockquote { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(1.3rem, 3vw, 2rem); color: var(--brand); text-align: center; max-width: 760px; margin: 0 auto; }
.blockquote cite { display: block; font-size: 1rem; font-style: normal; margin-top: .8rem; color: var(--gold); font-family: 'Montserrat', sans-serif; letter-spacing: .06em; text-transform: uppercase; }

/* ── Pagina grazie / legale ───────────────────────────────────────────────── */
.thankyou { text-align: center; max-width: 640px; margin: 0 auto; padding: 3rem 0; }
.thankyou .ty-ic { font-size: 4rem; margin-bottom: 1rem; }
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { font-size: 1.6rem; margin: 2rem 0 .8rem; }
.legal-content h3 { font-size: 1.25rem; margin: 1.4rem 0 .6rem; }
.legal-content p, .legal-content li { margin-bottom: .8rem; }
.legal-content ul { list-style: disc; padding-left: 1.4rem; }
.legal-content a { color: var(--sea); text-decoration: underline; }
.page-hero { padding: 9rem 0 3rem; background: linear-gradient(180deg, var(--brand), var(--brand-dark)); color: #fff; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero p { margin-top: 1rem; opacity: .9; max-width: 700px; margin-inline: auto; }

/* ── Testimonianze ────────────────────────────────────────────────────────── */
.testi-carousel { position: relative; }
.carousel-track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .2rem 1.5rem; -ms-overflow-style: none; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.testimonial-card { scroll-snap-align: start; flex: 0 0 min(420px, 85%); background: #fff; border-radius: 18px; padding: 2rem; box-shadow: 0 12px 30px rgba(60,52,40,.08); }
.testimonial-card .stars { color: var(--gold); letter-spacing: .15em; margin-bottom: .8rem; }
.testimonial-card .quote { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.08rem; }
.testimonial-card .author { margin-top: 1rem; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: .9rem; }
.testimonial-card .src { font-size: .78rem; color: var(--olive); }
.carousel-nav { display: flex; gap: .6rem; justify-content: center; margin-top: 1rem; }
.carousel-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--sand); background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--brand); transition: .2s; }
.carousel-nav button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { position: relative; color: #ece5d5; padding-top: clamp(3.5rem, 6vw, 5rem); margin-top: 0; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--brand-dark); }
.footer-hero-img { position: absolute; inset: 0; z-index: -3; opacity: .18; }
.footer-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand img { height: 66px; margin-bottom: 1rem; }
.footer-brand p { opacity: .8; font-size: .95rem; max-width: 300px; }
.footer-col h4 { color: #fff; font-family: 'Montserrat', sans-serif; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .5rem; }
.footer-col a, .footer-col p { color: #ded5c2; font-size: .93rem; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: .7rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: .2s; }
.footer-social a:hover { background: var(--gold); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.4rem 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; align-items: center; }
.footer-bottom p, .footer-credit p { font-size: .82rem; opacity: .75; margin: 0; }
.footer-credit a { color: var(--sand); }
.cin-badge { font-family: 'Montserrat', sans-serif; font-size: .78rem; opacity: .8; }

/* ── Cookie bar ───────────────────────────────────────────────────────────── */
[data-cookie-consent] { position: fixed; inset: auto 0 0 0; z-index: 300; pointer-events: none; }
.cookie-banner {
  pointer-events: auto; max-width: 540px; margin: 0 auto 1rem; margin-inline: auto;
  background: #fff; border-radius: 16px; box-shadow: 0 18px 46px rgba(30,26,20,.28);
  padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .85rem;
  border: 1px solid rgba(72,63,51,.08);
}
.cookie-banner p { font-size: .86rem; line-height: 1.5; margin: 0; }
.cookie-banner a { color: var(--sea); text-decoration: underline; }
.cookie-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.cookie-actions .btn { padding: .6rem 1.5rem; font-size: .76rem; }
.cookie-link { background: none; border: 0; color: var(--olive); font-family: 'Montserrat', sans-serif; font-size: .76rem; font-weight: 500; text-decoration: underline; cursor: pointer; padding: .4rem 0; margin-right: auto; }
.cookie-link:hover { color: var(--brand); }
@media (max-width: 560px) {
  .cookie-banner { margin: 0 .7rem .7rem; padding: 1rem 1.1rem; }
  .cookie-banner p { font-size: .82rem; }
  .cookie-actions .btn { flex: 1; padding: .6rem .8rem; }
  .cookie-link { width: 100%; text-align: center; margin: 0 0 .2rem; }
}
.cookie-modal-backdrop { position: fixed; inset: 0; z-index: 320; background: rgba(30,26,20,.5); display: grid; place-items: center; padding: 1rem; pointer-events: auto; }
.cookie-modal { background: #fff; border-radius: 18px; max-width: 560px; width: 100%; max-height: 85vh; overflow: auto; padding: 2rem; }
.cookie-modal h3 { margin-bottom: 1rem; }
.cookie-cat { border: 1px solid #ece5d5; border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: .8rem; }
.cookie-cat label { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-family: 'Montserrat', sans-serif; font-size: .9rem; }
.cookie-cat p { font-size: .85rem; opacity: .8; margin-top: .4rem; }
.cookie-reopen { position: fixed; left: 14px; bottom: 14px; z-index: 250; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; cursor: pointer; font-size: 1.2rem; box-shadow: 0 8px 20px rgba(0,0,0,.25); }

/* ── Chatbot widget ───────────────────────────────────────────────────────── */
[data-chatbot] { position: fixed; right: 18px; bottom: 18px; z-index: 260; }
[data-chat-launch] { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; cursor: pointer; box-shadow: 0 10px 28px rgba(60,52,40,.35); font-size: 1.6rem; transition: transform .2s; }
[data-chat-launch]:hover { transform: scale(1.06); }
[data-chat-panel] { position: absolute; right: 0; bottom: 74px; width: min(360px, 88vw); height: 480px; max-height: 72vh; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { background: var(--brand); color: #fff; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.chat-head b { font-family: 'Playfair Display', serif; }
.chat-head button { background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; }
[data-chat-msgs] { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg); }
.sb-msg { max-width: 82%; padding: .7rem .9rem; border-radius: 14px; font-size: .92rem; line-height: 1.5; }
.sb-msg.bot { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); align-self: flex-start; border-bottom-left-radius: 4px; }
.sb-msg.me { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.sb-msg.typing { opacity: .6; }
.chat-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid #ece5d5; background: #fff; }
.chat-form input { flex: 1; border: 1.5px solid #dcd4c1; border-radius: 999px; padding: .6rem 1rem; font-family: inherit; }
.chat-form input:focus { outline: none; border-color: var(--gold); }
.chat-form button { background: var(--brand); color: #fff; border: 0; border-radius: 50%; width: 42px; height: 42px; cursor: pointer; font-size: 1.1rem; }
.chat-ai-note { font-size: .68rem; text-align: center; padding: .4rem; color: #999; background: #fff; }

/* ── Torna su ─────────────────────────────────────────────────────────────── */
.to-top { position: fixed; right: 18px; bottom: 88px; z-index: 240; width: 46px; height: 46px; border-radius: 50%; background: rgba(72,63,51,.85); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .3s; font-size: 1.2rem; backdrop-filter: blur(4px); }
.to-top.show { opacity: 1; visibility: visible; }

/* ── Reveal on scroll ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.crumbs { font-family: 'Montserrat', sans-serif; font-size: .78rem; color: var(--olive); margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { opacity: .5; margin: 0 .4rem; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .book-widget { max-width: 480px; }
  .booking-wrap, .contact-grid { grid-template-columns: 1fr; }
  .booking-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-cta { display: none; }
  .lang-switch { display: none; }
  .main-nav { position: fixed; inset: 0; background: var(--brand); margin: 0; padding: 5.5rem 1.5rem 2rem; transform: translateX(100%); transition: transform .35s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .main-nav a { color: #fff; font-size: 1.1rem; padding: .9rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1); text-shadow: none; }
  .site-header.scrolled .main-nav a { color: #fff; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 1rem; }
  .submenu a { color: var(--sand); }
  .room, .room:nth-child(even) .room-media { grid-template-columns: 1fr; }
  .room:nth-child(even) .room-media, .split.reverse .split-media { order: 0; }
  .split { grid-template-columns: 1fr; }
  .info-cols, .form-grid, .book-widget .bw-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin-inline: auto; }
  .footer-social { justify-content: center; }
  .vela-feature { grid-template-columns: 1fr; }
  .vela-gallery img:first-child { grid-row: auto; }
  .vela-gallery img { min-height: 120px; }
}
