/* ======================================================================
   STILE UNICO PAGINE INTERNE - V17
   Agriturismo + territorio. Un solo foglio, nessuna classe tecnica sul body.
   Valori consolidati dalle versioni V8 e dalle correzioni successive.
   ====================================================================== */

/* ------------------------------ BASE ---------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #FAF6ED;
}

body {
  margin: 0;
  padding: 0;
  background: #FAF6ED;
  color: #2b2115;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

#main {
  width: 100%;
  max-width: 70em;
  margin: 0 auto;
  background: #FAF6ED;
}

/* Le pagine agriturismo hanno già la testata .testata-sito: sfruttiamo
   quella struttura esistente per mantenere i 72em, senza classi sul body. */
.testata-sito ~ #main {
  max-width: 72em;
}

a {
  color: #0042FF;
}

a:hover {
  color: #7900B8;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 9px 13px;
  background: #fff;
  color: #111;
  font-weight: bold;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

/* ----------------------- TESTATA AGRITURISMO -------------------------- */
.testata-sito {
  position: relative;
  min-height: 0;
  padding: 8px max(4%, calc((100% - 72em) / 2)) 9px;
  background: #ebebeb;
  text-align: center;
}

.testata-identita {
  width: 100%;
  text-align: center;
}

.laT2 {
  color: #48370D;
  font-family: "Book Antiqua", "Times New Roman", Georgia, serif;
  font-weight: 700;
  text-align: center;
}

.testata-sito .laT2 {
  font-size: 1.45rem;
  line-height: 1.05;
}

.km {
  color: #005600;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-align: center;
}

.testata-sito .km {
  margin-top: 3px;
}

.testata-contatti {
  position: static;
  width: 100%;
  margin-top: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  font-weight: bold;
}

.contatto-telefono {
  display: flex;
  align-items: center;
  gap: 5px;
}

.home-testata {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid #0056b3;
  border-radius: 5px;
  background: #FFF4F4;
  color: #0000CC;
  font-size: 0.78rem;
  font-weight: bold;
  text-decoration: none;
}

/* ---------------------- BREADCRUMB TERRITORIO ------------------------- */
.menu_home {
  width: 84%;
  max-width: 58.8em;
  margin: 0.45em auto 1em;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  text-align: left;
  white-space: nowrap;
}

.menu_home .box,
.menu_home .nav-box {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  border: 1px solid #0056b3;
  border-radius: 6px;
  background: #FFF4F4;
}

.menu_home .home,
.menu_home .nav-box .home {
  min-height: 30px;
  margin: 0;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0000FF;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.80em;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.freccia-percorso {
  margin: 0 0.55em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #665F55;
  font-size: 1.12em;
  font-weight: bold;
  line-height: 1;
}

.pagina-corrente {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.16em 0.45em;
  border: 1px solid #b9aa88;
  border-radius: 5px;
  background: #f1eadc;
  color: #665F55;
  font-family: "Book Antiqua", "Times New Roman", Georgia, serif;
  font-size: 0.82rem;
  font-weight: bold;
  line-height: 1.1;
}

/* ----------------------------- TITOLI --------------------------------- */
h1,
h2,
.ph2 {
  color: #48370D;
  font-family: "Book Antiqua", "Times New Roman", Georgia, serif;
}

/* Titolo editoriale/territorio */
h1 {
  margin: 0 8% 1.7em;
  font-size: 1.8em;
  line-height: 1.12;
  text-align: left;
}

.sottotitolo-h1 {
  color: #D9006C;
  font-size: 0.72em;
  font-weight: normal;
  line-height: 1.2;
}

/* Titolo commerciale agriturismo: mantiene il trattamento V8. */
.titolo-pagina {
  text-align: center;
}

.titolo-pagina h1 {
  margin: 0.25em 4% 0.65em;
  font-size: 2rem;
  line-height: 1.12;
  text-align: center;
}

h2,
.ph2 {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}

/* --------------------------- TESTO CORRENTE --------------------------- */
.ph3 {
  margin-top: 0;
  margin-bottom: 0;
  color: #3B2C12;
  font-family: Arial, Helvetica, "Helvetica Neue", Verdana, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.48;
  text-align: left;
  vertical-align: top;
  text-indent: 2em;
}

/* Le pagine agriturismo hanno già #article: nessun rientro e spaziatura
   fra paragrafi come nella V8 separata. */
.testata-sito ~ #main #article .ph3 {
  margin-bottom: 0.85em;
  text-indent: 0;
}

p + p {
  margin-top: 0;
}

.ph3 br {
  display: block;
  content: "";
}

.ph3 br::after {
  content: "\a0\a0\a0\a0\a0\a0";
  display: inline;
}

.testata-sito ~ #main #article .ph3 br::after,
.no-rientro br::after,
.citazione br::after {
  content: none;
}

.no-rientro,
.no-rientro p {
  text-indent: 0 !important;
}

.citazione {
  margin: 15px 0;
  color: #48370D;
  font-family: Arial, Helvetica, Verdana, sans-serif;
  font-size: 0.95em;
  font-weight: bold;
  font-style: italic;
  text-indent: 0;
}

blockquote.ph3 {
  margin: 0 0 0.9em;
  padding: 0.65em 0.9em;
  border-left: 3px solid #D8C7A3;
  color: #48370D;
  font-style: italic;
  text-indent: 0;
}

blockquote.ph3 p {
  margin: 0;
  line-height: 1.48;
}

blockquote.ph3 cite {
  display: block;
  margin-top: 0.35em;
  font-size: 0.88em;
  font-style: normal;
}

.altcol,
span.altcol {
  color: #8F3A24;
  font-weight: 600;
  opacity: 1;
}

span.tit,
span.info_tit {
  color: #FF4071;
  font-family: Arial, Helvetica, Verdana, sans-serif;
  font-size: 0.95em;
  font-weight: bold;
}

span.testo,
span.info_testo {
  color: #120700;
  font-family: Arial, Helvetica, Verdana, sans-serif;
  font-weight: bold;
  line-height: 1.35;
  text-align: justify;
}

span.testo { font-size: 0.95em; }
span.info_testo { font-size: 0.85em; }

span.argcor {
  color: #8A8580;
  font-family: "Comic Sans MS", "Times New Roman", sans-serif;
  font-size: 1em;
}

.aggiornamento {
  margin-top: 1.2em !important;
}

/* --------------------------- CORPO PAGINA ----------------------------- */
#contenuto,
#article {
  width: 100%;
}

