/* Agriturismo La Molara — replica statica del sito (26/10/2026).
   Misure e colori letti dal tema WordPress di prima (Soho Hotel): scatola larga
   1160px su fondo grigio col disegno, contenuto 960px, oro #BF9958, nero #1C1C1C,
   titoli in Merriweather e testo in Open Sans. */

@font-face {
  font-family: "Merriweather";
  src: url("fonts/merriweather-latin.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-latin.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/open-sans-corsivo-latin.woff2") format("woff2");
  font-weight: 300 800; font-style: italic; font-display: swap;
}

:root {
  --oro: #bf9958;
  --nero: #1c1c1c;
  --testo: #1c1c1c;
  --grigio: #666;
  --grigio-chiaro: #a09d9d;
  --filo: #e8e8e8;
  --larghezza-scatola: 1160px;
  --larghezza: 960px;
  --serif: "Merriweather", Georgia, serif;
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grigio) url("img/sfondo.png") center top / 1897px auto repeat-y;
  color: var(--testo);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 14px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

.nascosto {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.salta {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--nero); color: #fff; padding: 8px 14px;
}
.salta:focus { left: 10px; top: 10px; }

.scatola {
  max-width: var(--larghezza-scatola);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 24px rgba(0, 0, 0, .35);
}

.contenuto { max-width: calc(var(--larghezza) + 40px); margin: 0 auto; padding: 50px 20px 30px; }
.contenuto.stretto { max-width: 760px; }

/* ── barra in alto ─────────────────────────────────────────── */
.barra-alta { background: var(--nero); color: #fff; font-size: 12px; }
.barra-dentro {
  max-width: calc(var(--larghezza) + 40px); margin: 0 auto; padding: 0 20px;
  height: 40px; display: flex; align-items: center; justify-content: space-between;
}
.segnaposto {
  align-self: flex-start;
  width: 46px; height: 52px; margin-left: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--nero); border-radius: 0 0 23px 23px;
}
.segnaposto svg { width: 20px; height: 20px; }
.barra-contatti { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.barra-contatti li { display: flex; align-items: center; gap: 6px; }
.barra-contatti svg { width: 12px; height: 12px; }
.barra-contatti a { text-decoration: none; }
.barra-contatti a:hover { color: var(--oro); }

/* ── testata ───────────────────────────────────────────────── */
.testata { position: relative; }
.testata-dentro {
  max-width: calc(var(--larghezza) + 40px); margin: 0 auto; padding: 0 20px;
  min-height: 117px; display: flex; align-items: center; justify-content: space-between;
}
.logo { text-decoration: none; color: var(--nero); display: inline-flex; flex-direction: column; align-items: center; }
.logo-nome {
  font-family: var(--serif); font-size: 32px; line-height: 1; letter-spacing: .5px;
  padding-bottom: 8px; border-bottom: 1px solid var(--filo);
}
.logo-motto {
  font-family: var(--serif); font-size: 10px; line-height: 13px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--grigio-chiaro); text-align: center;
  max-width: 120px; margin-top: 8px;
}

.menu ul { list-style: none; margin: 0; padding: 0; display: flex; }
.menu li + li { border-left: 1px solid var(--filo); }
.menu a {
  display: block; position: relative;
  padding: 10px 17px;
  font-family: var(--serif); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; color: var(--nero);
}
.menu a:hover { color: var(--oro); }
.menu a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -40px;
  height: 4px; background: var(--oro);
}

.menu-apri {
  display: none; width: 44px; height: 44px; padding: 11px 10px;
  border: 0; background: var(--nero); cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-apri span { display: block; height: 2px; background: #fff; }

/* ── intestazione delle pagine interne ─────────────────────── */
.intestazione-pagina {
  background: #f4f4f4 url("img/testata-pagina.jpg") center / cover;
  min-height: 170px; display: flex; align-items: center;
}
.intestazione-pagina h1 {
  width: 100%; max-width: calc(var(--larghezza) + 40px); margin: 0 auto; padding: 0 20px;
  font-family: var(--serif); font-size: 20px; color: var(--nero);
}

/* ── titoli con la riga d'oro ──────────────────────────────── */
.titolo {
  position: relative;
  font-family: var(--serif); font-size: 18px; line-height: 1.2; color: var(--nero);
  padding-bottom: 12px; margin-bottom: 30px;
  border-bottom: 1px solid var(--filo);
}
.titolo::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 48px; height: 3px; background: var(--oro);
}
.giustificato { text-align: justify; }

.colonne-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
.colonne-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.colonne-3 section { margin-bottom: 30px; }
.schede { margin-top: 60px; }
.schede img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 24px; }
.schede p { text-align: justify; }

