/* ==========================================================================
   Casello 8 Guest House — foglio di stile
   Nessuna dipendenza esterna: font in /fonts, icone SVG inline.
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/InterDisplay-ExtraBold.woff") format("woff"); }

:root {
  --ink: #12303a;          /* verde-blu laguna */
  --ink-2: #1c4553;
  --ink-3: #0b2028;
  --ochre: #e3a935;        /* giallo ocra dei caselli */
  --ochre-d: #c98f1d;
  --signal: #b8352a;       /* rosso segnale, solo piccoli accenti */
  --paper: #fbfcfa;
  --ballast: #eef2ef;      /* grigio pietrisco, chiaro */
  --line: #d3dbd6;
  --text: #1a2b30;
  --muted: #526368;
  --white: #fff;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;

  --radius: 6px;
  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; max-width: 68ch; }
.lead { font-family: var(--font-serif); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.55; color: var(--muted); }
.small { font-size: .9rem; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--ballast); }
.section--ink { background: var(--ink); color: #dbe6e8; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-family: var(--font-serif); font-size: 1.2rem; }
.section--ink .section-head p { color: #b9cbcf; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ochre); color: var(--ink); padding: .6rem 1rem; z-index: 100; font-weight: 600; }
.skip:focus { left: 0; }

/* ---------- Icone ---------- */
.i { width: 1.35em; height: 1.35em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font: 600 1rem/1 var(--font-body); padding: .95rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; min-height: 3rem; }
.btn--primary { background: var(--ochre); color: var(--ink-3); border-color: var(--ochre); }
.btn--primary:hover { background: var(--ochre-d); border-color: var(--ochre-d); color: var(--ink-3); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--dark:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--white); }
.btn--line { color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--white); text-decoration: none; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em; font-size: 1.1rem; line-height: 1.1; }
.brand:hover { color: var(--white); }
.plate { display: inline-grid; place-items: center; width: 2.35rem; height: 2.35rem; background: var(--ochre); color: var(--ink-3); border-radius: 5px; font: 800 1.55rem/1 var(--font-display); box-shadow: inset 0 0 0 2px var(--ochre), inset 0 0 0 3.5px var(--ink-3); }
.brand small { display: block; font: 600 .72rem/1.2 var(--font-body); letter-spacing: .02em; color: #a9c0c5; margin-top: .15rem; }

.nav-toggle { display: none; background: none; border: 2px solid rgba(255,255,255,.4); color: var(--white); border-radius: var(--radius); padding: .5rem .8rem; font: 600 .95rem var(--font-body); cursor: pointer; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a, .nav button.nav-link { color: #dbe6e8; text-decoration: none; padding: .6rem .8rem; border-radius: var(--radius); font: 600 .95rem/1 var(--font-body); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.nav a:hover, .nav button.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: var(--ink-3); background: var(--ochre); }
.nav .i { width: 1em; height: 1em; }
.nav-cta { margin-left: .5rem; }
.nav .nav-cta { background: var(--ochre); color: var(--ink-3); }
.nav .nav-cta:hover { background: var(--ochre-d); color: var(--ink-3); }
.has-sub { position: relative; }
.sub { position: absolute; right: 0; top: calc(100% + .35rem); min-width: 17rem; background: var(--ink-3); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: .4rem; display: none; box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.sub.is-open { display: block; }
.sub a { display: block; width: 100%; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; padding: .75rem var(--gutter) 1.25rem; display: none; border-bottom: 1px solid rgba(255,255,255,.1); gap: .15rem; }
  .nav.is-open { display: flex; }
  .nav a, .nav button.nav-link { padding: .9rem .75rem; font-size: 1.05rem; justify-content: space-between; }
  .sub { position: static; display: block; background: transparent; border: 0; box-shadow: none; padding: 0 0 0 .75rem; min-width: 0; }
  .has-sub > button.nav-link .i { display: none; }
  .nav-cta { margin: .5rem 0 0; justify-content: center !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #dbe6e8; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,32,40,.96) 0%, rgba(11,32,40,.9) 42%, rgba(11,32,40,.55) 100%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero h1 { color: var(--white); }
.hero .lead { color: #c4d5d8; max-width: 36rem; }
.hero__note { margin-top: 1.1rem; font-size: .95rem; color: #a9c0c5; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.hero__note span { display: inline-flex; align-items: center; gap: .4rem; }
.hero__note .i { width: 1.1em; height: 1.1em; color: var(--ochre); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero::before { background: rgba(11,32,40,.88); }
}

/* Tabellone delle partenze: l'elemento riconoscibile del sito */
.board { background: var(--ink-3); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; box-shadow: 0 24px 48px rgba(0,0,0,.35); overflow: hidden; color: var(--white); }
.board__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; background: #0e2832; border-bottom: 1px solid rgba(255,255,255,.12); }
.board__title { font: 800 1.05rem/1.1 var(--font-display); letter-spacing: -0.01em; display: flex; align-items: center; gap: .65rem; }
.board__title .plate { width: 1.9rem; height: 1.9rem; font-size: 1.2rem; }
.board__sub { font-size: .8rem; color: #8fa9af; }
.board table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board th { text-align: left; font: 600 .74rem/1 var(--font-body); color: #8fa9af; padding: .7rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.board td { padding: .85rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: baseline; }
.board tr:last-child td { border-bottom: 0; }
.board td:first-child { font-weight: 600; }
.board td:nth-child(2) { color: #a9c0c5; font-size: .92rem; }
.board td:last-child { text-align: right; font: 800 1.2rem/1 var(--font-display); color: var(--ochre); white-space: nowrap; }
.board td:last-child small { font: 600 .75rem var(--font-body); color: #a9c0c5; margin-left: .2rem; }
.board tbody tr { animation: row-in .5s both; }
.board tbody tr:nth-child(2) { animation-delay: .12s; } .board tbody tr:nth-child(3) { animation-delay: .24s; } .board tbody tr:nth-child(4) { animation-delay: .36s; } .board tbody tr:nth-child(5) { animation-delay: .48s; }
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .board th:nth-child(2), .board td:nth-child(2) { display: none; } .board td, .board th { padding-inline: .9rem; } }

/* ---------- Banda informazioni rapide ---------- */
.facts { background: var(--ochre); color: var(--ink-3); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 2rem; padding-block: 1.25rem; }
.fact { display: flex; align-items: center; gap: .75rem; font-weight: 600; line-height: 1.25; font-size: .98rem; }
.fact .i { width: 1.6rem; height: 1.6rem; }
@media (max-width: 900px) { .facts .wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .facts .wrap { grid-template-columns: 1fr; } }

/* ---------- Motivi ---------- */
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 4rem); }
.reason { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; }
.reason__icon { width: 3rem; height: 3rem; border-radius: var(--radius); background: var(--ink); color: var(--ochre); display: grid; place-items: center; }
.reason__icon .i { width: 1.5rem; height: 1.5rem; }
.reason h3 { margin-bottom: .35rem; }
.reason p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .reasons { grid-template-columns: 1fr; } }

/* ---------- Camere ---------- */
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.room { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.room__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ballast); }
.room__img img { width: 100%; height: 100%; object-fit: cover; }
.room__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.room__body h3 { margin: 0; font-size: 1.45rem; }
.room__meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; color: var(--muted); font-size: .95rem; margin: 0 0 .25rem; padding: 0; list-style: none; }
.room__meta li { display: inline-flex; align-items: center; gap: .4rem; }
.room__meta .i { width: 1.1em; height: 1.1em; }
.room__foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.price { font-size: .9rem; color: var(--muted); line-height: 1.2; }
.price strong { display: block; font: 800 1.7rem/1.1 var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
@media (max-width: 760px) { .rooms { grid-template-columns: 1fr; } }

/* ---------- Galleria ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ballast); aspect-ratio: 3 / 4; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: .6rem; bottom: .6rem; background: var(--ink-3); color: var(--white); font: 600 .82rem/1 var(--font-body); padding: .45rem .65rem; border-radius: 4px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery figure:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; } }

/* ---------- Dotazioni ---------- */
.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.amenities li { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: .98rem; line-height: 1.3; }
.amenities .i { color: var(--ink-2); width: 1.5rem; height: 1.5rem; }
@media (max-width: 960px) { .amenities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .amenities { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 0; font: 600 1.08rem/1.35 var(--font-body); color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .65rem; height: .65rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; margin-right: .3rem; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--ink-2); }
.faq .answer { padding: 0 0 1.3rem; color: var(--muted); }
.faq .answer p { margin: 0; }

/* ---------- Fascia finale ---------- */
.cta { background: var(--ink); color: #dbe6e8; }
.cta .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.cta h2 { color: var(--white); margin: 0 0 .4em; }
.cta p { margin: 0; color: #b9cbcf; }
.cta .btn-row { justify-content: flex-start; }
@media (max-width: 800px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- Pagine interne ---------- */
.page-hero { background: var(--ink); color: #dbe6e8; }
.page-hero .wrap { padding-block: clamp(2.75rem, 7vw, 4.75rem); }
.page-hero h1 { color: var(--white); max-width: 22ch; margin-bottom: .45em; font-size: clamp(2rem, 4.8vw, 3.3rem); }
.page-hero .lead { color: #c4d5d8; max-width: 44rem; margin: 0; }
.crumbs { font-size: .9rem; color: #8fa9af; margin-bottom: 1.25rem; }
.crumbs a { color: #b9cbcf; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; }
.split + .split { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.split--rev > :first-child { order: 2; }
.split img { border-radius: 10px; width: 100%; object-fit: cover; }
.split__img--wide img { aspect-ratio: 4 / 3; }
.split__img--tall img { aspect-ratio: 3 / 4; max-height: 36rem; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); margin: 0 0 2rem; }
.specs div { padding: 1rem 1.25rem; border-right: 1px solid var(--line); }
.specs div:last-child { border-right: 0; }
.specs dt { font-size: .82rem; color: var(--muted); margin: 0 0 .15rem; }
.specs dd { margin: 0; font-weight: 600; line-height: 1.3; }
@media (max-width: 760px) { .specs { grid-template-columns: repeat(2, 1fr); } .specs div:nth-child(2) { border-right: 0; } .specs div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.feature-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
.feature-list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .9rem; align-items: start; }
.feature-list .i { color: var(--ink-2); margin-top: .15rem; }
.feature-list strong { color: var(--ink); }

.bookbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.4rem 1.6rem; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); }
.bookbox .price strong { font-size: 2rem; }
.bookbox p { margin: .2rem 0 0; font-size: .92rem; color: var(--muted); }

.place { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem 2.25rem; padding-block: 2rem; border-top: 1px solid var(--line); align-items: start; }
.place:last-of-type { border-bottom: 1px solid var(--line); }
.place img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.place h3 { margin: 0 0 .5rem; font-size: 1.5rem; }
.place dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; }
.place dt { font-weight: 600; color: var(--ink); }
.place dd { margin: 0; color: var(--muted); }
.place .time { font: 800 1.35rem/1 var(--font-display); color: var(--ink); }
@media (max-width: 640px) { .place { grid-template-columns: 5.5rem 1fr; gap: 1rem 1.25rem; } .place dl { grid-template-columns: 1fr; gap: 0; } .place dd { margin-bottom: .6rem; } }

.map { border: 0; width: 100%; height: clamp(320px, 50vw, 480px); display: block; background: var(--ballast); }
.address-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.address-card h3 { font-size: 1rem; margin: 0 0 .3rem; }
.address-card p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .address-card { grid-template-columns: 1fr; gap: 1rem; } }

/* Eventi */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.event { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.event img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.event__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.event__body h3 { margin: 0; }
.event__body p { margin: 0 0 .75rem; color: var(--muted); font-size: .98rem; }
.event__body .btn { margin-top: auto; align-self: flex-start; }
.event--text .event__body { padding: 1.6rem; }
@media (max-width: 900px) { .events { grid-template-columns: 1fr; } }

/* Contatti / form */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { display: grid; gap: 1rem; }
.contact-item { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); }
a.contact-item:hover { border-color: var(--ink); color: var(--text); }
.contact-item .reason__icon { width: 3rem; height: 3rem; }
.contact-item strong { display: block; color: var(--ink); }
.contact-item span { color: var(--muted); font-size: .95rem; word-break: break-word; }
form.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--ink); font-size: .95rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--text); background: var(--white); border: 1.5px solid #9fb0b5; border-radius: var(--radius); padding: .8rem .9rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--ochre); outline-offset: 0; border-color: var(--ink); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-status { padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 600; display: none; }
.form-status.is-ok { display: block; background: #e3f1e6; color: #1e5a2d; border: 1px solid #a8d3b2; }
.form-status.is-err { display: block; background: #f8e3e0; color: #7d1f16; border: 1px solid #e2a9a2; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .field--row { grid-template-columns: 1fr; } }

/* Condizioni */
.terms { max-width: 46rem; }
.terms section + section { margin-top: 2.5rem; }
.terms h2 { font-size: 1.5rem; }
.terms dl { margin: 0; display: grid; gap: .9rem; }
.terms dt { font-weight: 600; color: var(--ink); }
.terms dd { margin: .1rem 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-3); color: #b4c6ca; padding-block: 3rem 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font: 600 .9rem/1.2 var(--font-body); letter-spacing: 0; color: var(--white); margin: 0 0 .8rem; }
.site-footer a { color: #dbe6e8; text-decoration-color: rgba(219,230,232,.4); }
.site-footer a:hover { color: var(--ochre); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer p { margin: 0 0 .5rem; max-width: none; }
.legal { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #8fa9af; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; justify-content: space-between; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Barra azioni su mobile ---------- */
.mbar { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: 4.5rem; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.35fr; background: var(--ink-3); border-top: 1px solid rgba(255,255,255,.15); padding-bottom: env(safe-area-inset-bottom); }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; min-height: 3.75rem; color: #dbe6e8; text-decoration: none; font: 600 .8rem/1 var(--font-body); }
  .mbar a:hover { color: var(--white); }
  .mbar .i { width: 1.35rem; height: 1.35rem; }
  .mbar a:last-child { background: var(--ochre); color: var(--ink-3); }
}

/* ---------- Tessere dintorni (Il Casello) ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.tile { margin: 0; }
.tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.tile figcaption { padding-top: .7rem; display: grid; gap: .15rem; line-height: 1.35; }
.tile strong { font: 800 1.1rem/1.2 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.tile span { color: var(--muted); font-size: .92rem; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pagina camera ---------- */
.room-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.room-gallery > div { border-radius: 10px; overflow: hidden; background: var(--ballast); aspect-ratio: 4 / 3; }
.room-gallery__main { grid-column: 1 / -1; aspect-ratio: 16 / 9 !important; }
.room-gallery img { width: 100%; height: 100%; object-fit: cover; }
.room-info { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.bookbox-wrap { position: sticky; top: 5.5rem; }
.bookbox { flex-direction: column; align-items: stretch; }
.bookbox .btn { width: 100%; }
.bookbox .btn-row { flex-direction: column; }
@media (max-width: 860px) { .room-info { grid-template-columns: 1fr; } .bookbox-wrap { position: static; } .room-gallery__main { aspect-ratio: 4 / 3 !important; } }
.event .i { width: 2rem; height: 2rem; color: var(--ink-2); margin-bottom: .25rem; }
