/* Hotel Capo Circeo — foglio di stile */
@font-face { font-family: "Italiana"; src: url("/assets/fonts/italiana-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --mare: #0c3b47;      /* Tirreno profondo: testi titoli, fondi scuri */
  --pino: #3d5a47;      /* verde pineta */
  --acqua: #12809a;     /* acqua di piscina: link e pulsanti */
  --acqua-chiara: #d7eef1;
  --calce: #fbfbf9;     /* bianco calce */
  --sabbia: #efe9dc;    /* sabbia chiara: pannelli */
  --inchiostro: #1d2b30;
  --grigio: #5b6b70;
  --display: "Italiana", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--calce); color: var(--inchiostro); font: 400 1.0625rem/1.65 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--acqua); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--mare); }
:focus-visible { outline: 2px solid var(--acqua); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--mare); line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--mare); color: #fff; padding: 8px 14px; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-text { max-width: calc(68ch + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.4em; border: 1px solid currentColor; border-radius: 999px; color: var(--mare); text-decoration: none; font: 500 .95rem/1 var(--text); letter-spacing: .02em; transition: background .2s, color .2s; }
.btn:hover { background: var(--mare); color: #fff; border-color: var(--mare); }
.btn-solid, .btn-book { background: var(--acqua); border-color: var(--acqua); color: #fff; }
.btn-solid:hover, .btn-book:hover { background: var(--mare); border-color: var(--mare); color: #fff; }
.more { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(6, 30, 36, .55), rgba(6, 30, 36, 0)); pointer-events: none; transition: opacity .3s; }
.site-header.is-solid { background: var(--calce); color: var(--mare); box-shadow: 0 1px 0 rgba(12, 59, 71, .12); }
.site-header.is-solid::before { opacity: 0; }
.bar { position: relative; display: flex; align-items: center; gap: 24px; max-width: 1440px; margin-inline: auto; padding: 14px var(--gutter); }
.brand { display: flex; align-items: baseline; gap: 8px; color: inherit; text-decoration: none; white-space: nowrap; }
.brand-name { font: 400 1.75rem/1 var(--display); }
.brand-stars { font-size: .6rem; letter-spacing: .15em; opacity: .85; }
.nav { margin-left: auto; }
.nav ul, .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.nav ul { display: flex; gap: clamp(12px, 1.4vw, 24px); }
.nav a { color: inherit; text-decoration: none; font-size: .95rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: currentColor; }
.actions { display: flex; align-items: center; gap: 16px; }
.lang, .tel { color: inherit; text-decoration: none; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.lang:hover, .tel:hover { color: inherit; text-decoration: underline; }
.site-header .btn-book { padding: .6em 1.2em; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.menu-toggle span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .2s; }
.menu-toggle span:nth-child(1) { top: 17px; } .menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-nav { background: var(--calce); color: var(--mare); padding: 8px var(--gutter) 28px; border-top: 1px solid rgba(12, 59, 71, .12); max-height: calc(100vh - 72px); overflow: auto; }
.mobile-nav a { display: block; color: inherit; text-decoration: none; font: 400 1.9rem/1.5 var(--display); }
.mobile-nav p a { font: 400 1rem/1.8 var(--text); color: var(--acqua); }
.mobile-nav p { margin-top: 18px; }

@media (max-width: 1180px) { .tel span { display: none; } }
@media (max-width: 1040px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .actions { margin-left: auto; gap: 10px; }
}
@media (max-width: 420px) { .lang { display: none; } .brand-stars { display: none; } }

/* ---------- home */
.home-hero { position: relative; height: min(82vh, 860px); min-height: 420px; overflow: hidden; background: var(--mare); }
.home-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.home-title { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 0; padding-bottom: clamp(48px, 8vw, 120px); }
.home-title h1 { font-size: clamp(4.2rem, 1rem + 13vw, 15rem); line-height: .82; margin: -.12em 0 0; letter-spacing: -.01em; color: var(--mare); position: relative; }
.h1-small { display: block; font-size: .16em; line-height: 1; letter-spacing: .02em; margin: 0 0 .35em .08em; padding-top: 2.2em; color: var(--pino); }
.home-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 980px; margin-top: clamp(8px, 2.6vw, 44px); }
.tagline { font: 400 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.15 var(--display); color: var(--pino); margin: 0; }
.home-intro p:last-child { max-width: 62ch; font-size: 1.15rem; }
@media (min-width: 900px) {
  .home-intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; margin-left: .5vw; }
}

.features { display: grid; gap: clamp(64px, 10vw, 140px); padding-bottom: clamp(64px, 10vw, 140px); }
.feature { display: grid; gap: 24px; max-width: 1440px; margin-inline: auto; width: 100%; }
.feature-media { display: block; overflow: hidden; }
.feature-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s ease; }
.feature-media:hover img { transform: scale(1.02); }
.feature-text { padding-inline: var(--gutter); max-width: 34rem; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 56px; }
  .feature-text { padding: 0 var(--gutter) 12px 0; }
  .feature--1, .feature--3 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .feature--1 .feature-media, .feature--3 .feature-media { order: 2; }
  .feature--1 .feature-text, .feature--3 .feature-text { padding: 0 0 12px var(--gutter); justify-self: end; }
}

