/* Landing Avviso Pubblico — sticky verticale + paginatore */

@font-face {
  font-family: "Mogula";
  src: url("../fonts/mogula.woff") format("woff"),
       url("../fonts/mogula.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.avviso-page {
  --avviso-cream: #e8ca91;
  --avviso-orange: #d45f17;
  --avviso-brown: #522c14;
  --avviso-olive: #4b4616;
  --avviso-display: "Mogula", sans-serif;
  --avviso-body: "DM Sans", sans-serif;
  --avviso-header-offset: 128px;
  background: var(--groove-cream);
  overflow-x: hidden;
}

.avviso-page h1,
.avviso-page h2,
.avviso-page .avviso-step,
.avviso-page .avviso-kicker,
.avviso-page .avviso-highlight,
.avviso-page .avviso-pager-dot,
.avviso-page .avviso-deadline strong {
  font-family: var(--avviso-display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.avviso-pager {
  position: fixed;
  right: max(10px, calc((100vw - 1280px) / 2));
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 999px;
  background: rgba(241, 237, 228, 0.94);
  border: 1px solid rgba(82, 44, 20, 0.12);
  box-shadow: 0 12px 40px rgba(51, 45, 41, 0.12);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.avviso-pager.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.avviso-pager-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--avviso-olive);
  background: transparent;
  color: var(--avviso-olive);
  font-size: 16px;
  cursor: pointer;
}

.avviso-pager-arrow:hover,
.avviso-pager-arrow:focus-visible {
  background: var(--avviso-olive);
  color: #fff;
  outline: none;
}

.avviso-pager-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.avviso-pager-dot {
  width: 36px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--avviso-brown);
  font-family: var(--avviso-display);
  font-size: 13px;
  cursor: pointer;
  opacity: 0.55;
}

.avviso-pager-dot:hover,
.avviso-pager-dot.is-active {
  opacity: 1;
  background: var(--avviso-orange);
  color: #fff;
}

.avviso-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - var(--avviso-header-offset));
  display: flex;
  align-items: center;
  padding: calc(var(--avviso-header-offset) + 20px) 0 72px;
  background:
    radial-gradient(circle at 80% 20%, rgba(212, 95, 23, 0.1), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(75, 70, 22, 0.08), transparent 42%),
    var(--groove-cream);
}

.avviso-intro-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.avviso-intro-bg img {
  position: absolute;
  top: 50%;
  right: -2%;
  width: min(62vw, 780px);
  height: auto;
  max-height: 90%;
  object-fit: cover;
  object-position: center center;
  transform: translateY(-48%);
  opacity: 0.32;
  filter: saturate(0.9) contrast(1.04);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 18%, rgba(0, 0, 0, 0.9) 42%, #000 70%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 82%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 18%, rgba(0, 0, 0, 0.9) 42%, #000 70%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  animation: avviso-intro-bg-fade 1.4s ease-out both;
}

.avviso-intro-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--groove-cream) 0%, rgba(241, 237, 228, 0.92) 36%, rgba(241, 237, 228, 0.35) 62%, transparent 88%),
    linear-gradient(180deg, rgba(241, 237, 228, 0.55) 0%, transparent 28%, transparent 72%, rgba(241, 237, 228, 0.75) 100%);
  pointer-events: none;
}

@keyframes avviso-intro-bg-fade {
  from {
    opacity: 0;
    transform: translateY(-46%) scale(1.03);
  }
  to {
    opacity: 0.32;
    transform: translateY(-48%) scale(1);
  }
}

.avviso-intro-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.avviso-official-logo {
  display: block;
  width: min(320px, 70vw);
  height: auto;
  margin-bottom: 28px;
}

.avviso-eyebrow {
  font-family: var(--avviso-body);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--avviso-olive);
  margin-bottom: 14px;
}

.avviso-intro h1 {
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.02;
  color: var(--groove-olive);
  text-transform: none;
  margin-bottom: 16px;
}

.avviso-intro-lead {
  font-family: var(--avviso-body);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.5;
  color: var(--text-body);
  max-width: 38ch;
  margin-bottom: 18px;
}

.avviso-deadline {
  font-family: var(--avviso-body);
  font-size: 14px;
  color: var(--avviso-olive);
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
}

.avviso-deadline strong {
  font-size: 1.15em;
  color: var(--avviso-orange);
}

