/* ItalianVacations — stile del sito. Design system dal modello bnb-spresiano.html:
   palette verde-vigna / intonaco a calce, Fraunces + Instrument Sans, persiane e colline. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/instrument-sans-latin.woff2) format('woff2');
}

:root {
  --green-deep: #2a4230;      /* persiane venete / vigna scura */
  --green: #3c5a3f;
  --green-mid: #6f8d5f;       /* foglia */
  --green-text: #4f6b43;      /* foglia scurita: contrasto AA su intonaco */
  --plaster: #eef1ea;         /* intonaco a calce, tinto verde */
  --plaster-warm: #f5f3ec;
  --gold: #c19a4a;            /* luce veneta, usato con parsimonia */
  --ink: #26302a;
  --ink-soft: #55605a;
  --line: rgba(42,66,48,.14);
  --shadow: 0 24px 60px rgba(38,48,42,.14);
  --focus: #c19a4a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--plaster);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green-deep); color: var(--plaster-warm);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-text); font-weight: 600; margin-bottom: 14px;
}

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238,241,234,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { font-family: 'Fraunces', serif; font-size: 21px; font-weight: 600; color: var(--green-deep); letter-spacing: -.01em; }
.brand small { font-family: 'Instrument Sans', sans-serif; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-text); display: block; font-weight: 600; margin-top: -2px; }
.navlinks { display: flex; gap: 28px; }
.navlinks a { font-size: 14.5px; color: var(--ink-soft); font-weight: 500; transition: color .18s; }
.navlinks a:hover { color: var(--green-deep); }
.navtools { display: flex; align-items: center; gap: 18px; }
.langs { display: flex; gap: 2px; }
.lang {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft);
  padding: 5px 7px; border-radius: 6px; transition: all .15s;
}
.lang:hover { color: var(--green-deep); }
.lang.active { background: var(--green-deep); color: var(--plaster-warm); }
@media (max-width: 860px) { .navlinks { display: none; } }
@media (max-width: 380px) { .brand { font-size: 18px; } .lang { padding: 5px 5px; } }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; min-height: 84vh; display: flex; align-items: center; }
.hero svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .wrap { position: relative; z-index: 2; }
.hero-card {
  position: relative; z-index: 2; max-width: 560px;
  background: rgba(245,243,236,.72); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.5);
  padding: 44px 46px; border-radius: 18px; box-shadow: var(--shadow);
  margin: 40px 0;
}
.hero-card h1 { font-size: clamp(36px, 6vw, 64px); color: var(--green-deep); margin: 6px 0 16px; }
.hero-card p { font-size: 17px; color: var(--ink-soft); max-width: 440px; }
.cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer; border: 1px solid transparent; transition: all .18s;
}
.btn-primary { background: var(--green-deep); color: var(--plaster-warm); }
.btn-primary:hover { background: var(--green); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--green-deep); color: var(--green-deep); }
.btn-ghost:hover { background: rgba(42,66,48,.06); }
@media (max-width: 540px) { .hero-card { padding: 32px 26px; } }

/* ── Persiane divider ── */
.shutter { height: 10px; background: repeating-linear-gradient(90deg, var(--green-deep) 0 8px, var(--green) 8px 16px); opacity: .9; }

/* ── Sections ── */
section.block { padding: 92px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2, .intro-body h2 { font-size: clamp(30px, 4vw, 44px); color: var(--green-deep); }
.intro-body h2 { margin-bottom: 20px; }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 17px; }
.section-head p a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }

/* Intro + stats */
.intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.intro-body p { color: var(--ink-soft); font-size: 17px; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.stat { background: var(--plaster-warm); border: 1px solid var(--line); border-radius: 14px; padding: 24px 12px; text-align: center; }
.stat .n { font-family: 'Fraunces', serif; font-size: 40px; color: var(--green-deep); font-weight: 600; }
.stat .l { font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; font-weight: 500; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 480px) { .stats { gap: 10px; } .stat { padding: 20px 6px; } .stat .l { font-size: 11.5px; letter-spacing: 0; } }
.info-strip { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 28px; list-style: none; }
.info-strip li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-soft); }
.info-strip svg { color: var(--green-mid); flex: 0 0 auto; }
@media (max-width: 820px) { .intro-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Valutazione + scheda Airbnb caricata al clic */
.rating { margin-top: 22px; background: var(--plaster-warm); border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-align: center; }
.rating-line { font-family: 'Fraunces', serif; font-size: 20px; color: var(--green-deep); font-weight: 500; }
.rating-line .star { color: var(--gold); }
.rating .btn { margin-top: 14px; }
.rating-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }
.airbnb-embed { margin-top: 16px; }
.airbnb-embed .airbnb-embed-frame { width: 100%; max-width: 450px; height: 300px; margin: auto; }

