@charset "UTF-8";
/* =====================================================================
   Clinica Veterinaria Malaspina - foglio di stile sito pubblico
   Replica fedele della grafica del sito precedente (Bootstrap 3 + main.css)
   senza dipendenze esterne. Breakpoint: 768 / 992 / 1200 px.
   ===================================================================== */

@font-face {
  font-family: 'century';
  src: url('../fonts/centurygothic.woff') format('woff'),
       url('../fonts/centurygothic.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #73a7d7;
  --green: #94b467;
  --green-bar: #95b567;
  --text: #4f4f4f;
  --font: 'century', 'Trebuchet MS', Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.42857143;
  color: var(--text);
  background-color: #fff;
}
img { vertical-align: middle; border: 0; }
a { color: #337ab7; text-decoration: none; }
a:hover, a:focus { color: #23527c; text-decoration: underline; }
p { margin: 0 0 10px; }
ul, ol { margin-top: 0; margin-bottom: 10px; }
figure { margin: 0 0 10px; }
strong, b { font-weight: bold; }

h1, h2, h3, h4, h5, h6,
.t-h1, .t-h2, .t-h3, .t-h4, .t-h5 {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: var(--blue);
  text-transform: uppercase;
}
h1, .t-h1 { font-size: 50px; }
h2, .t-h2 { font-size: 27px; }
h3, .t-h3 { font-size: 24px; }
h4, .t-h4 { font-size: 20px; }
h5, .t-h5 { font-size: 16px; }
@media (min-width: 1200px) {
  h1, .t-h1 { font-size: 72px; }
  h2, .t-h2 { font-size: 60px; }
  h3, .t-h3 { font-size: 45px; }
  h4, .t-h4 { font-size: 28px; }
  h5, .t-h5 { font-size: 21px; }
}

/* ---------------------------------------------------------------- utility */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100000; background: #fff; padding: 10px 15px; color: #000; }
.skip-link:focus { left: 10px; top: 10px; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-green { color: var(--green) !important; }
.text-blue { color: var(--blue) !important; }
.text-white { color: #fff !important; }
.img-responsive { display: block; max-width: 100%; height: auto; }
.text-center .img-responsive { margin-left: auto; margin-right: auto; }

.container { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }
@media (min-width: 768px) { .container { width: 750px; } }
@media (min-width: 992px) { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }
.container-fluid { padding-right: 15px; padding-left: 15px; }
.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
.row > * { position: relative; width: 100%; padding-right: 15px; padding-left: 15px; min-height: 1px; }

/* spaziature verticali "level" e margini del sito originale */
.level-xxs { padding-top: 10px; padding-bottom: 10px; }
.level-xs { padding-top: 20px; padding-bottom: 20px; }
.level-s { padding-top: 30px; padding-bottom: 30px; }
.level-m { padding-top: 45px; padding-bottom: 45px; }
.mb-s { margin-bottom: 30px; }
@media (min-width: 768px) {
  .level-xxs { padding-top: 15px; padding-bottom: 15px; }
  .level-xs { padding-top: 30px; padding-bottom: 30px; }
  .level-s { padding-top: 45px; padding-bottom: 45px; }
  .level-m { padding-top: 60px; padding-bottom: 60px; }
  .mb-s { margin-bottom: 40px; }
}
@media (min-width: 1280px) {
  .level-xxs { padding-top: 20px; padding-bottom: 20px; }
  .level-xs { padding-top: 40px; padding-bottom: 40px; }
  .level-s { padding-top: 60px; padding-bottom: 60px; }
  .level-m { padding-top: 90px; padding-bottom: 90px; }
  .mb-s { margin-bottom: 60px; }
}

/* ------------------------------------------------------------------ bottoni */
.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: none;
  border-radius: 0;
  color: #fff;
  text-transform: uppercase;
  transition: filter .15s ease;
}
.btn:hover, .btn:focus { color: #fff; text-decoration: none; filter: brightness(.93); }
.btn:focus-visible { outline: 2px solid #23527c; outline-offset: 2px; }
.btn-green { background-color: var(--green); }
.btn-blue { background-color: var(--blue); }

/* ----------------------------------------------------------------- navbar */
.site-header { position: relative; z-index: 1000; }
.navbar {
  position: relative;
  height: 90px;
  background: var(--blue) url('../img/menu-background.webp') no-repeat center top;
  background-size: cover;
}
.navbar-inner { position: relative; height: 100%; padding: 0 15px; display: flex; align-items: flex-start; justify-content: space-between; }
/* logo orizzontale (nuovo marchio): altezza fissa, larghezza dal rapporto dell'SVG */
.navbar-brand { display: block; padding: 22px 0 0; height: auto; }
.navbar-brand img { height: 46px; width: auto; display: block; }
.navbar-toggle {
  position: relative;
  margin-top: 15px;
  padding: 9px 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; background-color: #fff; }
.navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; }
.navbar-toggle:hover, .navbar-toggle:focus { background-color: #fff; }
.navbar-toggle:hover .icon-bar, .navbar-toggle:focus .icon-bar { background-color: var(--blue); }
.nav { list-style: none; margin: 0; padding: 0; }
.nav a { display: block; color: #fff; text-transform: uppercase; text-decoration: none; }
.nav a:hover, .nav a:focus, .nav a[aria-current="page"] { background-color: var(--green); color: #fff; }

@media (max-width: 767.98px) {
  .nav {
    display: none;
    position: absolute;
    top: 90px; left: 0; right: 0;
    background-color: var(--blue);
    z-index: 9999;
    padding: 7px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
  }
  .nav.is-open { display: block; }
  .nav a { font-size: 22px; text-align: center; padding: 10px 15px; line-height: 20px; }
}
@media (min-width: 768px) {
  .navbar { height: 100px; }
  .navbar-brand { padding-top: 24px; }
  .navbar-brand img { height: 52px; }
  .navbar-toggle { display: none; }
  .nav { display: flex; margin-top: 30px; margin-right: -15px; }
  .nav a { font-size: 15px; padding: 15px 15px 15px 0; line-height: 20px; }
  .nav .nav-home { display: none; }
}
@media (min-width: 992px) { .nav a { font-size: 18px; } }
@media (min-width: 1024px) { .nav a { padding-left: 15px; } }
@media (min-width: 1200px) {
  .navbar { height: 145px; }
  .navbar-brand { padding-top: 16px; }
  .navbar-brand img { height: 84px; }
  .nav a { font-size: 22px; }
}

/* ------------------------------------------------------- immagine header */
.page-header {
  min-height: 300px;
  background-color: #eee;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 1200px) { .page-header { height: 450px; } }
.page-header--home { background-position: center 30%; } /* home: l'insegna sta nella parte alta della foto */

/* ------------------------------------------------------------- barra info */
.infobar {
  background-color: var(--green-bar);
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
  padding: 8px 15px;
}
.infobar-row { display: flex; flex-wrap: wrap; align-items: center; }
.infobar p { margin: 0; width: 100%; text-align: center; padding: 5px 0; }
.infobar img { width: auto; height: 31px; vertical-align: middle; margin-right: 4px; }
.infobar a { color: #fff; }
.infobar .infobar-icon-cross { display: none; width: 31px; height: 31px; margin-right: 4px; vertical-align: middle; background: url('../img/croce.svg') center / contain no-repeat; } /* icona decorativa: sfondo CSS, non immagine */
.infobar .btn { font-size: 14px; }
@media (min-width: 768px) {
  .infobar { font-size: 20px; height: 52px; padding-top: 3px; padding-bottom: 0; }
  .infobar p { padding: 0; }
  .infobar .infobar-left { width: 58.333%; text-align: left; }
  .infobar .infobar-right { width: 41.666%; text-align: right; }
  .infobar .infobar-icon-cross { display: inline-block; }
  .infobar .infobar-call { display: none; }
}
@media (min-width: 992px) {
  .infobar .infobar-left { width: 66.666%; }
  .infobar .infobar-right { width: 33.333%; }
}
@media (min-width: 1024px) { .infobar { font-size: 25px; padding-top: 8px; } }

/* ----------------------------------------------------------- sezioni hero */
.hero { position: relative; }
.hero-media {
  background-size: cover;
  background-repeat: no-repeat;
}
.hero--right .hero-media { height: 280px; background-position: left; }
.hero--left .hero-media { height: 260px; background-position: right; }
.hero-text { text-align: center; }
.hero .hero-title { font-size: 45px; text-transform: uppercase; }
.hero-list { list-style: none; padding: 0; margin: 40px 0 20px; }
.hero-list li { padding-bottom: 8px; }
.hero-text p { margin-bottom: 10px; }
@media (min-width: 768px) {
  .hero { background-image: var(--hero-bg, none); background-size: cover; background-repeat: no-repeat; }
  .hero-media { display: none; }
  .hero--left { background-position: right; }
  .hero-text { text-align: left; }
  .hero .row { justify-content: flex-start; }
}
@media (min-width: 992px) {
  .hero .hero-col { width: 58.333%; }
  .hero--right .hero-col { margin-left: 41.666%; }
}
@media (min-width: 1200px) {
  .hero--right .hero-text { text-align: right; }
  .hero--left { background-position: center; }
  .hero .hero-title { font-size: 72px; }
}

/* -------------------------------------------------------- staff carosello */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .6s ease-in-out; will-change: transform; }
.carousel-slide { flex: 0 0 100%; min-width: 100%; }
.carousel-slide .row { margin: 0 -15px; }
.carousel-slide .staff-card-col { width: 100%; padding: 0 15px; margin-bottom: 15px; }
@media (min-width: 768px) { .carousel-slide .staff-card-col { width: 50%; } }
@media (min-width: 992px) { .carousel-slide .staff-card-col { width: 33.333%; margin-bottom: 0; } }
.carousel { min-height: 450px; }
.box-staff {
  position: relative;
  height: 400px;
  background-color: #eee;
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0;
}
.staff-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  text-align: center;
  background-color: rgba(115, 167, 215, .77);
  color: #fff;
  text-transform: uppercase;
  padding: 8px 5px 3px;
}
.staff-label h3 { font-size: 17px; color: #fff; }
.box-staff-link { display: block; color: inherit; text-decoration: none; }
.box-staff-link .staff-label { transition: background-color .3s; }
.box-staff-link:hover .staff-label, .box-staff-link:focus-visible .staff-label { background-color: rgba(87, 140, 190, .92); }
.box-staff-link:focus-visible { outline: 3px solid #73a7d7; outline-offset: 3px; }
.staff-anchor { scroll-margin-top: 20px; }
.staff-label p { font-size: 14px; margin: 0 0 10px; }
.carousel-control {
  position: absolute;
  top: 0; bottom: 50px;
  width: 15%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  opacity: .5;
  background: none;
  border: 0;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  z-index: 2;
}
.carousel-control:hover, .carousel-control:focus { opacity: .9; }
.carousel-control svg { width: 30px; height: 30px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.carousel-control.left { left: 0; }
.carousel-control.right { right: 0; }
.carousel-indicators {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; z-index: 2;
}
.carousel-indicators button {
  width: 10px; height: 10px; padding: 0; border: 1px solid #fff; border-radius: 10px;
  background: rgba(0,0,0,0); cursor: pointer;
}
.carousel-indicators button[aria-current="true"] { width: 12px; height: 12px; margin-top: -1px; background: #fff; }
.carousel-actions { text-align: center; }

/* ------------------------------------------------------------- home news */
.news-grid > * { margin-bottom: 15px; }
@media (min-width: 992px) { .news-grid > * { width: 33.333%; margin-bottom: 0; } }
.testo-news {
  height: 100%;
  border: 2px solid var(--green);
  margin-top: 10px;
  padding: 10px 10px 20px;
  min-height: 200px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.testo-news h3 { font-size: 18px; color: var(--text); text-transform: none; font-weight: normal; line-height: 1.42857; margin: 10px 0 20px; flex: 1; }
.testo-news .btn { margin-top: auto; }

/* --------------------------------------------------- consigli (box home) */
.consigli-grid > * { margin-bottom: 15px; }
@media (min-width: 768px) { .consigli-grid > * { width: 33.333%; margin-bottom: 0; } }
.box-consigli { display: block; text-decoration: none !important; }
.box-consigli img { width: 100%; }
.label-consigli {
  display: block;
  height: 70px;
  background-color: var(--blue);
  color: #fff;
  font-size: 32px;
  text-transform: uppercase;
  padding-top: 15px;
  text-align: center;
  transition: background-color .15s ease;
}
@media (min-width: 768px) and (max-width: 1023.98px) { .label-consigli { font-size: 28px; } }
.box-consigli:hover .label-consigli, .box-consigli:focus .label-consigli,
.label-consigli:hover, .label-consigli.active { background-color: var(--green); color: #fff; }
a.label-consigli, .label-consigli a { color: #fff !important; text-decoration: none; }

/* tab categorie consigli */
.advice-tabs { list-style: none; padding: 0; margin: 0; }
.advice-tabs li { margin-bottom: 15px; }
@media (min-width: 992px) { .advice-tabs li { width: 33.333%; margin-bottom: 0; } }

/* ------------------------------------------------------------- contenuti */
.bg-blue { color: #fff; background-color: var(--blue); }
.bg-blue h2, .bg-blue h3, .bg-blue .t-h2, .bg-blue .t-h3 { color: #fff; }
@media (min-width: 1200px) { .bg-blue .t-h2, .bg-blue .t-h3 { font-size: 45px; } }
.bg-green { color: #fff; background-color: var(--green); }
.bg-green .t-h2, .bg-green .t-h3 { color: #fff; }
.bg-blue a, .bg-green a { color: #fff; text-decoration: underline; }
.section-figure { padding-top: 10px; padding-bottom: 10px; }
@media (min-width: 768px) { .section-figure { padding-top: 15px; padding-bottom: 15px; } }
@media (min-width: 1280px) { .section-figure { padding-top: 20px; padding-bottom: 20px; } }
.image-pair { margin-top: 20px; }
.image-pair > * { margin-bottom: 15px; }
@media (min-width: 992px) { .image-pair > * { width: 50%; margin-bottom: 0; } }

.rich-text { overflow-wrap: break-word; }
.rich-text img { max-width: 100%; height: auto; display: block; }
.text-center .rich-text img, .rich-text.text-center img { margin-left: auto; margin-right: auto; }
.rich-text figure { margin: 10px 0; }
.rich-text h2, .rich-text h3, .rich-text h4, .rich-text h5 { margin: 15px 0 10px; }
.rich-text ul, .rich-text ol { text-align: left; display: inline-block; }
.rich-text table { max-width: 100%; border-collapse: collapse; margin: 0 auto 10px; }
.rich-text td, .rich-text th { border: 1px solid #ddd; padding: 6px 8px; }
.rich-text iframe { max-width: 100%; }
/* griglia a due colonne importata dal vecchio editor (btgrid) */
.btgrid .row { margin-top: 10px; }
@media (min-width: 992px) { .btgrid .col-md-6 { width: 50%; } }

/* --------------------------------------------------------------- servizi */
.ico-servizi { width: 100px; height: auto; }
@media (min-width: 768px) { .ico-servizi { width: 190px; } }
.service-item .t-h2 { margin: 10px 0 15px; }
.service-item .rich-text { margin-bottom: 15px; }
.back-link img { width: 58px; height: auto; }
.back-link { display: inline-block; }

/* ----------------------------------------------------------------- staff */
.staff {
  margin-bottom: 2px;
  border-top: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
  margin-left: 0; margin-right: 0;
}
.staff .staff-photo, .staff .staff-body { padding-left: 15px; padding-right: 15px; }
.staff .staff-photo { margin-bottom: 15px; }
@media (min-width: 768px) {
  .staff .staff-photo { width: 33.333%; margin-bottom: 0; }
  .staff .staff-body { width: 66.666%; }
}
@media (min-width: 992px) {
  .staff--reverse .staff-photo { order: 2; }
  .staff--reverse .staff-body { order: 1; }
}
.staff .t-h3 { color: var(--green); }
.staff h3 + p, .staff .staff-role { color: var(--blue); text-transform: uppercase; font-size: 20px; line-height: 1.1; margin: 0 0 10px; }
@media (min-width: 1200px) { .staff .staff-role { font-size: 28px; } }
.staff-position { color: var(--green); text-transform: uppercase; font-size: 16px; letter-spacing: .02em; margin: 4px 0 6px; }
@media (min-width: 1200px) { .staff-position { font-size: 19px; } }
.staff-external .staff-role { color: var(--blue); text-transform: uppercase; font-size: 20px; line-height: 1.1; margin: 0 0 10px; }
@media (min-width: 1200px) { .staff-external .staff-role { font-size: 28px; } }

/* --------------------------------------------------------------- gallery */
.gallery-grid > * { width: 100%; }
@media (min-width: 768px) { .gallery-grid > * { width: 33.333%; } }
@media (min-width: 992px) { .gallery-grid > * { width: 25%; } }
.gallerybox {
  display: block;
  height: 214px;
  margin-bottom: 30px;
  background-color: #eee;
  background-size: cover;
  background-position: center;
  transition: opacity .2s ease;
}
.gallerybox:hover, .gallerybox:focus { opacity: .85; }
@media (min-width: 1200px) { .gallerybox { height: 265px; } }

/* lightbox (site.js): frecce/tastiera su computer, swipe su telefono */
.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, .9);
  display: none; align-items: center; justify-content: center;
  touch-action: pinch-zoom; overscroll-behavior: contain; user-select: none; -webkit-user-select: none;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 92vw; display: flex; flex-direction: column; align-items: center; }
.lightbox .lb-stage { will-change: transform, opacity; }
.lightbox img { display: block; max-width: 92vw; max-height: 80vh; width: auto; height: auto; background: #fff; padding: 8px; -webkit-user-drag: none; }
.lightbox figcaption { display: flex; gap: 16px; justify-content: center; align-items: baseline; color: #fff; margin-top: 10px; font-size: 15px; text-align: center; max-width: 92vw; }
.lightbox .lb-count { flex: none; opacity: .75; font-size: 13px; letter-spacing: .06em; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 12px; line-height: 1;
}
.lightbox button svg { width: 34px; height: 34px; }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox button:focus-visible { outline: 2px solid #fff; }
/* su telefono si scorre con lo swipe: frecce piu' piccole in basso, la foto resta libera */
@media (hover: none) and (pointer: coarse) {
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; padding: 8px; }
  .lightbox button svg { width: 28px; height: 28px; }
  .lightbox figure { padding-bottom: 40px; }
}

/* -------------------------------------------------------------- contatti */
.contact-block address { font-style: normal; }
.contact-block a { color: #337ab7; }
#map_canvas, .map-canvas { width: 100%; height: 450px; background: #eee; }
.map-fallback { display: block; text-align: center; padding-top: 10px; font-size: 15px; }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content { font-size: 14px; line-height: 1.4; }
.leaflet-popup-content strong { color: var(--blue); }

/* ------------------------------------------------------------ paginazione */
.pagination { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0 0 30px; }
.pagination a, .pagination span { display: block; padding: 6px 12px; border: 1px solid var(--green); color: var(--green); font-size: 15px; }
.pagination [aria-current="page"] { background: var(--green); color: #fff; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--green) url('../img/Background_footer.webp') no-repeat center top;
  background-size: cover;
  padding: 20px 15px 15px;
  color: #fff;
  text-align: center;
}
.site-footer img { display: inline-block; width: 184px; max-width: 60%; height: auto; }
.site-footer .footer-logo { width: 84px; margin-bottom: 10px; }
.site-footer .footer-title { font-size: 20px; color: #fff; text-transform: uppercase; margin: 0; }
.site-footer address { font-style: normal; }
.site-footer address span, .site-footer .footer-small { font-size: 12px; line-height: 1.4; }
.site-footer a { color: #fff; }
.site-footer .footer-hours { margin: 0; }
.site-footer .footer-legal { font-size: 12px; margin: 6px 0 0; opacity: .9; }
@media (min-width: 768px) {
  .site-footer { min-height: 200px; }
  .site-footer .footer-title { font-size: 32px; }
  .site-footer address span { font-size: 15px; line-height: 18px; }
}
@media (min-width: 992px) {
  .site-footer .footer-title { font-size: 45px; }
  .site-footer address span { font-size: 18px; line-height: 18px; }
}

/* ------------------------------------------- banner e preferenze cookie */
/* Accetta e Rifiuta hanno volutamente la stessa evidenza (Garante / EDPB) */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  background: #fff; color: var(--text);
  box-shadow: 0 -3px 18px rgba(0, 0, 0, .22);
  border-top: 4px solid var(--blue);
  font-size: 14px; line-height: 1.45;
}
.cc-banner[hidden], .cc-prefs:not([open]) { display: none; }
.cc-inner { position: relative; max-width: 1140px; margin: 0 auto; padding: 18px 48px 18px 18px; }
.cc-title { margin: 0 0 6px; font-size: 17px; font-weight: bold; color: #2a6496; }
.cc-text { margin: 0 0 14px; }
.cc-text a, .cc-prefs a { color: #23527c; text-decoration: underline; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-btn {
  flex: 1 1 140px; min-height: 44px; margin: 0; padding: 10px 18px;
  background: #2a6496; border: 2px solid #2a6496; color: #fff;
  font-family: inherit; font-size: 15px; text-transform: none; cursor: pointer;
}
.cc-btn:hover, .cc-btn:focus { background: #1d4a70; border-color: #1d4a70; color: #fff; filter: none; }
.cc-btn-outline { background: #fff; color: #2a6496; }
.cc-btn-outline:hover, .cc-btn-outline:focus { background: #eef4fa; color: #1d4a70; }
.cc-close {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px;
  border: 0; background: transparent; color: #555; font-size: 30px; line-height: 1; cursor: pointer; border-radius: 50%;
}
.cc-close:hover, .cc-close:focus-visible { background: #eef1f4; color: #000; }
.cc-close:focus-visible, .cc-btn:focus-visible, .cc-switch input:focus-visible + .cc-slider { outline: 3px solid #23527c; outline-offset: 2px; }
@media (min-width: 768px) {
  .cc-inner { display: flex; gap: 30px; align-items: center; padding: 20px 56px 20px 24px; }
  .cc-body { flex: 1 1 auto; }
  .cc-text { margin: 0; }
  .cc-banner .cc-actions { flex: 0 0 210px; flex-direction: column; }
  .cc-banner .cc-actions .cc-btn { flex: 0 0 auto; }
}

.cc-prefs {
  width: min(680px, calc(100% - 24px)); max-height: calc(100% - 24px);
  margin: auto; padding: 0; border: 0; border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35); color: var(--text);
  font-size: 14px; line-height: 1.5;
}
.cc-prefs::backdrop { background: rgba(0, 0, 0, .55); }
.cc-prefs[open]:not(:modal) { position: fixed; inset: 12px; z-index: 9100; overflow: auto; }
.cc-prefs-inner { position: relative; padding: 20px 20px 22px; }
.cc-prefs-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.cc-prefs-head .cc-close { position: static; }
.cc-prefs-title { margin: 0; font-size: 21px; color: #2a6496; }
.cc-cat { border: 1px solid #dfe5eb; border-radius: 4px; padding: 12px 14px; margin: 12px 0; }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat-title { margin: 0; font-size: 16px; font-weight: bold; color: #333; }
.cc-cat-desc { margin: 6px 0 4px; }
.nobr { white-space: nowrap; }
.cc-always { font-size: 13px; font-weight: bold; color: #3c6e1f; white-space: nowrap; }
.cc-switch { position: relative; display: inline-block; width: 52px; height: 28px; flex: 0 0 auto; cursor: pointer; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-slider { position: absolute; inset: 0; background: #8a8f94; border-radius: 28px; transition: background .2s; }
.cc-slider::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.cc-switch input:checked + .cc-slider { background: #3c7d2a; }
.cc-switch input:checked + .cc-slider::before { transform: translateX(24px); }
.cc-details summary { cursor: pointer; color: #23527c; font-size: 13px; padding: 4px 0; }
.cc-prefs .cc-actions { margin-top: 16px; }

.cc-service { margin: 10px 0 4px; }
.cc-service-name { margin: 0; font-size: 14px; font-weight: bold; color: #333; }
.cc-service-provider { margin: 2px 0 6px; font-size: 13px; }
.cc-table-wrap { overflow-x: auto; }
.cc-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.cc-table th, .cc-table td { border: 1px solid #dfe5eb; padding: 5px 8px; vertical-align: top; }
.cc-table th { background: #f3f6f9; }
.cc-table code { font-size: 12px; word-break: break-all; }

/* cookie policy */
.cookie-policy .rich-text { max-width: 900px; margin: 0 auto; }
.cookie-policy h2 { margin-top: 28px; }
.cookie-policy-h3 { font-size: 16px; font-weight: bold; color: #333; margin: 18px 0 4px; }
.cookie-policy .cc-service-name { font-size: 15px; }

/* contenuti esterni bloccati in attesa del consenso */
.embed-consent {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 100%; max-width: 640px; min-height: 200px; aspect-ratio: 16 / 9; margin: 0 auto 15px; padding: 20px;
  background: #eef2f6; border: 1px solid #d3dbe3; text-align: center; font-size: 14px;
}
.embed-consent p { margin: 0 0 10px; max-width: 460px; }
.embed-consent .btn { margin: 0 6px 6px 0; }

/* ---------------------------------------------- animazioni (ex WOW.js) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; }
  .js .reveal.is-visible { opacity: 1; animation-duration: 1s; animation-fill-mode: both; }
  .js .reveal.is-visible.fadeIn { animation-name: fadeIn; }
  .js .reveal.is-visible.fadeInRight { animation-name: fadeInRight; }
  .js .reveal.is-visible.fadeInLeft { animation-name: fadeInLeft; }
  .js .reveal.is-visible.zoomIn { animation-name: zoomIn; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale3d(.3, .3, .3); } 50% { opacity: 1; } to { opacity: 1; transform: none; } }
body { overflow-x: hidden; }
.reveal-all .reveal { opacity: 1 !important; animation: none !important; }

/* --------------------------------------------------------------- errori */
.error-page { min-height: 40vh; }

/* ------------------------------------------------- domande frequenti */
.faq-grid { display: grid; gap: 30px; text-align: left; }
.faq-aside .rich-text { margin-top: 15px; }
.faq-topic { display: block; margin-top: 8px; font-size: .45em; letter-spacing: .04em; }
.faq-contacts { list-style: none; padding: 0; margin: 20px 0 0; }
.faq-contacts li { margin-bottom: 6px; }
.faq-list { border-top: 1px solid #dbe7f3; }
.faq-item { border-bottom: 1px solid #dbe7f3; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid #23527c; outline-offset: 4px; }
.faq-q { font-size: 20px; line-height: 1.3; text-transform: none; color: var(--blue); }
.faq-icon { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--blue); transition: transform .3s ease, background-color .3s ease, border-color .3s ease; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--blue); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--green); border-color: var(--green); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-a { padding: 0 58px 20px 0; }
@media (min-width: 992px) {
  .faq-grid { grid-template-columns: 5fr 7fr; gap: 60px; }
  .faq-aside { position: sticky; top: 20px; align-self: start; }
  .faq-q { font-size: 24px; }
}

/* ---------------------------------------------------------------------
 *  Avviso chiusure (festivita' e chiusure straordinarie) nei box orari:
 *  compare 7 giorni prima. Base su fondo chiaro; .m-notice su fondo blu.
 * --------------------------------------------------------------------- */
.hours-notice { margin: 16px auto; max-width: 460px; padding: 14px 16px; border: 1px solid #ecd6a6; border-radius: 12px; background: #fff8ea; color: #4b3d1f; text-align: left; font-size: 14px; line-height: 1.45; }
.hours-notice-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8a5a0b; }
.hours-notice-head svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hours-notice ul { margin: 0; padding: 0; list-style: none; }
.hours-notice li { padding: 8px 0 0; }
.hours-notice li + li { margin-top: 8px; border-top: 1px solid #ecd6a6; }
.hours-notice li strong { display: block; font-size: 15px; }
.hours-notice li span { display: block; }
.hours-notice-reopen { opacity: .85; }
.hours-notice-inline { margin: 4px 0 0; }
.hours-notice-line { display: block; }