.avviso-riapertura {
  display: inline-block;
  font-family: var(--avviso-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--avviso-orange, #d45f17);
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(212, 95, 23, 0.35);
}

.avviso-scaduto-badge {
  display: inline-block;
  font-family: var(--avviso-display);
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #6b635c;
  padding: 8px 16px;
  border-radius: 999px;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(51, 45, 41, 0.25);
}

.avviso-deadline--scaduto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.avviso-scaduto-box {
  margin: 0 0 22px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(107, 99, 92, 0.12);
  border: 1px solid rgba(107, 99, 92, 0.28);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.avviso-scaduto-copy {
  margin: 0;
  font-family: var(--avviso-body);
  color: var(--avviso-brown);
  font-size: 15px;
}

.avviso-slide[data-avviso-slide="10"] .avviso-highlight {
  font-weight: 700;
  color: #6b635c;
}

.avviso-intro .btn-primary,
.avviso-cta .btn-primary {
  font-family: var(--avviso-display);
  font-weight: 400;
  font-size: 18px;
}

.avviso-cta .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  text-align: center;
}

.avviso-cta .avviso-faq-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  text-align: center;
  margin-top: 12px;
}

.avviso-stack {
  position: relative;
  padding-bottom: 48px;
}

.avviso-slide {
  position: sticky;
  top: var(--avviso-header-offset);
  z-index: var(--z);
  min-height: calc(100vh - var(--avviso-header-offset));
  display: flex;
  align-items: center;
  padding: 12px 0 24px;
  /* Evita che pager/frecce portino l'immagine sotto la topbar fissa */
  scroll-margin-top: var(--avviso-header-offset);
}

.avviso-slide-frame {
  width: min(1100px, calc(100% - 100px));
  max-height: calc(100vh - var(--avviso-header-offset) - 24px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, #f7efe0 0%, var(--avviso-cream) 55%, #dfc089 100%);
  border: 1px solid rgba(82, 44, 20, 0.12);
  box-shadow: 0 24px 60px rgba(51, 45, 41, 0.18);
  transform: translateY(8px) scale(0.985);
  opacity: 0.75;
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
}

.avviso-slide.is-active .avviso-slide-frame {
  transform: none;
  opacity: 1;
  box-shadow: 0 30px 80px rgba(51, 45, 41, 0.24);
}

.avviso-slide-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2c48a;
  padding: 16px;
  min-height: 0;
}

.avviso-slide-media-link {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  outline: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.avviso-slide-media-link:hover,
.avviso-slide-media-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(51, 45, 41, 0.2);
}

.avviso-slide-media-link:focus-visible {
  outline: 2px solid var(--avviso-orange);
  outline-offset: 3px;
}

.avviso-slide-media-link img {
  cursor: pointer;
}

.avviso-slide-cta-wrap {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
  margin-bottom: 8px;
  padding-bottom: 4px;
}

.avviso-slide-media-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  border-radius: 14px;
  background: var(--avviso-orange);
  color: #fff;
  font-family: var(--avviso-display);
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 12px 32px rgba(212, 95, 23, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.avviso-slide-media-cta:hover,
.avviso-slide-media-cta:focus-visible {
  background: #b84a0f;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(212, 95, 23, 0.38);
  outline: none;
}

.avviso-slide-media img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - var(--avviso-header-offset) - 56px);
  object-fit: unset;
  object-position: center center;
  display: block;
  border-radius: 20px;
}

#scopri-bando {
  scroll-margin-top: var(--avviso-header-offset);
}

.avviso-slide-body {
  padding: clamp(18px, 3vw, 36px);
  font-family: var(--avviso-body);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
  min-height: 0;
}

.avviso-slide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.avviso-slide-logo {
  width: min(150px, 40%);
  height: auto;
}

.avviso-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--avviso-orange);
  color: #fff;
  font-size: 20px;
}

.avviso-kicker {
  font-size: 18px;
  color: var(--avviso-olive);
  margin-bottom: 6px;
}

.avviso-slide-body h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.05;
  color: var(--avviso-brown);
  text-transform: none;
  margin-bottom: 10px;
}

.avviso-slide-body > p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
  margin-bottom: 12px;
}

.avviso-list {
  list-style: none;
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
}

.avviso-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--avviso-brown);
}

.avviso-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--avviso-orange);
}

.avviso-note,
.avviso-slide-body > p.avviso-note {
  margin: auto 0 10px;
  padding: 0;
  font-family: var(--avviso-body);
  font-size: 12px;
  line-height: 1.45;
  color: rgba(82, 44, 20, 0.72);
  font-style: italic;
}

.avviso-note + .avviso-highlight,
.avviso-slide-body > p.avviso-note + p.avviso-highlight {
  margin-top: 0;
}

.avviso-highlight,
.avviso-slide-body > p.avviso-highlight {
  margin-top: auto;
  margin-bottom: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--avviso-olive);
  color: #f8f1e3;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.25;
}