#article {
  padding: 0.4em 0 1em;
}

.par-oriz-1 {
  width: 100%;
  margin: 2.2em 0 3em;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  clear: both;
}

article > section.par-oriz-1:first-of-type {
  margin-top: 0.5em;
}

.par-oriz-1 h2 {
  width: 100%;
  margin: 0 8% 0.65em;
}

.sx {
  width: 38%;
  margin-left: 7%;
  margin-right: 2%;
}

.dx {
  width: 40%;
  margin-left: 2%;
  margin-right: 7%;
  margin-top: 0;
}

.sx p:first-of-type {
  margin-top: 0;
}

/* Ritmo specifico delle pagine agriturismo. */
.testata-sito ~ #main #article .par-oriz-1 {
  margin-top: 0.6em;
  margin-bottom: 2.6em;
}

.testata-sito ~ #main #article .par-oriz-1 h2 {
  margin-bottom: 0.65em;
}

.unico {
  width: 68%;
  max-width: 780px;
  margin: 0 auto;
}

.introduzione {
  margin-top: 0.7em !important;
  margin-bottom: 2em !important;
}

.introduzione .unico {
  padding: 0.9em 1.2em;
  border-left: 3px solid #D8C7A3;
}

.chiusura {
  margin-bottom: 1.6em !important;
}

.chiusura .unico {
  padding-top: 0.7em;
  border-top: 1px solid #D8C7A3;
}

.chiusura h2 {
  margin: 0 0 0.55em;
}

/* ------------------------------ FOTO ---------------------------------- */
figure {
  margin: 0;
  padding: 0;
  display: block;
}

figure img {
  max-width: 100%;
  height: auto;
  display: block;
}

.dx figure {
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.dx img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 5px;
}

.dx img.foto-verticale {
  width: auto;
  max-width: 327px;
  margin-left: auto;
  margin-right: auto;
}

.testata-sito ~ #main #article .dx img {
  width: 100%;
  max-width: 440px;
}

section.par-oriz-1 figcaption {
  margin-top: 7px;
  color: #2b2115;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.88em;
  font-weight: 500;
  font-style: normal;
  line-height: 1.4;
  text-align: left;
}

.testata-sito ~ #main #article section.par-oriz-1 figcaption {
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
}

