/* Casa vacanze Nonna Marisa — foglio di stile unico
   Palette presa dalla casa: intonaco pesca, pilastro in mattoni, scuri verde salvia. */

@font-face { font-family: "Marcellus"; src: url("/fonts/Marcellus-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/fonts/LibreFranklin-normal.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("/fonts/LibreFranklin-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --cream: #fbf7f1;
  --sand: #f4eadd;
  --peach: #ecc9a5;
  --peach-soft: #f7e3cf;
  --brick: #a4513a;
  --brick-dark: #843f2c;
  --sage: #56664f;
  --sage-dark: #414f3b;
  --ink: #2b2724;
  --muted: #675f58;
  --line: #e3d6c6;
  --white: #fff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(43, 39, 36, .06), 0 8px 24px rgba(43, 39, 36, .08);
  --wrap: 1160px;
  --serif: "Marcellus", "Times New Roman", serif;
  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-dark); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 650; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--sand); }
.section-sage { background: var(--sage); color: #f3f1ea; }
.section-sage h2, .section-sage h3 { color: #fff; }
.section-sage a:not(.btn) { color: #fff; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin-bottom: .9rem; }
.section-sage .eyebrow { color: var(--peach); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--sage-dark); }
.btn-light:hover { background: var(--peach-soft); color: var(--sage-dark); }
.btn-wa { background: #1f7a4d; color: #fff; }
.btn-wa:hover { background: #17613c; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 241, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; }
.brand-sub { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.nav-toggle { display: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li > a, .nav summary { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; cursor: pointer; }
.nav > ul > li > a:hover, .nav summary:hover { background: var(--sand); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brick); }
.nav summary { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.nav details { position: relative; }
.nav details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav details ul { position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.nav details ul a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.nav details ul a:hover { background: var(--sand); }
.nav details ul a span { display: block; font-size: .82rem; color: var(--muted); }
.lang { display: flex; gap: 2px; font-size: .85rem; font-weight: 600; }
.lang a { padding: 6px 8px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.lang a:hover { background: var(--sand); color: var(--ink); }
.lang a[aria-current="true"] { color: var(--ink); background: var(--sand); }
.nav .btn { padding: .65em 1.15em; font-size: .95rem; white-space: nowrap; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 14px; font: 600 .95rem var(--sans); color: var(--ink); cursor: pointer; }
  .nav-toggle svg { width: 18px; height: 18px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 16px 24px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px rgba(43, 39, 36, .08); max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav > ul > li > a, .nav summary { padding: 12px; font-size: 1.05rem; }
  .nav details ul { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; }
  .lang { justify-content: center; font-size: .95rem; }
  .lang a { padding: 8px 14px; }
}

@media (max-width: 460px) {
  .header-in { gap: 10px; min-height: 64px; }
  .brand { gap: 9px; }
  .brand svg { width: 36px; height: 36px; }
  .brand-name { font-size: 1.22rem; }
  .brand-sub { font-size: .62rem; letter-spacing: .06em; }
  .nav-toggle { padding: 7px 11px; font-size: .9rem; }
  .nav { max-height: calc(100vh - 64px); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 1.6rem; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.hero-badge { position: absolute; left: -18px; bottom: 24px; background: #fff; border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.25; }
.hero-badge strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--brick); }
.hero-badge span { font-size: .85rem; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 1.8rem 0 0; }
.facts li { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 10px; font-size: .92rem; font-weight: 500; }
.facts svg { width: 20px; height: 20px; color: var(--sage); flex: none; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-badge { left: 12px; bottom: 12px; padding: 10px 14px; }
  .hero-badge strong { font-size: 1.3rem; }
}

/* Pagine interne */
.page-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); }
.page-hero .lead { margin-bottom: 1.4rem; }
.page-hero-img { margin-top: clamp(24px, 4vw, 40px); }
.page-hero-img img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 700px) { .page-hero-img img { aspect-ratio: 3 / 2; } }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* ---------- Box disponibilità ---------- */
.avail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: end; margin-top: -24px; position: relative; }
.avail label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.avail .btn { height: 50px; }
@media (max-width: 760px) { .avail { grid-template-columns: 1fr 1fr; margin-top: 0; } .avail .field-guests { grid-column: 1 / -1; } .avail .btn { grid-column: 1 / -1; } }

input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream); border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 50px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(86, 102, 79, .18); }
input:not([type="checkbox"]), select { height: 50px; min-width: 0; }
.avail > *, .form > * { min-width: 0; }
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; }
textarea { min-height: 140px; resize: vertical; }

/* ---------- Griglie e schede ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.top { align-items: start; }
.split img { border-radius: var(--radius-lg); width: 100%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .media-first { order: -1; } }

.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.amenities li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; line-height: 1.4; }
.amenities svg { width: 26px; height: 26px; color: var(--brick); flex: none; margin-top: 1px; }
.amenities strong { display: block; }
.amenities span { font-size: .92rem; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card-img { position: relative; }
.card-img img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-dist { position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 255, .95); color: var(--brick-dark); font-weight: 700; font-size: .85rem; border-radius: 999px; padding: 5px 12px; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .35em; }
.card-body p { color: var(--muted); font-size: .98rem; }
.card-more { margin-top: auto; font-weight: 600; color: var(--brick); display: inline-flex; align-items: center; gap: 6px; }
.card-more svg { width: 18px; height: 18px; transition: transform .2s; }
a.card:hover .card-more svg { transform: translateX(3px); }

/* ---------- Galleria ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--sand); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: .85rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20, 17, 15, .92); }
.lightbox-in { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 8px; }
.lightbox p { color: #eee; margin: 14px 0 0; text-align: center; font-size: .95rem; }
.lb-btn { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Prezzi ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 26px 20px; }
.price-card.best { border: 2px solid var(--sage); position: relative; }
.price-tag { position: absolute; top: -13px; left: 24px; background: var(--sage); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.price-card h3 { margin-bottom: .2em; }
.price-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.price-table th, .price-table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table td { text-align: right; font-family: var(--serif); font-size: 1.5rem; color: var(--brick); white-space: nowrap; }
.price-table td small { font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.from { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--brick); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--sage); flex: none; margin-top: 2px; }
.section-sage .checklist svg { color: var(--peach); }
.section-sage .from { color: var(--peach); }

/* ---------- Contenuti testuali ---------- */
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul li { margin-bottom: .4em; }
.distance-list { list-style: none; padding: 0; margin: 0 0 1.5em; border-top: 1px solid var(--line); }
.distance-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.distance-list span:last-child { font-weight: 600; white-space: nowrap; color: var(--sage-dark); }
.note { background: var(--peach-soft); border-left: 4px solid var(--brick); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 1.6em 0; }
.note p:last-child { margin: 0; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 96px; }
.aside-card h2 { font-size: 1.5rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.content-grid > * { min-width: 0; }
@media (max-width: 960px) { .content-grid { grid-template-columns: minmax(0, 1fr); } .aside-card { position: static; } }
.figure { margin: 1.8em 0; }
.figure img { border-radius: var(--radius); width: 100%; }
.figure figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: 1.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.6rem; color: var(--brick); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }

/* ---------- Banda CTA ---------- */
.cta-band { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band p { color: #e6e8df; font-size: 1.1rem; margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- Modulo contatti ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); }
.form .check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--brick); }
.form .hp { position: absolute; left: -9999px; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 14px; }
.contact-list a { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.contact-list a:hover { border-color: var(--brick); color: var(--ink); }
.contact-list svg { width: 26px; height: 26px; color: var(--brick); flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: .85rem; }
.contact-list span { min-width: 0; overflow-wrap: anywhere; }
.site-footer a { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: #2b2724; color: #d8d0c7; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #f1e9df; text-decoration: none; }
.site-footer a:hover { color: var(--peach); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h2 { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--peach); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-sub { color: #b9afa5; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #443e39; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #a99f95; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Barra mobile ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 247, 241, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(43, 39, 36, .08); }
  .mobile-bar .btn { padding: .8em 1em; font-size: .95rem; }
  body { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