.rooms-rail { background: var(--sabbia); padding: clamp(56px, 8vw, 110px) 0; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.rail { --pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); list-style: none; margin: 24px 0 0; padding: 0 var(--pad) 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 280px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); }
.rail li { scroll-snap-align: start; }
.rail a { display: block; color: var(--inchiostro); text-decoration: none; }
.rail img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; margin-bottom: 12px; }
.rn { display: block; font: 400 1.45rem/1.15 var(--display); color: var(--mare); }
.rs { display: block; color: var(--grigio); font-size: .92rem; }
.rail a:hover .rn { text-decoration: underline; text-decoration-thickness: 1px; }

.where { display: grid; gap: 32px; padding-block: clamp(56px, 8vw, 110px); align-items: center; }
.where h2 { max-width: 16ch; }
.where img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .where { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- inner pages */
.page-hero { position: relative; height: min(68vh, 720px); min-height: 380px; display: flex; align-items: flex-end; overflow: hidden; background: var(--mare); color: #fff; }
.page-hero--small { height: min(46vh, 480px); min-height: 300px; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(rgba(6, 30, 36, 0), rgba(6, 30, 36, .62)); }
.page-hero-text { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(28px, 5vw, 64px); }
.page-hero h1 { color: #fff; font-size: clamp(2.8rem, 1.6rem + 5vw, 6.5rem); line-height: .95; max-width: 18ch; margin: 0; }
.page-hero .lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); margin: .8em 0 0; max-width: 40ch; }
.crumbs ol { list-style: none; display: flex; gap: 8px; margin: 0 0 12px; padding: 0; font-size: .95rem; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .7; }
.crumbs a { color: #fff; }

.page-body { padding-block: clamp(48px, 7vw, 96px); display: grid; gap: clamp(56px, 8vw, 110px); }
.prose h2 { margin-top: 0; }
.prose p.sub, .split-text p.sub { font: italic 400 1.2rem/1.4 var(--text); color: var(--pino); margin: -.2em 0 1em; }
.prose p:first-of-type { font-size: 1.15rem; }
.lede { font-size: 1.2rem !important; }

.split { display: grid; gap: 28px; max-width: 1440px; margin-inline: auto; width: 100%; align-items: center; }
.split-media { margin: 0; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-text { padding-inline: var(--gutter); max-width: calc(60ch + 2 * var(--gutter)); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .split-text { padding: 0 var(--gutter) 0 0; }
  .split--flip .split-media { order: 2; }
  .split--flip .split-text { padding: 0 0 0 var(--gutter); justify-self: end; }
}

.cta-inline { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; padding-top: 16px; border-top: 1px solid rgba(12, 59, 71, .18); font-size: .98rem; }
.cta-inline span { color: var(--grigio); width: 100%; }
.page-cta { margin-top: -40px; }

.facts dl { display: grid; gap: 0; margin: 0; }
.facts dl > div { display: grid; grid-template-columns: minmax(130px, 1fr) 2fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(12, 59, 71, .15); }
.facts dt { color: var(--grigio); }
.facts dd { margin: 0; }

.services { display: grid; gap: 40px 56px; }
.services h3, .services h2 { font-size: 1.75rem; margin-bottom: .3em; }
@media (min-width: 760px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .services { grid-template-columns: 1fr 1fr 1fr; } }

.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.strip figure { margin: 0; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(4, 1fr); } }

/* ---------- rooms */
.room-list { list-style: none; margin: 0 auto; display: grid; gap: clamp(40px, 6vw, 72px); }
.room-row { display: grid; gap: 20px; align-items: center; }
.room-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room-info h2 { margin-bottom: .15em; }
.room-info h2 a { color: inherit; text-decoration: none; }
.room-info h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.room-info .sub { color: var(--pino); font-style: italic; margin-bottom: 1.2em; }
.room-specs { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0; }
.room-specs dt { font-size: .85rem; color: var(--grigio); }
.room-specs dd { margin: 0; }
@media (min-width: 900px) {
  .room-row { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; }
  .room-row:nth-child(even) .room-media { order: 2; }
}

.room-detail { display: grid; gap: 40px; }
.room-desc p:first-child { font-size: 1.15rem; }
.room-aside { background: var(--sabbia); padding: 28px; align-self: start; }
.room-aside h2 { font-size: 1.9rem; }
.feat { list-style: none; margin: 0 0 24px; padding: 0; columns: 2; column-gap: 24px; }
.feat li { padding: 6px 0; border-bottom: 1px solid rgba(12, 59, 71, .12); break-inside: avoid; }
.aside-tel { margin: 14px 0 0; }
@media (min-width: 900px) { .room-detail { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 72px; } .room-aside { position: sticky; top: 96px; } }

.room-switch ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.room-switch h2 { font-size: 1.8rem; }
.room-switch a { display: inline-block; padding: .55em 1.1em; border: 1px solid rgba(12, 59, 71, .3); border-radius: 999px; color: var(--mare); text-decoration: none; }
.room-switch a:hover { border-color: var(--mare); }
.room-switch a[aria-current] { background: var(--mare); color: #fff; border-color: var(--mare); }

/* ---------- gallery */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: -40px; }
.chip { font: 500 .92rem/1 var(--text); padding: .65em 1.1em; border-radius: 999px; border: 1px solid rgba(12, 59, 71, .3); background: none; color: var(--mare); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--mare); border-color: var(--mare); color: #fff; }
.gallery-grid { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.gallery-grid li[hidden] { display: none; }
.g-item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-item img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s; }
.g-item:hover img { opacity: .88; }
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-grid--room { margin-top: -24px; }

.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(6, 22, 27, .94); }
.lightbox::backdrop { background: rgba(6, 22, 27, .94); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 56px 64px; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; font: 300 2.6rem/1 var(--text); width: 56px; height: 56px; cursor: pointer; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox img { padding: 56px 8px; } .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; } }