.foto {
  margin-bottom: 15px;
}

figure.foto25 {
  float: left;
  width: 22%;
  margin-right: 3%;
  margin-bottom: 2.5em;
}

figure.foto33 {
  float: left;
  width: 30%;
  margin-right: 5%;
  margin-bottom: 2.5em;
}

figure.foto50 {
  float: left;
  width: 46%;
  margin-right: 8%;
  margin-bottom: 2.5em;
}

figure.foto25:last-child,
figure.foto33:last-child,
figure.foto50:last-child {
  margin-right: 0;
}

figure.foto25 figcaption,
figure.foto33 figcaption,
figure.foto50 figcaption {
  margin-top: 7px;
  color: #2b2115;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* ---------------------- CTA TERRITORIO / DANTE ------------------------ */
.foto-prenota {
  position: relative;
  display: block;
  width: 100%;
  max-width: 440px;
  text-decoration: none;
}

.foto-prenota img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.foto-prenota span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0.65em 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0F568D;
  border-radius: 8px;
  background: #1769AA;
  color: #FFFFFF;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
  font-weight: bold;
  white-space: nowrap;
}

.foto-prenota:hover span,
.foto-prenota:focus-visible span {
  background: #0F568D;
  color: #FFFFFF;
}

/* ------------------------ WIDGET AGRITURISMO -------------------------- */
.booking-box {
  width: min(760px, 88%);
  margin: 0.55em auto 2.05em;
  padding: 9px 14px 11px;
  border: 1px solid #B7CBE0;
  border-radius: 10px;
  background: #EEF4FA;
  box-shadow: 0 3px 10px rgba(86, 66, 17, 0.16);
}

.booking-box form {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 9px;
}

.booking-box .campo {
  display: flex;
  flex-direction: column;
}

.booking-box label {
  margin-bottom: 2px;
  color: #564211;
  font-size: 0.80rem;
  font-weight: bold;
}

.booking-box input,
.booking-box select {
  height: 40px;
  padding: 0 8px;
  border: 1px solid #9A8354;
  border-radius: 6px;
  background: #fff;
  color: #564211;
  font: inherit;
  font-size: 0.80rem;
}

.booking-box input { width: 140px; }
.booking-box select { width: 160px; }

.booking-box button {
  height: 40px;
  min-height: 40px;
  padding: 0 24px;
  border: 1px solid #004987;
  border-radius: 7px;
  background: #0057A8;
  color: #FFFFFF;
  font: inherit;
  font-size: 0.94rem;
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.booking-box button:hover,
.booking-box button:focus-visible {
  background: #003F7D;
  color: #FFFFFF;
}

/* ------------------- NAV AGRITURISMO SUPERIORE/FINALE ----------------- */
.menu-sezioni {
  width: 86%;
  max-width: 61.92em;
  margin: 7px auto 12px;
  padding-top: 0;
  display: grid;
  grid-template-columns: 1.18fr 0.92fr 0.78fr 1.04fr 1.10fr 0.98fr 0.90fr;
  gap: 6px;
  align-items: stretch;
  border-top: 0;
}

.menu-sezioni a {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 5px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0056b3;
  border-radius: 5px;
  background: #FFF4F4;
  color: #0000CC;
  font-size: 0.73rem;
  font-weight: bold;
  line-height: 1.08;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.menu-sezioni .corrente {
  border-color: #b9aa88;
  background: #f1eadc;
  color: #665F55;
}

.menu-sezioni-footer {
  margin-top: 18px;
  margin-bottom: 10px;
  padding-top: 10px;
  border-top: 1px solid #C9C9C9;
}

/* ---------------------- NAV TERRITORIO FINALE ------------------------- */
.nav {
  clear: both;
  width: 86%;
  max-width: 61.92em;
  margin: 18px auto 10px;
  padding: 0;
  display: grid;
  grid-template-columns: 1.18fr 0.92fr 0.78fr 1.04fr 1.10fr 0.98fr 0.90fr;
  gap: 6px;
  align-items: stretch;
  text-align: center;
}

.nav .linea {
  grid-column: 1 / -1;
  width: 100%;
  height: 0;
  margin: 0 0 4px;
  border: 0;
  border-top: 1px solid #C9C9C9;
}

.nav .box {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nav .lin {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 5px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0056b3;
  border-radius: 5px;
  background: #FFF4F4;
  color: #0000CC;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.73rem;
  font-weight: bold;
  line-height: 1.08;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

/* ----------------------- CTA MOBILE AGRITURISMO ----------------------- */
.cta-mobile-prenota {
  display: none;
}

.cta-mobile-prenota a {
  background: #0057A8;
  font-size: 0.92rem;
  color: #FFFFFF;
  border: 1px solid #004987;
}

.cta-mobile-prenota a:hover,
.cta-mobile-prenota a:focus-visible {
  background: #003F7D;
  color: #FFFFFF;
}

/* ------------------------------- FOOTER ------------------------------- */
#footer {
  width: 100%;
  min-height: 0;
  padding: 12px 4% 13px;
  border-top: 0;
  background: #ebebeb;
  color: #665F55;
  text-align: center;
}

#main > #footer {
  padding-bottom: 3px;
}

#footer .laT2 {
  width: 100%;
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.05;
  font-weight: 700;
}

#main > #footer .laT2 {
  line-height: 1.12;
}

