/* ==========================================================================
   Val d'Elsa Viaggi — Bus Service
   "Album di viaggio": foto stampate con bordo bianco, verde bosco, rosso, carta.
   by AleMar Web srl
   ========================================================================== */

:root {
  --carta: #f3ece0;
  --carta-2: #ebe1cf;
  --carta-chiara: #f9f5ec;
  --bianco: #fffdf9;
  --verde: #2f5a45;
  --verde-d: #1f3e2f;
  --verde-tint: #dfe9e2;
  --rosso: #b23a2e;
  --rosso-d: #8f2c22;
  --sole: #ffd27a;
  --sole-d: #f4bd4f;
  --ink: #2a2622;
  --ink-2: #57504a;
  --rule: #d6cab6;
  --field-border: #9a8f80;
  --error: #b3261e;
  --rosso-tint: #fbe3df;
  --verde-line: #3d5f4d;
  --on-dark: #f6f1e8;
  --on-dark-2: #cfdcd3;

  --f-head: "Zilla Slab", Rockwell, Georgia, serif;
  --f-body: "Mulish", "Segoe UI", Verdana, sans-serif;
  --f-hand: "Caveat", "Comic Sans MS", cursive;

  --wrap: 77rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --sec: clamp(3.5rem, 7vw, 6rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --print-shadow: 0 .9rem 1.8rem -1rem rgba(42, 38, 34, .45), 0 .15rem .4rem rgba(42, 38, 34, .12);

  /* Bootstrap: valori di base riportati alla grafica del sito */
  --bs-body-font-family: var(--f-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--carta);
  --bs-heading-color: var(--verde-d);
  --bs-link-color: var(--rosso);
  --bs-link-color-rgb: 178, 58, 46;
  --bs-link-hover-color: var(--rosso-d);
  --bs-link-hover-color-rgb: 143, 44, 34;
  --bs-border-color: var(--rule);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--carta);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1.125rem, 1rem + .35vw, 1.25rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; color: var(--verde-d); }