.avviso-luogo {
  position: relative;
  z-index: 35;
  padding: 72px 0 88px;
  background:
    radial-gradient(circle at 12% 20%, rgba(212, 95, 23, 0.1), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(75, 70, 22, 0.08), transparent 45%),
    linear-gradient(180deg, #efe4cb 0%, var(--avviso-cream) 55%, #e4c792 100%);
}

.avviso-luogo .container {
  text-align: center;
}

.avviso-luogo-title {
  font-family: var(--avviso-display);
  font-size: clamp(32px, 5vw, 48px);
  color: var(--avviso-brown);
  text-transform: none;
  margin: 0 auto 12px;
  line-height: 1.1;
}

.avviso-luogo-lead {
  font-family: var(--avviso-body);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--text-body);
  max-width: 100%;
  width: 100%;
  margin: 0 auto 36px;
  text-align: center;
}

.avviso-luogo-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 22px;
  align-items: stretch;
}

.avviso-luogo-shot {
  margin: 0;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #d9c396;
  border: 1px solid rgba(82, 44, 20, 0.14);
  box-shadow: 0 18px 48px rgba(51, 45, 41, 0.14);
}

.avviso-luogo-shot img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.55s ease;
}

.avviso-luogo-shot:hover img {
  transform: scale(1.03);
}

.avviso-luogo-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(82, 44, 20, 0.55) 100%),
    radial-gradient(ellipse at center, transparent 50%, rgba(60, 40, 20, 0.18) 100%);
  mix-blend-mode: multiply;
  opacity: 0.85;
}

.avviso-luogo-shot figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  font-family: var(--avviso-body);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #f8f1e3;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.avviso-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  z-index: 40;
  background: var(--groove-brown);
  color: rgba(241, 237, 228, 0.92);
  padding: 88px 0;
}

.avviso-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.avviso-cta-bg img {
  position: absolute;
  top: 50%;
  right: -6%;
  width: min(55vw, 680px);
  height: auto;
  max-height: 130%;
  object-fit: cover;
  object-position: center top;
  transform: translateY(-48%);
  opacity: 0.38;
  filter: saturate(0.75) contrast(1.05) brightness(0.85);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 22%, rgba(0, 0, 0, 0.85) 48%, #000 72%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 22%, rgba(0, 0, 0, 0.85) 48%, #000 72%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
}

.avviso-cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--groove-brown) 0%, rgba(82, 44, 20, 0.92) 38%, rgba(82, 44, 20, 0.45) 68%, transparent 92%),
    linear-gradient(180deg, rgba(82, 44, 20, 0.55) 0%, transparent 30%, transparent 70%, rgba(82, 44, 20, 0.7) 100%);
  pointer-events: none;
}

.avviso-cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.avviso-cta-logo {
  width: 220px;
  height: auto;
  margin-bottom: 18px;
}

.avviso-cta h2 {
  font-size: clamp(40px, 6vw, 64px);
  color: #fff;
  text-transform: none;
  margin-bottom: 14px;
}

.avviso-cta-copy p {
  font-family: var(--avviso-body);
  margin-bottom: 22px;
  max-width: 48ch;
  line-height: 1.55;
}