#footer .ind {
  width: 100%;
  margin: 4px 0 0;
  color: #005600;
  font-size: 0.78rem;
  font-weight: 400;
  text-align: center;
}

.ind .azienda,
.ind .indirizzo {
  display: block;
  width: 100%;
  text-align: center;
}

.ind .azienda {
  margin-bottom: 0.22em;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-contatti {
  width: 100%;
  margin-top: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.tel2 {
  color: #C00060;
  font-weight: 700;
}

#footer .tel2,
#footer .mail {
  width: auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
}

#footer .tel2 {
  color: #C00060;
  font-weight: 600;
}

#footer .mail {
  font-weight: 400;
}

.tel2 a,
.tel2 a:link,
.tel2 a:visited,
.tel2 a:hover,
.tel2 a:focus,
.tel2 a:active {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.mail a,
.mail a:link,
.mail a:visited,
.mail a:focus,
.mail a:active {
  color: #0042FF;
  font-size: inherit;
  text-decoration: none;
}

.mail a:hover {
  color: #7900B8;
  text-decoration: underline;
}

.tel2 .telefono-icona,
.tel2 .icona-telefono,
.icona-telefono {
  width: 22px;
  height: 22px;
  margin-right: 6px;
  object-fit: contain;
  vertical-align: middle;
  flex: 0 0 auto;
}

#footer .cin,
.cin {
  margin-top: 5px;
  color: #564211;
  font-size: 0.75rem;
}

.crediti-esterni {
  width: 100%;
  margin-top: 7px;
  color: #665F55;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-weight: normal;
  text-align: center;
}

.crediti-esterni .copyright,
.crediti-esterni .ricerche-storiche {
  font-size: 0.75rem;
  line-height: 1.35;
}

.crediti-esterni .ricerche-storiche {
  margin-top: 3px;
}

.webmaster {
  margin: 5px 0 0;
  padding-bottom: 0;
  color: #665F55;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: normal;
  text-align: center;
}

.spazio-cookie {
  width: 100%;
  height: 57px;
  clear: both;
}

.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 9999;
  width: 100%;
  padding: 6px 15px;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 15px;
  background: #222;
  color: #fff;
  font-family: sans-serif;
  font-size: 12px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-banner-testo {
  text-align: center;
}

.cookie-banner a {
  margin-left: 5px;
  color: #ff5e97;
  text-decoration: underline;
}

.cookie-banner button {
  min-height: 32px;
  padding: 4px 12px;
  border: 0;
  border-radius: 3px;
  background: #D9006C;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
}

/* --------------------- COMPATIBILITA CLASSI STORICHE ------------------ */
.flex {
  max-width: 100%;
  text-align: center;
}

.linea {
  border-top: 1px solid #808080;
}

.dxbis {
  margin-left: 4%;
  margin-top: 0.2em;
}

.img {
  max-width: 100%;
  height: auto;
}

.fotoban {
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5em;
}

#aside {
  width: 100%;
  padding-top: 8px;
  background: #FCFC8D;
  color: #120700;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 0.80em;
  font-weight: bold;
}

.formcolsx {
  width: 30%;
  float: left;
}

.formcolcen {
  width: 65%;
  margin-left: 2%;
  margin-bottom: 8px;
  float: left;
}

#aside textarea {
  width: 90%;
  height: 90px;
  margin-bottom: 8px;
}