h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem); }
p { margin: 0 0 1em; }
a { color: var(--rosso); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--rosso-d); }
strong { font-weight: 800; }
::selection { background: var(--verde); color: #fff; }
:focus-visible { outline: 3px solid var(--rosso); outline-offset: 3px; border-radius: 2px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
/* riga a due colonne: da lg affiancate a distanza --spazio, sotto impilate con lo stesso spazio verticale */
.row-due { --spazio: clamp(2rem, 5vw, 4.5rem); --bs-gutter-x: 0; --bs-gutter-y: var(--spazio); }
@media (min-width: 992px) { .row-due { --bs-gutter-x: var(--spazio); } }

.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--verde-d); color: #fff; padding: .75rem 1.25rem; font-weight: 800; }
.skip-link:focus { top: 1rem; }
.skip-link:hover { color: #fff; }

/* ---------- barra contatti e testata ---------- */
.topbar { background: var(--verde-d); color: #fff; font-size: 1.1rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar :focus-visible { outline-color: var(--sole); }
.topbar-in { min-height: 3rem; }
.topbar-contacts { gap: .25rem 1.75rem; }
.topbar-contacts a { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem 0; }
.topbar .lang { font-weight: 800; display: inline-flex; align-items: center; gap: .5rem; }
.flag { width: 1.6rem; height: auto; aspect-ratio: 2 / 1; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.flag[viewBox="0 0 3 2"] { aspect-ratio: 3 / 2; width: 1.35rem; }

.masthead { background: var(--bianco); box-shadow: 0 2px 0 var(--rule); position: relative; z-index: 5; }
/* navbar di Bootstrap: menu orizzontale da lg, a scomparsa sotto */
.masthead { --bs-navbar-nav-link-padding-x: 0; --bs-nav-link-padding-y: .5rem; }
.masthead-in { gap: 1.5rem; min-height: 6.25rem; padding-top: .75rem; }
.brand img { width: clamp(18.5rem, 30vw, 24rem); height: auto; }
.mainnav .navbar-nav { gap: clamp(1rem, 2.4vw, 2.25rem); }
.mainnav .nav-link { color: var(--ink); font-weight: 800; font-size: 1.3rem; border-bottom: 3px solid transparent; transition: none; }
.mainnav .nav-link:hover { color: var(--rosso); }
.mainnav .nav-link[aria-current="page"] { color: var(--rosso); border-bottom-color: var(--rosso); }
.mainnav .nav-link:focus-visible, .masthead .menu-btn:focus-visible { outline: 3px solid var(--rosso); outline-offset: 3px; box-shadow: none; }
.masthead .menu-btn:focus { box-shadow: none; }
.menu-btn { display: none; }
html:not(.js) #mainnav { display: block; }

/* ---------- pulsanti ---------- */
/* .btn di Bootstrap con le misure del sito; le varianti impostano solo i colori */
.btn {
  --bs-btn-padding-x: 1.5rem; --bs-btn-padding-y: .75rem;
  --bs-btn-font-family: var(--f-body); --bs-btn-font-size: 1.15rem; --bs-btn-font-weight: 800; --bs-btn-line-height: 1.3;
  --bs-btn-border-width: 2px; --bs-btn-border-radius: 8px;
  --bs-btn-focus-box-shadow: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.5rem;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--rosso); outline-offset: 3px; }
.btn-red, .btn-sun, .btn-ghost, .btn-line {
  --bs-btn-active-color: var(--bs-btn-hover-color); --bs-btn-active-bg: var(--bs-btn-hover-bg); --bs-btn-active-border-color: var(--bs-btn-hover-border-color);
}
.btn-red { --bs-btn-color: #fff; --bs-btn-bg: var(--rosso); --bs-btn-border-color: var(--rosso); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--rosso-d); --bs-btn-hover-border-color: var(--rosso-d); }
.btn-sun { --bs-btn-color: var(--ink); --bs-btn-bg: var(--sole); --bs-btn-border-color: var(--sole); --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--sole-d); --bs-btn-hover-border-color: var(--sole-d); }
.btn-ghost { --bs-btn-color: #fff; --bs-btn-bg: transparent; --bs-btn-border-color: #fff; --bs-btn-hover-color: var(--verde-d); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff; }
.btn-line { --bs-btn-color: var(--verde-d); --bs-btn-bg: var(--bianco); --bs-btn-border-color: var(--verde); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--verde); --bs-btn-hover-border-color: var(--verde); }
.btn-big { --bs-btn-font-size: 1.25rem; --bs-btn-padding-x: 1.9rem; min-height: 4rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }

/* ---------- la "stampa": foto con bordo bianco ---------- */
.print { background: var(--bianco); padding: .75rem; box-shadow: var(--print-shadow); position: relative; transition: transform .5s var(--ease); }
.print img { width: 100%; }
.tape {
  position: absolute; top: -.9rem; left: 50%; width: 7rem; height: 1.8rem; margin-left: -3.5rem; z-index: 3;
  background: rgba(255, 226, 150, .82); transform: rotate(-3deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.note-hand { font-family: var(--f-hand); font-weight: 700; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1; margin: 0 0 .25rem; color: var(--sole); transform: rotate(-2deg); transform-origin: left; }
.note-hand--red { color: var(--rosso); }

/* ---------- apertura (home) ---------- */
.opening { background: var(--verde); color: #fff; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3.5rem, 6vw, 5.5rem); overflow: hidden; }
.opening h1 { color: #fff; }
.opening-lead { font-size: 1.3rem; color: var(--on-dark); max-width: 32em; }
.opening .btn-row { margin-top: 1.75rem; display: inline-grid; grid-template-columns: 1fr 1fr; }
.opening .btn-row .btn { white-space: nowrap; padding-inline: 1.4rem; }
.opening :focus-visible { outline-color: var(--sole); }

.print--hero { padding: 1rem 1rem 0; transform: rotate(1.2deg); }
/* carousel carousel-fade di Bootstrap, dissolvenza di 1,2 s */
.hero-slides { aspect-ratio: 3 / 2; background: var(--carta-2); }
.hero-slide { height: 100%; }
.carousel-fade .hero-slide { transition-duration: 1.2s; transition-timing-function: ease; }
.carousel-fade .hero-slide.active.carousel-item-start, .carousel-fade .hero-slide.active.carousel-item-end { transition: opacity 0s 1.2s; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-controls { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .9rem 0 1rem; flex-wrap: wrap; }
.hero-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 3.25rem; min-height: 3.25rem; padding: 0 1rem;
  background: var(--bianco); color: var(--verde-d); border: 2px solid var(--verde); border-radius: 999px; font: 800 1.05rem var(--f-body); cursor: pointer;
}
.hero-btn:hover { background: var(--verde); color: #fff; }
.hero-dots { display: flex; gap: .35rem; }
.hero-dot { width: 2.75rem; height: 2.75rem; border: 0; background: transparent; cursor: pointer; padding: 0; display: grid; place-items: center; }
.hero-dot::before { content: ""; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 3px solid var(--verde); background: var(--bianco); transition: background-color .2s; }
.hero-dot:hover::before { background: var(--verde-tint); }
.hero-dot[aria-current="true"]::before { background: var(--verde); }

/* ---------- sezioni ---------- */
.sec { padding: var(--sec) 0; }
.sec-white { background: var(--carta-chiara); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 2.25rem; }
.sec-head h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; font-size: 1.15rem; }
.more .ico { transition: transform .3s var(--ease); }
.more:hover .ico { transform: translateX(.3rem); }
.sec-intro { font-size: 1.25rem; color: var(--ink-2); max-width: 44em; margin-top: -1rem; margin-bottom: 2.25rem; }
.prose { max-width: 40em; }
.prose p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-2); }

/* schede-foto */
.cards { --bs-gutter-x: clamp(1.5rem, 3vw, 2.5rem); --bs-gutter-y: var(--bs-gutter-x); margin-bottom: 0; }
.cards > .col > .print { height: 100%; }
.print--card { padding: .8rem .8rem 1.4rem; }
.print--card a { color: inherit; text-decoration: none; display: block; }
.print--card img { aspect-ratio: 4 / 3; object-fit: cover; }
.print--card h3 { color: var(--rosso); margin: 1.1rem .4rem .35rem; }
.print--card p { margin: 0 .4rem; font-size: 1.1rem; color: var(--ink-2); }
/* rotazione e hover sulla stampa (che ha la transizione), non sulla colonna di Bootstrap */
.cards > :nth-child(odd) > .print { transform: rotate(-1deg); }
.cards > :nth-child(even) > .print { transform: rotate(.9deg); }
.cards > .col > .print:hover, .album > .col > .print:hover { transform: rotate(0) translateY(-4px); }
.print--card a:hover h3 { text-decoration: underline; text-underline-offset: .15em; }

/* chi siamo */
.about { --spazio: clamp(2.5rem, 6vw, 5rem); }
.about-photos { position: relative; padding-bottom: 4rem; }
.print--big { transform: rotate(-1.5deg); }
.print--big img { aspect-ratio: 3 / 2; object-fit: cover; }
.print--small { position: absolute; width: 48%; right: -.5rem; bottom: 0; transform: rotate(2deg); }
.print--small img { aspect-ratio: 4 / 3; object-fit: cover; }

/* fascia verde mezzi */
.band-green { background: var(--verde); color: #fff; }
.band-green h2 { color: #fff; }
.band-green .more { color: var(--sole); }
.band-green :focus-visible { outline-color: var(--sole); }
.fleet-card { display: block; color: var(--ink); text-decoration: none; }
.fleet-card img { aspect-ratio: 3 / 2; object-fit: cover; }
.band-note { margin: 2.5rem auto 0; text-align: center; max-width: 52em; font-size: 1.15rem; color: var(--on-dark-2); }

/* album di foto */
.album { --bs-gutter-x: clamp(1rem, 2.5vw, 2rem); --bs-gutter-y: var(--bs-gutter-x); }
.print--photo { display: block; padding: .6rem; }
.print--photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.album > :nth-child(3n+1) > .print { transform: rotate(-1.4deg); }
.album > :nth-child(3n+2) > .print { transform: rotate(.8deg); }
.album > :nth-child(3n) > .print { transform: rotate(1.6deg); }

/* dove siamo */
.addr { display: flex; gap: .5rem; align-items: flex-start; font-weight: 800; }
.addr .ico { color: var(--rosso); margin-top: .3rem; }
.print--map { transform: rotate(1.2deg); padding: 1.5rem; }
.route-map { width: 100%; max-width: 30rem; margin-inline: auto; display: block; }
.rm-road { fill: none; stroke: var(--verde); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.rm-dot { fill: var(--verde-d); }
.rm-home { fill: var(--rosso); stroke: #fff; stroke-width: 4; }
.route-map text { fill: var(--ink); font: 800 20px var(--f-body); }
.route-map .rm-home-label { font: 700 28px var(--f-head); fill: var(--rosso); }

/* fascia informazioni */
.info { background: var(--rosso); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0; text-align: center; }
.info h2 { color: #fff; margin-bottom: .3em; }
.info-sub { font-size: 1.25rem; color: var(--rosso-tint); margin-bottom: 1.25rem; }
.info-tel { display: inline-flex; align-items: center; gap: .6rem; font: 700 clamp(2.4rem, 1.8rem + 2.5vw, 3.6rem)/1.1 var(--f-head); color: #fff; text-decoration: none; }
.info-tel .ico { width: .75em; height: .75em; }
.info-tel:hover { color: var(--sole); }
.info-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; font-size: 1.15rem; }
.info-list li, .info-list a { display: inline-flex; align-items: center; gap: .5rem; color: #fff; }
.info-list a:hover { color: var(--sole); }
.info :focus-visible { outline-color: var(--sole); }

/* ---------- titolo pagine interne ---------- */
.pagetitle { background: var(--verde); color: #fff; padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.pagetitle h1 { color: #fff; }
.pagetitle-in { --spazio: clamp(2rem, 5vw, 4rem); }
.pt-lead { font-size: 1.2rem; color: var(--on-dark); max-width: 44em; }
.pt-lead p:last-child { margin-bottom: 0; }
.print--title { transform: rotate(2deg); }
.print--title img { aspect-ratio: 3 / 2; object-fit: cover; }
/* breadcrumb di Bootstrap */
.crumbs { --bs-breadcrumb-margin-bottom: 1rem; --bs-breadcrumb-font-size: 1.05rem; --bs-breadcrumb-item-padding-x: .4rem;
  --bs-breadcrumb-divider-color: var(--on-dark-2); --bs-breadcrumb-item-active-color: #fff; }
.crumbs .breadcrumb-item + .breadcrumb-item::before { padding-right: .25rem; font-weight: 400; }
.crumbs a { color: var(--sole); }
.crumbs [aria-current] { color: #fff; font-weight: 800; }
.pagetitle :focus-visible { outline-color: var(--sole); }

/* ---------- servizi ---------- */
.svc img { aspect-ratio: 975 / 275; }
.svc h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); }
.pay { background: var(--bianco); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--print-shadow); }
.pay p { max-width: 44em; }
.pay-list { display: flex; flex-wrap: wrap; gap: .75rem 2rem; list-style: none; margin: 1.25rem 0 0; padding: 0; font-weight: 800; font-size: 1.2rem; }
.pay-list li { display: inline-flex; align-items: center; gap: .5rem; }
.pay-list .ico { color: var(--verde); }

/* ---------- automezzi ---------- */
.vehicles { display: grid; gap: var(--sec); }
.vehicle { --spazio: clamp(2rem, 4vw, 4rem); }
.vehicle:nth-child(even) .vehicle-photo { transform: rotate(1.2deg); }
.vehicle-photo { transform: rotate(-1.2deg); }
.vehicle-photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; margin-bottom: 2rem; }
.spec-table th, .spec-table td { text-align: left; padding: .9rem .75rem .9rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec-table th { width: 8rem; font-family: var(--f-head); font-weight: 600; color: var(--ink-2); font-size: 1.2rem; }
.spec-table td { font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.vehicle h3 { color: var(--rosso); }
.ticks { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.ticks .ico { color: var(--verde); margin-top: .25rem; }

/* ---------- contatti ---------- */
.map-frame { background: var(--bianco); position: relative; min-height: 26rem; padding: .75rem; box-shadow: var(--print-shadow); }
.map-frame iframe { position: relative; display: block; width: 100%; height: 24.5rem; border: 0; }
.contact-grid { --spazio: clamp(2rem, 4vw, 3.5rem); }
.form { background: var(--bianco); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.4rem; box-shadow: var(--print-shadow); border-top: 6px solid var(--rosso); }
.form h3 { margin: 0; }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field label { font-weight: 800; font-size: 1.15rem; }
.req { color: var(--rosso); }
.form input[type=text], .form input[type=tel], .form input[type=email], .form textarea {
  width: 100%; font: inherit; font-size: 1.2rem; color: var(--ink);
  background: #fff; border: 2px solid var(--field-border); border-radius: 6px; padding: .8rem 1rem; min-height: 3.5rem;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--verde); outline: 3px solid var(--verde); outline-offset: 2px; background: #fbfdfb; }
.form input:user-invalid, .form textarea:user-invalid { border-color: var(--error); }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: 1.1rem; }
.check input { width: 1.6rem; height: 1.6rem; margin: .1rem 0 0; accent-color: var(--verde); flex: none; }
.captcha-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.captcha-row img { border: 1px solid var(--rule); background: #fff; }
.captcha-row input { max-width: 14rem; }
.form .btn-big { justify-self: start; }
.contact-side h3 { font-size: 1.3rem; color: var(--rosso); border-top: 1px solid var(--rule); padding-top: 1rem; margin: 1.5rem 0 .6rem; }
.contact-side h3:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.plain-list { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .4rem; }
.plain-list li { display: flex; align-items: flex-start; gap: .5rem; }
.plain-list li > .ico { margin-top: .3rem; color: var(--verde); }
.plain-list a .ico { color: var(--verde); }
.plain-list a { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 400; text-decoration: none; }
.plain-list a:hover { color: var(--rosso); text-decoration: underline; }
.contact-side .muted { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--verde-d); color: var(--on-dark-2); font-size: 1.05rem; padding-top: clamp(2.5rem, 5vw, 4rem); }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--sole); }
.site-footer :focus-visible { outline-color: var(--sole); }
.footer-grid { --bs-gutter-x: min(2.5rem, 2 * var(--gutter)); --bs-gutter-y: 2.5rem; padding-bottom: 2.5rem; }
.f-about p:last-child { max-width: 30em; }
.f-title { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; color: #fff; margin-bottom: .75rem; }
.f-links a { text-decoration: none; }
.f-links a:hover { text-decoration: underline; }
.f-icons li { display: flex; align-items: flex-start; gap: .5rem; }
.f-icons a { display: inline-flex; align-items: center; gap: .5rem; }
.f-icons .ico { color: var(--sole); }
.f-icons li > .ico { margin-top: .3rem; }
.f-name { font-family: var(--f-head); font-weight: 700; font-size: 1.5rem; color: #fff; margin-bottom: .5rem; }
.f-links { margin: 0; display: grid; gap: .5rem; }
.f-bottom { gap: .5rem; padding-block: 1.25rem; font-size: 1rem; position: relative; }
.f-legal { font-size: .9rem; }
.f-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--verde-line); }

.callbar { display: none; }

/* ---------- visualizzatore foto ---------- */
/* modal modal-fullscreen di Bootstrap */
.modal-backdrop { --bs-backdrop-bg: rgb(23, 33, 27); --bs-backdrop-opacity: .9; }
.viewer-content { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100dvh; background: rgba(23, 33, 27, .97); color: #fff; border: 0; }
.viewer-fig { margin: 0; display: grid; place-items: center; padding: 1rem; min-height: 0; gap: .75rem; grid-template-rows: minmax(0, 1fr) auto; }
.viewer-fig img { max-width: 100%; max-height: 100%; object-fit: contain; border: .6rem solid #fff; }
.viewer-count { font-size: 1.15rem; color: var(--on-dark-2); }
.viewer-bar { display: flex; justify-content: center; gap: .75rem; padding: 1rem; flex-wrap: wrap; }
.vbtn { display: inline-flex; align-items: center; gap: .5rem; min-height: 3.5rem; padding: .6rem 1.4rem; background: transparent; color: #fff; border: 2px solid #fff; border-radius: 8px; font: 800 1.15rem var(--f-body); cursor: pointer; }
.vbtn:hover { background: #fff; color: var(--verde-d); }
.vbtn-close { background: var(--sole); color: var(--ink); border-color: var(--sole); }
.viewer :focus-visible { outline-color: var(--sole); }

/* ---------- movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { translate: 0 1rem; transition: translate .6s var(--ease), transform .5s var(--ease); }
  .js .reveal.in { translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
  .opening .btn-row { display: grid; grid-template-columns: 1fr; max-width: 24rem; }
}
@media (max-width: 991.98px) {
  .print--title { max-width: 30rem; }
  .opening .btn-row { display: grid; grid-template-columns: 1fr; max-width: 26rem; }

  .js .menu-btn {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 3.25rem; padding: .5rem 1.1rem;
    font: 800 1.15rem var(--f-body); color: var(--verde-d); background: transparent; border: 2px solid var(--verde); border-radius: 8px; cursor: pointer;
  }
  .mainnav .navbar-nav { gap: 0; border-top: 1px solid var(--rule); margin-bottom: 1rem; }
  .mainnav .nav-link { font-size: 1.35rem; padding: .95rem 0; border-bottom: 1px solid var(--rule); }
  .mainnav .nav-link[aria-current="page"] { border-bottom: 1px solid var(--rule); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .3em; }

  .callbar {
    display: grid; grid-template-columns: 1.4fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 50;
    background: var(--bianco); box-shadow: 0 -2px 10px rgba(0, 0, 0, .12); padding-bottom: env(safe-area-inset-bottom);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 4rem; font-weight: 800; font-size: 1.25rem; text-decoration: none; }
  .cb-call { background: var(--rosso); color: #fff; }
  .cb-call:hover { color: #fff; }
  .cb-write { color: var(--verde-d); }
  body { padding-bottom: 4rem; }
}
@media (max-width: 767.98px) {
  .album { --bs-gutter-x: 1rem; }
  .field-row { grid-template-columns: 1fr; }
  .masthead-in { min-height: 5rem; padding-block: 1rem .75rem; }
  .brand img { width: 16.5rem; }
  .print--hero { transform: none; margin-inline: -.25rem; }
  .opening .btn { width: 100%; }
  .about-photos { padding-bottom: 0; }
  .print--small { display: none; }
  .map-frame { min-height: 20rem; }
  .map-frame iframe { height: 18.5rem; }
  .form .btn-big { justify-self: stretch; }
  .info-tel { font-size: 2.3rem; }
}