/* ---------- contacts */
.contact { display: grid; gap: 40px; }
.contact-list { margin: 0; display: grid; gap: 0; }
.contact-list > div { padding: 18px 0; border-bottom: 1px solid rgba(12, 59, 71, .15); }
.contact-list dt { color: var(--grigio); font-size: .9rem; }
.contact-list dd { margin: 4px 0 0; font-size: 1.3rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* ---------- footer */
.site-footer { background: var(--mare); color: #dfe9eb; padding: 64px 0 28px; font-size: .97rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 36px; }
.foot-name { font: 400 2.2rem/1 var(--display); color: #fff; margin-bottom: .4em; }
.foot-brand p:last-child { max-width: 34ch; }
.site-footer address { font-style: normal; line-height: 1.9; }
.foot-links { list-style: none; margin: 0; padding: 0; columns: 2; line-height: 2; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .88rem; color: #b9cbcf; }
.foot-legal p { margin: 0; }
.foot-legal a + a { margin-left: 18px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
video.page-hero-img { object-fit: cover; }
@media (prefers-reduced-motion: reduce) { video.page-hero-img { display: none; } .page-hero:has(video) { background: var(--mare) url("/assets/video/mare-poster.jpg") center / cover no-repeat; } }
.page-hero:has(video)::after { inset: 0; background: linear-gradient(rgba(6, 30, 36, .25), rgba(6, 30, 36, .6)); }
video.home-hero-img { display: block; }
@media (prefers-reduced-motion: reduce) { video.home-hero-img { display: none; } .home-hero { background: var(--mare) url("/assets/video/mare-poster.jpg") center / cover no-repeat; } }
/* blocco Hotel in home: video verticale */
.feature--video .feature-media video { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 86vh; object-fit: cover; }
@media (min-width: 900px) {
  .feature--video { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; max-width: 1240px; padding-inline: var(--gutter); }
  .feature--video .feature-media video { max-height: 82vh; }
  .feature--video .feature-text { padding: 0; max-width: 32rem; }
}
@media (prefers-reduced-motion: reduce) { .feature--video .feature-media video { animation: none; } }