/* ----------------------------- TABLET -------------------------------- */
@media (min-width: 901px) {
  .menu-sezioni a,
  .nav .lin {
    min-height: 38px;
    font-size: 0.82rem;
  }

  .menu_home .home {
    min-height: 38px;
    font-size: 0.82rem;
  }

  .pagina-corrente {
    min-height: 34px;
    padding: 0.12em 0.35em;
    font-size: 0.76rem;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .menu-sezioni {
    width: min(1080px, 96%);
    max-width: 1080px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
  }

  .menu-sezioni a {
    width: auto;
    flex: 0 0 auto;
    padding: 5px 13px;
  }

  .menu-sezioni a.nav-media {
    padding-left: 9px;
    padding-right: 9px;
  }

  .menu-sezioni a.nav-lunga {
    padding-left: 6px;
    padding-right: 6px;
  }
}

@media (min-width: 769px) {
  .home-testata {
    min-width: 72px;
    padding-left: 17px;
    padding-right: 17px;
  }

  .testata-sito ~ #main .booking-box {
    margin-bottom: 2.45em;
  }

  .menu_home {
    margin-bottom: 1.5em;
  }

  .menu_home .box,
  .menu_home .nav-box {
    border-radius: 8px;
    overflow: hidden;
  }
}

/* ------------------------------ MOBILE -------------------------------- */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    background: #FAF6ED;
  }

  #main {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 0;
  }


  /* Testata agriturismo */
  .testata-sito {
    padding: 8px 4% 9px;
  }

  .testata-sito .laT2 {
    font-size: 1.38rem;
  }

  .testata-sito .km {
    font-size: 0.72rem;
  }

  .testata-contatti {
    margin-top: 7px;
    flex-wrap: wrap;
    gap: 7px 12px;
  }

  .contatto-telefono,
  .testata-contatti .mail,
  .home-testata {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Breadcrumb territorio */
  .menu_home {
    width: 92%;
    max-width: none;
    margin: 0.35em 4% 0.85em;
    justify-content: center;
    gap: 0.22em;
  }

  .menu_home .box,
  .menu_home .nav-box {
    min-height: 44px;
  }

  .menu_home .home,
  .menu_home .nav-box .home {
    min-height: 44px;
    padding: 0.28em 0.58em;
    font-size: 0.86em;
    line-height: 1.15;
  }

  .freccia-percorso {
    margin: 0 0.04em;
    font-size: 0.92em;
  }

  .menu_home .pagina-corrente,
  .menu_home .freccia-percorso:nth-of-type(2) {
    display: none;
  }

  /* Titoli */
  h1 {
    width: 92%;
    margin: 0 4% 1.25em;
    font-size: 1.62em;
  }

  .sottotitolo-h1 {
    font-size: 0.68em;
  }

  .titolo-pagina {
    margin-top: 0;
  }

  .titolo-pagina h1 {
    width: auto;
    margin: 0.25em 3% 0.65em;
    font-size: 1.55rem;
    text-align: center;
  }

  h2,
  .ph2 {
    font-size: 1.32rem;
  }

  /* Testo */
  .ph3 {
    font-size: 1.02rem;
    line-height: 1.48;
    font-weight: 600;
    text-align: left;
    text-indent: 1.5em;
  }

  .testata-sito ~ #main #article .ph3 {
    margin-bottom: 0.85em;
    text-indent: 0;
  }

  /* Struttura */
  .par-oriz-1,
  .testata-sito ~ #main #article .par-oriz-1 {
    width: 100%;
    margin-top: 0.7em;
    margin-bottom: 2.2em;
    display: block;
  }

  article > section.par-oriz-1:first-of-type {
    margin-top: 0.5em;
  }

  .par-oriz-1 h2 {
    width: 92%;
    margin: 0 4% 0.65em;
  }

  .testata-sito ~ #main #article .par-oriz-1 h2 {
    width: auto;
    margin: 0 4% 0.65em;
  }

  .unico {
    width: auto;
    max-width: none;
    margin-left: 4%;
    margin-right: 4%;
  }

  .par-oriz-1 .sx,
  .par-oriz-1 .dx {
    width: 92%;
    max-width: 100%;
    margin-left: 4%;
    margin-right: 4%;
  }

  .par-oriz-1 .dx {
    margin-top: 0;
  }

  .testata-sito ~ #main #article .sx,
  .testata-sito ~ #main #article .dx {
    width: auto;
    max-width: none;
  }

  .testata-sito ~ #main #article .dx {
    margin-top: 0.8em;
  }

  .introduzione .unico {
    padding: 0.7em 0.8em;
  }

  /* Foto */
  .dx figure {
    max-width: 100%;
  }

  .dx img,
  .dx img.foto-verticale {
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  main:not(#contenuto) section.par-oriz-1 figure {
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
    text-align: center;
  }

  section.par-oriz-1 figcaption {
    padding: 0;
    font-size: 0.95em;
    line-height: 1.38;
    text-align: left;
  }

  .testata-sito ~ #main #article section.par-oriz-1 figcaption {
    padding: 0;
    font-size: 0.90rem;
    line-height: 1.35;
  }

  figure.foto25,
  figure.foto33,
  figure.foto50 {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 2em;
    float: none;
    text-align: center;
  }

  figure.foto25 img,
  figure.foto33 img,
  figure.foto50 img {
    max-width: 100%;
    display: inline-block;
  }

  figure.foto25 figcaption,
  figure.foto33 figcaption,
  figure.foto50 figcaption {
    padding: 0 15px;
    text-align: center;
  }

  /* Widget agriturismo compatto e visibile */
  .booking-box {
    width: 92%;
    margin: 0.45em auto 1.55em;
    padding: 8px 9px 9px;
    border-radius: 8px;
  }

  .booking-box form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px 8px;
    align-items: end;
  }

  .booking-box .campo {
    min-width: 0;
  }

  .booking-box label {
    margin-bottom: 2px;
    font-size: 0.75rem;
  }

  .booking-box input,
  .booking-box select {
    width: 100%;
    min-width: 0;
    height: 42px;
    min-height: 44px;
    padding: 0 6px;
    font-size: 0.82rem;
  }

  .booking-box button {
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 0 7px;
    font-size: 0.88rem;
    letter-spacing: 0.025em;
  }

  /* Menu alto agriturismo nascosto; menu finale in colonna. */
  .menu-sezioni:not(.menu-sezioni-footer) {
    display: none;
  }

  .menu-sezioni-footer {
    width: 100%;
    max-width: none;
    margin: 14px auto 11px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    border-top: 0;
  }

  .menu-sezioni-footer a,
  .menu-sezioni-footer a.nav-media,
  .menu-sezioni-footer a.nav-lunga {
    width: 285px;
    max-width: calc(100% - 24px);
    min-height: 46px;
    padding: 8px 10px;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  /* CTA PRENOTA ORA dopo l'articolo */
  .cta-mobile-prenota {
    width: 92%;
    margin: 0.8em auto 1.2em;
    display: block;
    text-align: center;
  }

  .cta-mobile-prenota a {
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    display: block;
    border-radius: 7px;
    font-size: 0.92rem;
    font-weight: bold;
    letter-spacing: 0.025em;
    text-decoration: none;
  }

  /* Navigazione finale territorio */
  .nav {
    width: 100%;
    max-width: none;
    margin: 14px auto 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
  }

  .nav .linea {
    display: none;
  }

  .nav .box {
    width: 285px;
    max-width: calc(100% - 24px);
  }

  .nav .lin {
    width: 100%;
    min-height: 46px;
    padding: 8px 10px;
    font-size: 0.82rem;
    line-height: 1.15;
  }

  /* Footer */
  #footer {
    padding: 12px 4% 15px;
  }

  #main > #footer {
    padding: 11px 4% 12px;
  }

  #footer .laT2 {
    font-size: 1.35rem;
    line-height: 1.05;
  }

  #main > #footer .laT2 {
    line-height: 1.12;
  }

  #footer .tel2,
  #footer .mail {
    min-height: 44px;
  }

  .footer-contatti {
    gap: 4px 14px;
  }

  .tel2 .telefono-icona,
  .tel2 .icona-telefono,
  .icona-telefono {
    width: 25px;
    height: 25px;
  }

  .crediti-esterni {
    padding: 0 4%;
  }

  .spazio-cookie {
    height: 78px;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    text-align: center;
  }

  .cookie-banner button {
    min-height: 44px;
    padding-inline: 12px;
  }

  .webmaster {
    margin-bottom: 0;
  }

  /* Compatibilità moduli storici */
  .formcolsx,
  .formcolcen {
    width: 100%;
    margin-left: 0;
    float: none;
  }

  #aside {
    margin-bottom: 50px;
    font-size: 1em;
  }
}