.avviso-countdown {
  font-family: var(--avviso-body);
  margin: 0 0 28px;
  max-width: 520px;
  padding: 18px 20px 16px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.12) 100%),
    rgba(232, 202, 145, 0.08);
  border: 1px solid rgba(232, 202, 145, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.avviso-countdown-label {
  margin: 0 0 12px !important;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--avviso-cream);
  opacity: 0.85;
  max-width: none !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.avviso-countdown-label .avviso-riapertura {
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  opacity: 1;
}

.avviso-countdown-grid {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.avviso-countdown-unit {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(232, 202, 145, 0.16);
}

.avviso-countdown-value {
  font-family: var(--avviso-body);
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.02em;
}

.avviso-countdown-unit-label {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--avviso-cream);
  opacity: 0.7;
}

.avviso-countdown-sep {
  display: flex;
  align-items: center;
  padding-bottom: 14px;
  font-size: 26px;
  font-weight: 600;
  color: var(--avviso-orange);
  opacity: 0.9;
  animation: avviso-countdown-pulse 1.2s ease-in-out infinite;
}

.avviso-countdown-date {
  margin: 12px 0 0 !important;
  font-size: 13px;
  color: rgba(241, 237, 228, 0.72);
  max-width: none !important;
}

.avviso-countdown.is-ended .avviso-countdown-value {
  color: var(--avviso-orange);
}

.avviso-countdown.is-ended .avviso-countdown-sep {
  animation: none;
  opacity: 0.35;
}

@keyframes avviso-countdown-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.avviso-cta-note {
  margin-top: 18px;
  font-family: var(--avviso-body);
  font-size: 14px;
  opacity: 0.75;
}

.avviso-cta-note a { color: var(--groove-terracotta-light); text-decoration: underline; }
.avviso-cta-note strong { color: var(--avviso-cream); }

.avviso-info-cta {
  margin-top: 28px;
  max-width: 520px;
}

.avviso-info-cta-label {
  margin: 0 0 12px !important;
  font-family: var(--avviso-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b8e86a;
  max-width: none !important;
}

.avviso-info-cta-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.avviso-phone-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 14px;
  border-radius: 14px;
  background: linear-gradient(160deg, #8fd63a 0%, #5fad18 45%, #3f8f0f 100%);
  color: #143006;
  text-decoration: none;
  text-align: center;
  box-shadow:
    0 0 0 3px rgba(143, 214, 58, 0.35),
    0 14px 32px rgba(63, 143, 15, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.avviso-phone-btn:hover,
.avviso-phone-btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.06);
  box-shadow:
    0 0 0 3px rgba(184, 232, 106, 0.55),
    0 18px 40px rgba(63, 143, 15, 0.55);
  outline: none;
}

.avviso-phone-btn-label {
  font-family: var(--avviso-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.avviso-phone-btn-number {
  font-family: var(--avviso-display);
  font-size: clamp(18px, 2.6vw, 24px);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #0f2804;
}

.avviso-qr {
  margin: 0;
  justify-self: end;
  text-align: center;
  background: #fff;
  padding: 18px;
  border-radius: 20px;
  max-width: 280px;
}

.avviso-qr img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.avviso-qr figcaption {
  font-family: var(--avviso-body);
  font-size: 13px;
  color: var(--avviso-brown);
  margin-top: 10px;
}

@media (max-width: 960px) {
  .avviso-page { --avviso-header-offset: 110px; }

  .avviso-intro {
    min-height: 0;
    align-items: flex-start;
    padding: calc(var(--avviso-header-offset) + 16px) 0 28px;
  }

  .avviso-intro-inner {
    max-width: 100%;
  }

  .avviso-intro .btn-primary {
    margin-bottom: 0;
  }

  .avviso-stack {
    padding-top: 4px;
    padding-bottom: 28px;
  }

  .avviso-slide {
    position: relative;
    top: auto;
    min-height: 0;
    z-index: auto;
    padding: 14px 0;
  }

  .avviso-slide-frame {
    grid-template-columns: 1fr;
    width: calc(100% - 68px);
    max-height: none;
    margin-left: 12px;
    margin-right: 56px;
    transform: none !important;
    opacity: 1 !important;
  }

  .avviso-slide-media {
    padding: 12px 12px 0;
  }

  .avviso-slide-media img {
    max-height: none;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .avviso-pager {
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 120;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    padding: 8px 6px;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .avviso-pager-arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
    flex-shrink: 0;
  }

  .avviso-pager-dot {
    width: 32px;
    height: 26px;
    font-size: 12px;
  }

  .avviso-cta-grid { grid-template-columns: 1fr; }
  .avviso-qr { justify-self: start; }

  .avviso-cta-bg img {
    right: -20%;
    width: min(90vw, 520px);
    opacity: 0.28;
  }

  .avviso-cta-bg::after {
    background:
      linear-gradient(180deg, rgba(82, 44, 20, 0.72) 0%, rgba(82, 44, 20, 0.5) 45%, rgba(82, 44, 20, 0.82) 100%),
      linear-gradient(90deg, var(--groove-brown) 0%, rgba(82, 44, 20, 0.75) 55%, transparent 100%);
  }

  .avviso-info-cta-buttons {
    grid-template-columns: 1fr;
  }

  .avviso-luogo-grid {
    grid-template-columns: 1fr;
  }

  .avviso-luogo {
    padding: 56px 0 64px;
  }

  .avviso-countdown-sep {
    font-size: 20px;
    padding-bottom: 12px;
  }

  .avviso-intro-bg img {
    right: -12%;
    width: min(96vw, 620px);
    max-height: 70%;
    opacity: 0.22;
  }

  .avviso-intro-bg::after {
    background:
      linear-gradient(180deg, rgba(241, 237, 228, 0.72) 0%, rgba(241, 237, 228, 0.45) 40%, rgba(241, 237, 228, 0.82) 100%),
      linear-gradient(90deg, var(--groove-cream) 0%, rgba(241, 237, 228, 0.7) 55%, transparent 100%);
  }
}

@media (max-width: 640px) {
  .avviso-page { --avviso-header-offset: 100px; }

  .avviso-slide-frame {
    width: calc(100% - 52px);
    margin-left: 8px;
    margin-right: 44px;
    border-radius: 18px;
  }

  .avviso-slide-body { padding: 14px; }
  .avviso-slide-logo { width: 110px; }

  .avviso-countdown {
    padding: 14px 12px 12px;
  }

  .avviso-countdown-grid {
    gap: 4px;
  }

  .avviso-countdown-unit {
    padding: 10px 4px 8px;
  }

  .avviso-countdown-value {
    font-size: 24px;
  }

  .avviso-countdown-sep {
    font-size: 16px;
    padding-bottom: 10px;
  }
}