.bottone {
  display: inline-block; padding: 10px 20px; margin: 4px 6px 4px 0;
  background: var(--nero); color: #fff; border: 1px solid var(--nero);
  font-family: var(--serif); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
.bottone:hover { background: var(--oro); border-color: var(--oro); }
.bottone-chiaro { background: #fff; color: var(--nero); }

/* ── slider ───────────────────────────────────────────────── */
.slider { position: relative; aspect-ratio: 1160 / 520; overflow: hidden; background: #ddd; }
.slider-foto { list-style: none; margin: 0; padding: 0; height: 100%; }
.slider-foto li { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slider-foto li.attiva { opacity: 1; }
.slider-foto img { width: 100%; height: 100%; object-fit: cover; }
.slider-didascalia { position: absolute; left: 8%; bottom: 14%; }
.slider-didascalia p { display: table; margin: 0 0 6px; padding: 8px 16px; font-family: var(--serif); }
.didascalia-oro { background: var(--oro); color: #fff; font-size: 16px; }
.didascalia-scura { background: rgba(28, 28, 28, .85); color: #fff; font-size: 20px; text-transform: uppercase; }
.slider button {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .85); color: var(--nero); font-size: 28px; line-height: 1;
  cursor: pointer;
}
.slider-prima { left: 20px; }
.slider-dopo { right: 20px; }
@media (prefers-reduced-motion: reduce) { .slider-foto li { transition: none; } }

/* ── fascia scura e recensioni ─────────────────────────────── */
.fascia-scura { background: var(--nero); color: #fff; }
.fascia-scura .titolo { color: #fff; border-color: #333; }
.recensione {
  display: flex; align-items: center; gap: 18px; padding: 20px;
  border: 1px solid #424242; text-decoration: none; color: #fff;
}
.recensione:hover { border-color: var(--oro); }
.recensione strong { font-family: var(--serif); font-weight: 400; font-size: 15px; }

/* ── galleria ─────────────────────────────────────────────── */
.galleria {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px;
}
.galleria a { display: block; overflow: hidden; }
.galleria img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s ease; }
.galleria a:hover img { transform: scale(1.05); }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 88vh; }
.lightbox button {
  position: fixed; border: 0; background: transparent; color: #fff; cursor: pointer;
  font-size: 44px; line-height: 1; padding: 10px 16px;
}
.lightbox-chiudi { top: 10px; right: 10px; }
.lightbox-prima { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-dopo { right: 10px; top: 50%; transform: translateY(-50%); }

/* ── menu del ristorante ──────────────────────────────────── */
.menu-voce { margin-bottom: 40px; }
.menu-voce .titolo { display: flex; justify-content: space-between; gap: 20px; }
.prezzo { color: var(--oro); }
.menu-sotto { font-style: italic; color: var(--grigio); }
.menu-voce ul { padding-left: 18px; margin: 0 0 14px; }
.menu-voce li { margin-bottom: 4px; }
.nota { border-top: 1px solid var(--filo); padding-top: 20px; }

/* ── contatti e modulo ────────────────────────────────────── */
.colonne-contatti { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.recapiti .titolo { margin-bottom: 14px; }
.recapiti p { margin-bottom: 30px; }
.preventivo label { display: block; margin-bottom: 16px; font-weight: 600; }
.preventivo label span { font-weight: 400; color: var(--grigio); }
.preventivo input, .preventivo textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid #ddd; background: #fafafa; font: inherit; color: var(--testo);
}
.preventivo input:focus, .preventivo textarea:focus { outline: 2px solid var(--oro); outline-offset: -1px; background: #fff; }
.preventivo .trappola { position: absolute; left: -9999px; }
.informativa { font-size: 12px; color: var(--grigio); }
.esito { padding: 12px 16px; border-left: 4px solid var(--oro); background: #faf6ef; }
.esito.errore { border-color: #c0392b; background: #fbeeed; }

.mappa { position: relative; height: 380px; background: #eee; }
.mappa iframe { width: 100%; height: 100%; border: 0; display: block; }
.mappa-segnaposto {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
}
.mappa-nota { font-size: 12px; color: var(--grigio); }

.testo-lungo .titolo { margin-top: 30px; margin-bottom: 18px; }
.testo-lungo .titolo:first-child { margin-top: 0; }
button.link {
  border: 0; padding: 0; background: none; font: inherit; color: inherit;
  text-decoration: underline; cursor: pointer;
}

/* ── piede ────────────────────────────────────────────────── */
.piede { background: var(--nero); color: #fff; }
.piede-dentro {
  max-width: calc(var(--larghezza) + 40px); margin: 0 auto; padding: 40px 20px 20px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px;
}
.piede h2 {
  position: relative; font-family: var(--serif); font-size: 12px; font-weight: 600;
  text-transform: uppercase; padding-bottom: 12px; margin-bottom: 20px;
}
.piede h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; background: var(--oro); }
.piede ul { list-style: none; margin: 0; padding: 0; }
.piede a { text-decoration: none; }
.piede a:hover { color: var(--oro); }
.social { display: flex; gap: 8px; }
.social a {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--nero);
  display: flex; align-items: center; justify-content: center;
}
.social a:hover { background: var(--oro); color: #fff; }
.social svg { width: 18px; height: 18px; }
.contatti li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #333; font-size: 13px; }
.contatti svg {
  width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: #424242;
}
.link li { padding: 4px 0; font-size: 13px; }
.link button {
  border: 0; padding: 0; background: none; color: #fff; font: inherit; cursor: pointer;
}
.link button:hover { color: var(--oro); }
.piede-fondo {
  max-width: calc(var(--larghezza) + 40px); margin: 0 auto; padding: 20px;
  border-top: 1px solid #333; font-size: 11px;
}
.piede-fondo p { margin: 0; }

/* ── banner del consenso ──────────────────────────────────── */
.consenso {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 760px; margin: 0 auto; padding: 16px 20px;
  background: #fff; color: var(--testo); box-shadow: 0 4px 24px rgba(0, 0, 0, .3);
  display: flex; align-items: center; gap: 20px;
}
.consenso[hidden] { display: none; }
.consenso p { margin: 0; font-size: 13px; }
.consenso-bottoni { display: flex; gap: 8px; flex: none; }
.consenso button {
  padding: 9px 18px; border: 1px solid var(--nero); background: #fff; color: var(--nero);
  font-family: var(--serif); font-size: 12px; cursor: pointer;
}
.consenso .consenso-accetta { background: var(--nero); color: #fff; }

[hidden] { display: none !important; }

/* ── tablet e telefono ────────────────────────────────────── */
@media (max-width: 900px) {
  .menu-apri { display: flex; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
    background: var(--nero);
  }
  .testata.menu-aperto .menu { display: block; }
  .menu ul { flex-direction: column; }
  .menu li + li { border-left: 0; border-top: 1px solid #333; }
  .menu a { color: #fff; padding: 14px 20px; font-size: 13px; }
  .menu a[aria-current="page"] { color: var(--oro); }
  .menu a[aria-current="page"]::after { display: none; }
  .colonne-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galleria { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .piede-dentro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .barra-dentro { justify-content: center; height: auto; padding: 8px 16px; }
  .segnaposto { display: none; }
  .barra-contatti { flex-direction: column; gap: 2px; align-items: center; }
  .testata-dentro { min-height: 96px; padding: 0 16px; }
  .logo-nome { font-size: 26px; }
  .contenuto { padding: 36px 16px 20px; }
  .intestazione-pagina { min-height: 110px; }
  .intestazione-pagina h1 { padding: 0 16px; }
  .colonne-3, .colonne-2, .colonne-contatti, .piede-dentro { grid-template-columns: minmax(0, 1fr); }
  .galleria { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .slider { aspect-ratio: 4 / 3; }
  .slider-didascalia { left: 16px; right: 16px; bottom: 16px; }
  .didascalia-scura { font-size: 14px; }
  .didascalia-oro { font-size: 13px; }
  .slider button { width: 38px; height: 38px; font-size: 22px; }
  .slider-prima { left: 10px; }
  .slider-dopo { right: 10px; }
  .consenso { flex-direction: column; align-items: stretch; }
  .consenso-bottoni button { flex: 1; }
  .menu-voce .titolo { flex-wrap: wrap; }
}

/* Le foto oltre la dodicesima restano chiuse finché non si chiede di vederle:
   senza JavaScript si vedono tutte. */
.js .galleria .in-piu { display: none; }
.js .galleria.tutte .in-piu { display: block; }
.galleria-altre { text-align: center; margin-top: 20px; }