/* Gallery */
.gallery-alt { background: var(--plaster-warm); }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; list-style: none; }
.gal { border-radius: 14px; overflow: hidden; position: relative; background: linear-gradient(135deg, #dfe6d8, #cdd8c4); border: 1px solid var(--line); }
.gal.big { grid-column: span 2; grid-row: span 2; }
.gal a { display: block; width: 100%; height: 100%; }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal a:hover img { transform: scale(1.03); }
@media (max-width: 820px) { .gal-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 150px; } .gal.big { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 820px) { .gal.big { grid-row: span 2; } }

/* Lightbox */
dialog.lightbox { margin: auto; padding: 0; border: none; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(20,28,22,.9); }
.lightbox figure { position: relative; }
.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 10px; }
.lightbox figcaption { color: var(--plaster); font-size: 14px; text-align: center; margin-top: 10px; }
.lb-btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(245,243,236,.9); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: #fff; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-close { top: 16px; right: 14px; transform: none; }

/* Amenities */
.amen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.amen { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: var(--plaster-warm); border: 1px solid var(--line); border-radius: 12px; }
.amen .ic { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px; background: rgba(111,141,95,.14); display: flex; align-items: center; justify-content: center; color: var(--green); }
.amen span { font-size: 15px; font-weight: 500; }
@media (max-width: 820px) { .amen-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .amen-grid { grid-template-columns: 1fr; } }

/* Area */
.area-alt { background: var(--green-deep); color: var(--plaster); }
.area-alt .eyebrow { color: #9fb98f; }
.area-alt .section-head h2 { color: var(--plaster-warm); }
.area-alt .section-head p { color: rgba(238,241,234,.8); }
.area-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; list-style: none; }
.place { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 26px 22px; }
.place .pic { color: var(--gold); margin-bottom: 16px; }
.place h3 { font-size: 21px; color: var(--plaster-warm); margin-bottom: 6px; }
.place p { font-size: 14px; color: rgba(238,241,234,.78); }
@media (max-width: 900px) { .area-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .area-grid { grid-template-columns: 1fr; } }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.form-side h2 { font-size: clamp(30px,4vw,44px); color: var(--green-deep); }
.form-side p { margin-top: 16px; color: var(--ink-soft); font-size: 17px; }
.contact-lines { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; list-style: none; }
.contact-lines li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-soft); }
.contact-lines a:hover { color: var(--green-deep); }
.contact-lines svg { color: var(--green-mid); flex: 0 0 auto; }
form.inquiry { background: var(--plaster-warm); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .02em; }
.field label .opt { font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(42,66,48,.28); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff; transition: border-color .15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(111,141,95,.25); }
.field textarea { resize: vertical; min-height: 96px; }
.privacy { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--green); flex: 0 0 auto; }
.consent a { text-decoration: underline; color: var(--green-deep); }
.form-ok { display: none; margin-top: 16px; padding: 14px 16px; background: rgba(111,141,95,.16); border: 1px solid var(--green-mid); border-radius: 10px; font-size: 14px; color: var(--green-deep); }
.form-err { display: none; margin-top: 16px; padding: 14px 16px; background: rgba(176,74,58,.12); border: 1px solid #b04a3a; border-radius: 10px; font-size: 14px; color: #8f3527; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } form.inquiry { padding: 24px; } }

/* Testo lungo (informativa privacy, 404) */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(32px, 5vw, 48px); color: var(--green-deep); margin-bottom: 20px; }
.prose h2 { font-size: 24px; color: var(--green-deep); margin: 34px 0 10px; }
.prose p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 12px; }
.prose .updated { font-size: 13px; margin-top: 30px; }
.prose a { color: var(--green-deep); text-decoration: underline; }

/* Footer */
footer { background: var(--green-deep); color: rgba(238,241,234,.78); padding: 54px 0 34px; }
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-brand { font-family: 'Fraunces', serif; font-size: 24px; color: var(--plaster-warm); font-weight: 600; }
.foot-brand small { display: block; font-family: 'Instrument Sans', sans-serif; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #9fb98f; margin-top: 4px; }
.foot-col h2 { color: var(--plaster-warm); font-family: 'Instrument Sans', sans-serif; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.foot-col p, .foot-col a { font-size: 14px; line-height: 1.9; display: block; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { padding-top: 22px; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Comparsa allo scorrimento: nascosto solo se JavaScript è attivo */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .gal img, .btn { transition: none; }
}

/* Pagina di scelta della lingua */
.chooser { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.chooser .hero-card { text-align: center; max-width: 520px; }
.chooser ul { list-style: none; display: grid; gap: 10px; margin-top: 26px; }
.chooser .btn { width: 100%; justify-content: center; }
