/* Opportunità: nascosta finché site-settings non conferma visibilità (evita flash al reload) */
html:not(.rb-opp-nav-visible) [data-nav-section="opportunities"],
html:not(.rb-opp-nav-visible) a[href*="opportunita.html"],
html:not(.rb-opp-nav-visible) a[href*="bando-detail.html"] {
  display: none !important;
}

/* Scroll progress bar */
html{
  scrollbar-width: none;
  overflow-x: hidden;
}
html::-webkit-scrollbar{
  display: none;
}
#scroll-progress-bar{
  position: fixed;
  right: 0;
  top: 0;
  width: 5px;
  background: #ff0000;
  z-index: 9999;
  pointer-events: none;
  transition: top 0.05s linear, background 0.15s ease;
}
body.article-layout #scroll-progress-bar,
body.map-open #scroll-progress-bar{
  display: none;
}

:root{
  --bg: #f7f6f2;
  --text: #0b0b0b;
  --accent: #ff0000;
  --muted: rgba(11,11,11,.62);
  --line: rgba(11,11,11,.14);
  --shadow: 0 22px 60px rgba(0,0,0,.10);
  --max: 1200px;
  --nav-h: 72px;
  /* Somma margini sx+dx rispetto al viewport (.container, intro, hot items, ecc.) */
  --container-pad: 40px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; }

.container{
  width: min(
    var(--max),
    calc(
      100% - var(--container-pad) - env(safe-area-inset-left, 0px) -
        env(safe-area-inset-right, 0px)
    )
  );
  margin-inline: auto;
}

.intro-active{
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  scrollbar-width: none;
}
.intro-active::-webkit-scrollbar{
  display: none;
}
html:has(body.intro-active){
  overflow: hidden !important;
  background-color: #ff0000;
  scrollbar-color: #ff0000 #ff0000;
}
html:has(body.intro-active)::-webkit-scrollbar-track{
  background: #ff0000;
}
html:has(body.intro-active)::-webkit-scrollbar-thumb{
  background: #ff0000;
}
.intro-overlay{
  position: fixed;
  inset: 0;
  background: rgb(234, 0, 2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1300;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 500ms ease;
}
.intro-overlay.is-closing{
  opacity: 0;
  pointer-events: none;
}
/* Nasconde la barra nativa del browser sul video */
.intro-video::-webkit-media-controls,
.intro-video::-webkit-media-controls-enclosure,
.intro-video::-webkit-media-controls-panel,
.intro-video::-webkit-media-controls-timeline{
  display: none !important;
}
.intro-inner{
  width: min(
    520px,
    calc(
      100% - var(--container-pad) - env(safe-area-inset-left, 0px) -
        env(safe-area-inset-right, 0px)
    )
  );
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
/* Il canvas mostra la fascia ritagliata del video (logo nero su rosso). */
.intro-canvas{
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  transform-origin: center center;
  will-change: transform;
  /* Sfuma i bordi della fascia nel rosso di sfondo, così non si vede la
     cucitura tra il rosso del video (mp4) e il rosso CSS dell'overlay. */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 7px, #000 calc(100% - 7px), transparent 100%),
    linear-gradient(to right, transparent 0, #000 7px, #000 calc(100% - 7px), transparent 100%);
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 7px, #000 calc(100% - 7px), transparent 100%),
    linear-gradient(to right, transparent 0, #000 7px, #000 calc(100% - 7px), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
/* Il video è solo la sorgente dei fotogrammi: resta nascosto fuori schermo
   (display:none impedirebbe la decodifica dei frame, quindi usiamo opacity 0). */
.intro-video{
  position: absolute;
  width: 2px;
  height: 2px;
  top: -10px;
  left: -10px;
  opacity: 0;
  pointer-events: none;
}
.intro-skip{
  margin-top: 14px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.6);
  background: transparent;
  color: #fff;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.intro-skip:hover{
  background: rgba(255,255,255,.2);
  border-color: #fff;
}
.intro-tap-hint{
  margin: 10px 0 0;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  animation: intro-tap-pulse 1.4s ease-in-out infinite;
}
@keyframes intro-tap-pulse{
  0%, 100%{ opacity: .55; }
  50%{ opacity: 1; }
}

.article-layout{
  padding-top: 0;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: 16px;
  top: 16px;
  width:auto;
  height:auto;
  padding: 10px 12px;
  background: var(--bg);
  border: 2px solid var(--text);
  z-index: 9999;
}

.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(247, 246, 242, .92);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.nav{
  height: 100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}

.logo{
  display: inline-flex;
  align-items: center;
}

.logo img{
  height: 32px;
  display: block;
  transition: transform 160ms ease, filter 160ms ease;
}
.logo:hover img{
  transform: scale(0.96);
  filter: grayscale(1) brightness(0);
}

.nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 13px;
}
.nav-links a{
  position: relative;
  padding: 10px 2px;
  color: var(--accent);
  opacity: 1;
}
.nav-links a::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:6px;
  height:2px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.nav-links a:hover{ opacity: 1; }
.nav-links a:hover::after{ transform: scaleX(1); }
.nav-links a:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
  opacity: 1;
}

.search-lang-group{
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-switch{
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-btn{
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  opacity: 0.7;
  transition: opacity 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.lang-btn:hover{
  opacity: 1;
  border-color: rgba(11,11,11,.3);
}
.lang-btn.is-active{
  opacity: 1;
  border-color: var(--accent);
}
.lang-btn:active{
  transform: scale(0.96);
}

.events-filters__map-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.lang-switch--site-events .lang-btn{
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.search-btn{
  width: 40px;
  height: 40px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.search-btn:hover{
  border-color: rgba(11,11,11,.26);
  background: rgba(0,0,0,.03);
}
.search-btn:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.search-btn:active{ transform: translateY(1px); }
.icon{ display:block; }

body.site-search-modal-open{
  overflow: hidden;
}

.site-search-modal{
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--nav-h) + 16px) 20px 32px;
}
.site-search-modal[hidden]{
  display: none !important;
}
.site-search-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.42);
  border: none;
  padding: 0;
  cursor: pointer;
}
.site-search-modal__panel{
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  border-radius: 2px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}
.site-search-modal__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.site-search-modal__title{
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-search-modal__close{
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: -8px -8px -8px 0;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  opacity: 0.72;
  transition: opacity 150ms ease;
}
.site-search-modal__close:hover{
  opacity: 1;
}
.site-search-modal__input{
  margin: 14px 18px 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  width: calc(100% - 36px);
  align-self: center;
  background: #fff;
}
.site-search-modal__input:focus{
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.site-search-modal__live{
  min-height: 1.25rem;
  margin: 4px 18px 0;
  font-size: 12px;
  color: var(--muted);
}
.site-search-modal__sections{
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px 18px;
}
.site-search-modal__empty{
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.site-search-modal__section{
  margin-top: 16px;
}
.site-search-modal__section:first-child{
  margin-top: 4px;
}
.site-search-modal__section-title{
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.site-search-modal__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-search-hit{
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.site-search-hit:hover{
  border-color: rgba(255, 0, 0, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.site-search-hit__thumb{
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 2px;
  background: var(--line);
}
.site-search-hit__body{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.site-search-hit__title{
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.site-search-hit__meta{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero{
  padding: 24px 0 18px;
}
.hero-card{
  position: relative;
  border: none;
  background: #101010;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-title-link{
  text-decoration: none;
  color: inherit;
}
.hero-photo-link{
  position: relative;
  display: block;
  height: 100%;
  min-height: clamp(420px, 58vh, 620px);
  min-height: clamp(420px, 58svh, 620px);
  text-decoration: none;
  color: inherit;
}
/* Griglia a 3 colonne invisibili: prime 2 = testo su immagine sfocata, terza = foto intera nitida */
.hero-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: inherit;
  align-items: stretch;
  min-height: clamp(420px, 58vh, 620px);
  min-height: clamp(420px, 58svh, 620px);
}
.hero-panel{
  position: relative;
  min-height: 0;
}
.hero-panel--copy{
  grid-column: span 2;
  overflow: hidden;
  background: #141414;
}
.hero-blur-bg{
  position: absolute;
  inset: -12px;
  background:
    radial-gradient(1200px 500px at 70% 10%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(135deg, #2c2c2c 0%, #0f0f0f 55%, #1a1a1a 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(22px) saturate(.92);
  transform: scale(1.06);
  pointer-events: none;
}
.hero-copy-scrim{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.42) 55%,
    rgba(0,0,0,.28) 100%
  );
  pointer-events: none;
}
.hero-copy-inner{
  position: relative;
  z-index: 2;
  min-height: 100%;
  min-height: clamp(420px, 58vh, 620px);
  min-height: clamp(420px, 58svh, 620px);
  padding: clamp(20px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  box-sizing: border-box;
}
.hero-copy-inner .tag{
  position: static;
  z-index: auto;
  align-self: flex-start;
}
.hero-panel--photo{
  background: #0c0c0c;
  border: none;
}
.hero-sharp-photo{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 500px at 50% 20%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-title{
  margin:0;
  color:#fff;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: .92;
  font-size: clamp(26px, 4vw, 52px);
  max-width: 16ch;
  display: inline-block;
  transform-origin: left center;
  transition: transform 200ms ease, color 200ms ease;
}
.hero-title:hover{
  color: var(--accent);
  transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce){
  .hero-title{
    transition: color 200ms ease;
  }
  .hero-title:hover{
    transform: none;
  }
}
.hero-byline{
  position: static;
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 600;
}
.hero-byline-label{
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-author-inline{
  border-bottom: 1px solid rgba(255,255,255,.5);
  transition: color 160ms ease, border-color 160ms ease;
}
.hero-author-inline:hover{
  color: var(--accent);
  border-bottom-color: var(--accent);
}
#home-hero-author-slot:not(:empty){
  display: inline;
}
.hero-author-link{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.5);
  transition: border-color 160ms ease, color 160ms ease;
}
.hero-author-link:hover{
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.latest{
  padding: 30px 0 10px;
}

.about-blurb{
  margin: 0;
  max-width: 42rem;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text);
}

.about-body{
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-body p{
  margin: 0;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 900;
  line-height: 1.45;
  color: var(--text);
}
.about-body strong{
  font-weight: 900;
  color: var(--accent);
}
.about-list{
  margin: 0;
  padding: 0 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-list li{
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 900;
  line-height: 1.45;
  color: var(--text);
}
.about-closing{
  border-top: 1px solid var(--line);
  padding-top: 1.5rem !important;
}

/* ——— Team listing (team.html) ——— */
.team-list-section{
  padding-bottom: 48px;
}
.team-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px 22px;
}
/* Thumb team: quadrato come prima, stessi effetti .thumb degli articoli */
.team-grid .thumb.team-card-thumb{
  aspect-ratio: 1;
}
.team-grid .card .card-title{
  font-size: clamp(17px, 0.35vw + 15.6px, 19px);
}
.team-grid .card .team-card-role{
  margin: 10px 0 2px;
  font-size: clamp(12px, 0.2vw + 11.2px, 13px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.team-empty{
  margin: 0;
  font-weight: 600;
  color: var(--muted, rgba(11, 11, 11, 0.62));
}
.team-grid .card--team-articles-only .team-card-thumb--articles-only:not([style*="background-image"]){
  background: linear-gradient(145deg, #fdeaea 0%, #fff 55%);
}
.team-grid .card--team-articles-only .team-card-role--link{
  color: var(--accent);
  font-weight: 800;
}

/* ——— Team profile (team-member.html) ——— */
.team-member-page-body .site-footer{
  margin-top: 0;
}
.team-member-error{
  padding: calc(var(--nav-h) + 32px) 20px 32px;
  font-weight: 700;
  color: var(--accent);
}
.team-profile{
  padding-bottom: 48px;
}
/* Contributori saltuari: solo griglia articoli, senza hero/bio */
.team-profile--articles-only .team-profile-hero,
.team-profile--articles-only .team-profile-body{
  display: none;
}
.team-profile--articles-only .team-profile-articles-wrap{
  margin-top: 0;
  padding-top: calc(var(--nav-h) + 24px);
}
.team-profile--articles-only .team-profile-articles-bar{
  font-size: clamp(18px, 2.8vw, 28px);
  line-height: 1.15;
  padding: clamp(1.25rem, 3vw, 1.75rem) 20px;
}
.team-profile-hero{
  position: relative;
  overflow: hidden;
  background: #0c0c0c;
}
.team-profile-hero-grid{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  min-height: clamp(360px, 68vh, 820px);
  width: 100%;
}
.team-profile-hero-panel--image{
  flex: 0 1 auto;
  /* lascia sempre spazio minimo al pannello nome/sfocato */
  max-width: calc(100% - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(360px, 68vh, 820px);
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--bg);
}
.team-profile-hero-img{
  display: block;
  width: auto;
  height: auto;
  max-height: clamp(360px, 68vh, 820px);
  /* larghezza dalla proporzione reale della foto (dopo il clamp in altezza) */
  object-fit: contain;
  object-position: center;
}
.team-profile-hero-panel--blur{
  position: relative;
  flex: 1 1 200px;
  min-width: 200px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(360px, 68vh, 820px);
}
.team-profile-hero-blur-stack{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.team-profile-hero-blur{
  position: absolute;
  inset: -18%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(52px);
  transform: scale(1.12);
  pointer-events: none;
  opacity: 0.95;
}
@media (prefers-reduced-motion: reduce){
  .team-profile-hero-blur{
    filter: blur(28px);
  }
}
.team-profile-hero-blur-scrim{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.42);
  pointer-events: none;
}
.team-profile-hero-name-inner{
  position: relative;
  z-index: 2;
  padding: clamp(22px, 4.5vw, 48px);
  width: 100%;
  box-sizing: border-box;
}
.team-profile-name{
  margin: 0;
  max-width: none;
  font-size: clamp(18px, 3.2vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
@media (max-width: 640px){
  /* Solo mobile: foto a tutta larghezza + nome in basso sopra gradiente (niente split a due colonne) */
  .team-profile-hero-grid{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(300px, min(64vh, 480px));
    align-items: stretch;
    justify-items: stretch;
    min-height: 0;
    padding: 0;
    gap: 0;
    box-sizing: border-box;
  }
  .team-profile-hero-panel--image{
    flex: unset;
    grid-column: 1;
    grid-row: 1;
    grid-area: 1 / 1 / 2 / 2;
    z-index: 0;
    max-width: none;
    min-height: 100%;
    height: 100%;
    width: 100%;
    align-self: stretch;
    align-items: stretch;
    justify-content: stretch;
    background: #0c0c0c;
  }
  .team-profile-hero-img{
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 300px;
    object-fit: cover;
    object-position: center top;
    /* Alzare il soggetto nel box (meno “vuoto” sopra, volto più centrato verticalmente) */
    transform: translate3d(0, clamp(-10px, -5vw, -24px), 0);
    display: block;
  }
  .team-profile-hero-panel--blur{
    flex: unset;
    grid-column: 1;
    grid-row: 1;
    grid-area: 1 / 1 / 2 / 2;
    z-index: 1;
    min-width: 0;
    min-height: 100%;
    height: 100%;
    width: 100%;
    isolation: auto;
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    align-self: stretch;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.45) 38%,
      rgba(0, 0, 0, 0) 72%
    );
  }
  .team-profile-hero-blur-stack{
    display: none;
  }
  .team-profile-hero-name-inner{
    padding: 0 16px 18px;
    box-sizing: border-box;
    pointer-events: auto;
    width: 100%;
  }
  .team-profile-name{
    font-size: clamp(18px, 6vw, 28px);
    line-height: 1.05;
  }
}
@media (max-width: 480px){
  .team-profile-hero-grid{
    grid-template-rows: minmax(280px, min(60vh, 440px));
  }
  .team-profile-hero-name-inner{
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 16px;
  }
}
.team-profile-body{
  background: #fff;
  /* Padding sotto moderato: respiro tra testo e barra rossa senza la grande fascia di prima */
  padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3.5vw, 36px);
}
.team-profile-top{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 880px){
  .team-profile-top{
    grid-template-columns: 1fr minmax(200px, 260px);
    gap: 40px 48px;
  }
}
.team-profile-role-wrap{
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 18px);
  margin: 0 0 clamp(22px, 3vw, 28px);
}
.team-profile-role-line{
  display: inline-block;
  width: clamp(44px, 6vw, 64px);
  height: clamp(5px, 0.6vw, 6px);
  flex-shrink: 0;
  background: var(--accent);
}
.team-profile-role-text{
  font-size: clamp(14px, 1.65vw, 20px);
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text);
}
.team-profile-bio{
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text);
}
.team-profile-bio p{
  margin: 0 0 1em;
}
.team-profile-bio p:last-child{
  margin-bottom: 0;
}
.team-profile-bio .quoted-phrase{
  white-space: nowrap;
}
.team-profile-aside{
  position: sticky;
  top: calc(var(--nav-h) + 12px);
}
.team-profile-ig{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
}
.team-profile-ig-icon{
  flex-shrink: 0;
}
.team-profile-articles-wrap{
  margin-top: 0;
}
.team-profile-articles-bar{
  margin: 0;
  padding: clamp(1rem, 2.2vw, 1.35rem) 20px;
  /* Stesso font e ritmo tipografico delle altre sezioni (.section-title / body) */
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(15px, 2.2vw, 22px);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: var(--accent);
}
.team-profile-no-articles{
  margin: 1.5rem 0 0;
  font-weight: 600;
  color: var(--muted, rgba(11, 11, 11, 0.62));
}

/* Stesse interazioni delle card articoli (home / archivio / correlati) */
.team-profile-articles-wrap .card{
  border: none;
}
.team-profile-articles-wrap .card:hover{
  background: #ff0000;
}
.team-profile-articles-wrap .card:hover .card-title{
  color: var(--text);
}

.article-author-link{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
  transition: color 0.15s ease;
}
.article-author-link:hover{
  color: var(--accent);
}

.section-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 6px 0 18px;
  border-bottom: 1px solid var(--line);
}
.section-title{
  margin:0;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-size: 20px;
}
.section-title--all{
  color: #ff0000;
  font-size: 26px;
}
.section-title--latest{
  color: #ff0000;
  font-size: 28px;
}

.hero-title,
.section-title,
.events-lead,
.event-title,
.hot-item-title,
.hot-item-subtitle,
.about-blurb{
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.articles-list .card,
.latest .card,
.team-grid .card{
  border: none;
}
.articles-list .card:hover,
.latest .card:hover,
.team-grid .card:hover{
  background: #ff0000;
}
.articles-list .card:hover .card-title,
.latest .card:hover .card-title,
.team-grid .card:hover .card-title{
  color: var(--text);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 22px 0 10px;
}

.latest-cta{
  display: flex;
  justify-content: center;
  padding: 28px 0 10px;
}
.btn-explore{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: #ff0000;
  color: #fff;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px;
  transition: transform 160ms ease, opacity 160ms ease;
}
.btn-explore:hover{
  opacity: .92;
  transform: translateY(-2px);
}

.events-strip{
  padding: 26px 0 18px;
  border-top: 1px solid var(--line);
}
.events-strip .section-head{
  align-items: center;
  gap: clamp(12px, 3vw, 20px);
}
.events-strip .section-head .section-title{
  flex: 1 1 auto;
  min-width: 0;
}
.events-strip .section-head__actions{
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px 10px;
  justify-content: flex-end;
  flex-shrink: 0;
}
.events-strip .section-head__actions .btn-map{
  white-space: nowrap;
}
.events-strip .section-head__actions .lang-switch--home-strip{
  flex-shrink: 0;
}
@media (max-width: 420px){
  .events-strip .section-head__actions{
    gap: 6px;
  }
  .events-strip .section-head__actions .btn-map{
    padding: 7px 10px;
    font-size: 11px;
    letter-spacing: 0.05em;
  }
  .lang-switch--home-strip .lang-btn{
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}
.lang-switch--home-strip .lang-btn{
  width: 34px;
  height: 34px;
  font-size: 17px;
}
.events-scroller{
  margin-top: 18px;
  padding: 8px 0 4px;
  display:flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.events-scroller::-webkit-scrollbar{
  height: 4px;
}
.events-scroller::-webkit-scrollbar-track{
  background: transparent;
}
.events-scroller::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.18);
}
.event-card{
  scroll-snap-align: start;
  min-width: 220px;
  max-width: 260px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.01);
  padding: 14px 14px 16px;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
#next-events .event-card[data-detail-url],
#next-events .event-card[data-event-slug]{
  cursor: pointer;
}
#next-events .event-card[data-detail-url]:hover,
#next-events .event-card[data-event-slug]:hover{
  border-color: #ff0000;
  box-shadow: 0 0 0 1px #ff0000, 0 4px 16px rgba(255,0,0,.10);
  transform: translateY(-2px);
}
#next-events .event-card[data-detail-url]:hover .event-title,
#next-events .event-card[data-event-slug]:hover .event-title{
  color: var(--accent);
  transform: scale(1.06);
}
/* Homepage: strip eventi senza immagini (solo pagina Eventi + scheda evento hanno cover) */
.events-strip .event-card img{
  display: none !important;
}
.event-meta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.event-date{
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.event-tags{
  display: flex;
  align-items: center;
  gap: 6px;
}
.event-tag{
  display: inline-block;
  padding: 4px 8px;
  background: var(--accent);
  color:#fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  white-space: nowrap;
}
.rb-mob__tag{
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--rb-tag-color, #ff0000);
  background: color-mix(in srgb, var(--rb-tag-color, #ff0000) 12%, white);
  white-space: nowrap;
  text-transform: uppercase;
}
.event-cat-tag{
  display: inline-block;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}
.event-type-tag{
  display: inline-block;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.event-card__type{
  margin-top: 6px;
}
.event-card__time{
  margin: 3px 0 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}
.event-rsvp-tag{
  display: inline-block;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  white-space: nowrap;
}
.event-rsvp-tag--required{
  background: rgba(200, 60, 60, .15);
  color: #b33;
}
.event-rsvp-tag--free{
  background: rgba(34,197,94,.15);
  color: #15803d;
}
.event-rsvp-tag--unavailable{
  background: rgba(120, 120, 120, .16);
  color: #5c5c5c;
}
.event-title{
  margin: 6px 0 4px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-size: 14px;
  color: inherit;
  width: fit-content;
  max-width: 100%;
  transform-origin: left center;
  transition: color 0.22s ease, transform 0.22s ease;
}
.events-strip .event-title,
#next-events .event-title{
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}
.event-title:hover{
  color: var(--accent);
  transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce){
  .event-title{
    transition: color 0.15s ease;
  }
  .event-title:hover{
    transform: none;
  }
}
.event-location{
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.btn-map{
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.btn-map:hover{
  background: var(--accent);
  color: #fff;
}

.map-modal{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}
.map-modal.is-open{
  opacity: 1;
  visibility: visible;
}
/* Boot deep-link mappa desktop: niente flash homepage al refresh */
@media (min-width: 768px){
  html.rb-map-boot{
    overflow: hidden !important;
    scroll-behavior: auto !important;
  }
  html.rb-map-boot body{
    overflow: hidden !important;
  }
  html.rb-map-boot .skip-link,
  html.rb-map-boot .site-header,
  html.rb-map-boot #scroll-progress-bar,
  html.rb-map-boot main,
  html.rb-map-boot .site-footer,
  html.rb-map-boot .btn-map-fab,
  html.rb-map-boot #rb-mob{
    display: none !important;
  }
  html.rb-map-boot #map-modal-events{
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
    pointer-events: auto;
  }
  html.rb-map-boot.rb-map-boot-fs #map-modal-events{
    padding: 0;
  }
  html.rb-map-boot.rb-map-boot-fs #map-modal-events .map-modal-content{
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}
.map-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  cursor: pointer;
}
.map-modal-content{
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0,0,0,.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.map-modal-content--events-split{
  max-width: min(1040px, 100vw - 40px);
}
.map-modal-body--events-split{
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
@media (min-width: 768px){
  .map-modal-body--events-split{
    flex-direction: row;
    align-items: stretch;
  }
}
.map-events-panel{
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(252, 249, 248, 0.96);
}
@media (min-width: 768px){
  .map-events-panel{
    width: min(300px, 34vw);
    flex-shrink: 0;
    border-bottom: none;
    border-right: 1px solid var(--line);
  }
}
.map-events-list__heading{
  margin: 0;
  padding: 12px 16px 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.map-events-list{
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  overflow-y: auto;
  max-height: 42vh;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px){
  .map-events-list{
    flex: 1;
    max-height: none;
  }
}
.map-events-list__item{
  width: 100%;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(11, 11, 11, 0.08);
}
.map-events-list__btn{
  position: relative;
  width: 100%;
  display: block;
  text-align: left;
  padding: 12px 16px 12px 20px;
  border: none;
  border-left: 4px solid var(--list-cat-color, var(--accent));
  background: #fff;
  cursor: pointer;
  font-family: Inter, system-ui, sans-serif;
  transition: background 120ms;
  border-bottom: 1px solid rgba(11,11,11,.08);
  box-sizing: border-box;
}
.map-events-list__btn:hover{
  background: #fafafa;
}
.map-events-list__btn:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.map-events-list__btn.is-active{
  background: #fff5f5;
}
.map-events-list__btn-head{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}
.map-events-list__btn-title{
  flex: 1;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  text-transform: uppercase;
  min-width: 0;
}
.map-events-list__btn-when{
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
}
.map-events-list__btn-where{
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: #111;
  line-height: 1.4;
}
.map-area{
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ── Map detail panel (desktop) ─────────────────────────── */
.map-detail-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 340px;
  background: #fff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -4px 0 24px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
}
.map-detail-panel.is-open {
  transform: translateX(0);
}
.map-detail-panel__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.map-detail-panel__back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent, #ff0000);
  background: none;
  border: none;
  border-bottom: 1px solid #e7e3da;
  cursor: pointer;
  text-align: left;
}
.map-detail-panel__back:hover { opacity: 0.75; }
.map-detail-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.map-detail-panel__cat-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-detail-panel__cat-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.map-detail-panel__cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.map-detail-panel__name-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.map-detail-panel__name {
  flex: 1;
  min-width: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #111;
  margin: 0;
}
.map-detail-panel__admission {
  display: inline-block;
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  align-self: flex-start;
}
.map-detail-panel__admission--rsvp {
  background: rgba(200,60,60,.15);
  color: #b33;
}
.map-detail-panel__admission--free {
  background: rgba(34,197,94,.15);
  color: #15803d;
}
.map-detail-panel__admission--unavailable {
  background: rgba(120, 120, 120, .16);
  color: #5c5c5c;
}
.map-detail-panel__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.map-detail-panel__when {
  font-size: 13px;
  font-weight: 600;
  color: #111;
}
.map-detail-panel__where {
  font-size: 12px;
  color: #6b6b6b;
}
.map-detail-panel__divider {
  height: 1px;
  background: #e7e3da;
  margin: 4px 0;
}
.map-detail-panel__desc-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent, #ff0000);
  text-transform: uppercase;
}
.map-detail-panel__desc {
  font-size: 13px;
  color: #111;
  line-height: 1.5;
}
.map-detail-panel__desc p {
  margin: 0 0 0.85em;
}
.map-detail-panel__desc p:last-child {
  margin-bottom: 0;
}
.map-detail-panel__desc--loading {
  color: #6b6b6b;
  font-style: italic;
}
.map-detail-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.map-detail-panel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.map-detail-panel__btn--primary {
  background: #111;
  color: #fff;
}
.map-detail-panel__btn--secondary {
  background: #fff;
  color: #111;
  border: 1.5px solid #e7e3da;
}
.map-detail-panel__btn--free {
  background: rgba(34,197,94,.15);
  color: #15803d;
  cursor: default;
  pointer-events: none;
}
.map-detail-panel__btn--rsvp-unavailable {
  background: rgba(120, 120, 120, .16);
  color: #5c5c5c;
  cursor: default;
  pointer-events: none;
}
.map-popup-rsvp--unavailable {
  background: rgba(120, 120, 120, .16);
  color: #5c5c5c;
  cursor: default;
  pointer-events: none;
}
.map-detail-panel__scheda {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent, #ff0000);
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.map-detail-panel__scheda:hover { opacity: 0.75; }
.map-container--in-modal{
  flex: 1;
  min-height: 280px;
  height: auto;
  position: relative;
}
@media (min-width: 768px){
  .map-container--in-modal{
    min-height: 420px;
  }
}
.map-modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.map-modal-title{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.map-modal-close{
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 160ms ease, color 160ms ease;
}
.map-modal-close:hover{
  background: rgba(0,0,0,.06);
  color: var(--accent);
}
.map-container{
  height: 400px;
  min-height: 300px;
  position: relative;
}
.map-fullscreen-btn{
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2001;
  padding: 12px 28px;
  background: #fff;
  border: none;
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.map-fullscreen-btn:hover{
  background: #f5f5f5;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
.map-modal.is-fullscreen .map-fullscreen-btn{
  bottom: 24px;
}
@media (max-width: 767px){
  .map-modal.is-fullscreen .map-fullscreen-btn{
    bottom: 60px;
  }
}
.map-modal.is-fullscreen{
  padding: 0;
}
.map-modal.is-fullscreen .map-modal-content{
  max-width: 100% !important;
  max-height: 100% !important;
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.map-modal.is-fullscreen .map-modal-body--events-split{
  flex: 1;
  min-height: 0;
}
.map-modal.is-fullscreen .map-container--in-modal{
  flex: 1;
  height: auto;
  min-height: 0;
}

/* ── Fullscreen: larger chips, slightly larger list ───────── */
.map-modal.is-fullscreen .map-events-list__btn{
  padding: 13px 16px 13px 22px;
}
.map-modal.is-fullscreen .map-events-list__btn-title{
  font-size: 15px;
}
.map-modal.is-fullscreen .map-events-list__btn-when,
.map-modal.is-fullscreen .map-events-list__btn-where{
  font-size: 12px;
  margin-top: 3px;
}
.map-modal.is-fullscreen .map-chips{
  top: 14px;
  gap: 8px;
}
.map-modal.is-fullscreen .map-chip{
  font-size: 12px;
  padding: 9px 16px;
  gap: 8px;
}
.map-modal.is-fullscreen .map-chip__dot{
  width: 9px;
  height: 9px;
}
/* ── Map chip-style legend (matches mobile chip row) ─── */
.map-chips{
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}
.map-chips::-webkit-scrollbar{ display: none; }
.map-chip{
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: #fff;
  color: #111;
  border: 1.5px solid rgba(11,11,11,.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  cursor: pointer;
  transition: border-color 120ms;
  appearance: none;
  -webkit-appearance: none;
  text-transform: uppercase;
  font-family: Inter, system-ui, sans-serif;
}
.map-chip.is-active{
  border-color: var(--map-chip-color, var(--accent));
}
.map-chip:not(.is-active){
  opacity: .55;
}
.map-chip__dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
@media (min-width: 768px){
  .map-fullscreen-btn{
    font-size: 13px;
    padding: 12px 28px;
    letter-spacing: 0.08em;
  }
}
.map-landmark-label{
  background: none !important;
  border: none !important;
  pointer-events: none !important;
}
.map-landmark{
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  pointer-events: none;
}
.map-landmark-dot{
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.7);
}
.map-landmark-name{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(0,0,0,.45);
  text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 -1px 0 rgba(255,255,255,.9),
               1px 0 0 rgba(255,255,255,.9), -1px 0 0 rgba(255,255,255,.9);
}
.map-marker-red,
.map-marker-dot{
  background: none !important;
  border: none !important;
}
.map-marker-pin{
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.map-popup-title-row{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.map-popup-type-tag,
.map-events-list__type-tag{
  display: inline-block;
  padding: 2px 6px;
  background: rgba(11,11,11,.06);
  border: 1px solid rgba(11,11,11,.12);
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(11,11,11,.55);
  vertical-align: middle;
  white-space: nowrap;
}
.map-events-list__type-tag{
  margin-left: 6px;
}
.map-popup-rsvp{
  display: inline-block;
  margin-top: 4px;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.map-popup-rsvp--required{
  background: rgba(200, 60, 60, .2);
  color: #b33;
}
.map-popup-rsvp--free{
  background: rgba(0,0,0,.08);
  color: var(--muted);
}
button.map-popup-rsvp-link,
a.map-popup-rsvp-link{
  /* Reset-only: same visual as original <span> pill */
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  background: transparent;
  color: inherit;
  line-height: 1.2;
  vertical-align: baseline;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 6px;
}
.leaflet-popup-content button.map-popup-rsvp-link.map-popup-rsvp--required,
.leaflet-popup-content a.map-popup-rsvp-link.map-popup-rsvp--required{
  /* Re-assert pill colors (Leaflet / popup styles can override buttons) */
  background: rgba(200, 60, 60, 0.2) !important;
  color: #b33 !important;
}
button.map-popup-rsvp-link.map-popup-rsvp--required:hover,
.leaflet-popup-content button.map-popup-rsvp-link.map-popup-rsvp--required:hover,
a.map-popup-rsvp-link.map-popup-rsvp--required:hover,
.leaflet-popup-content a.map-popup-rsvp-link.map-popup-rsvp--required:hover{
  color: #ff0000 !important;
  text-decoration: underline;
}
button.map-popup-rsvp-link.map-popup-rsvp--required:focus-visible,
a.map-popup-rsvp-link.map-popup-rsvp--required:focus-visible{
  color: #ff0000 !important;
  text-decoration: underline;
  outline: 2px solid #ff0000;
  outline-offset: 2px;
}

.event-rsvp-tag-link{
  text-decoration: none;
  color: inherit;
  display: inline-block;
}
.event-rsvp-tag-link:focus-visible{
  outline: 2px solid var(--accent, #c40000);
  outline-offset: 2px;
}
.map-popup-links{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.map-popup-directions,
.leaflet-popup-content a.map-popup-directions{
  font-size: 13px;
  font-weight: 600;
  color: #ff0000 !important;
  text-decoration: none;
}
.map-popup-directions:hover,
.leaflet-popup-content a.map-popup-directions:hover{
  color: #ff0000 !important;
  text-decoration: underline;
}
.map-popup-details,
.leaflet-popup-content a.map-popup-details{
  font-size: 13px;
  font-weight: 600;
  color: #ff0000 !important;
  text-decoration: none;
}
.map-popup-details:hover,
.leaflet-popup-content a.map-popup-details:hover{
  color: #ff0000 !important;
  text-decoration: underline;
}

/* ── Mobile-style popup card ─────────────────────────── */
.rb-map-popup .leaflet-popup-content-wrapper{
  border-radius: 16px;
  box-shadow: 0 6px 28px rgba(0,0,0,.15);
  padding: 0;
  overflow: hidden;
}
.rb-map-popup .leaflet-popup-content{
  margin: 0;
  padding: 0;
  width: 270px !important;
}
.rb-map-popup .leaflet-popup-tip-container{
  display: none;
}
.map-popup-card{
  padding: 14px 16px 16px;
  font-family: Inter, system-ui, sans-serif;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rb-mob-pin,
.leaflet-div-icon.rb-mob-pin {
  overflow: visible !important;
}
.rb-mob-pin__wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  vertical-align: bottom;
  overflow: visible;
}
.rb-mob-pin__wrap--stacked {
  overflow: visible;
}
.rb-mob-pin__badge {
  position: absolute;
  top: calc(var(--rb-pin-size, 24px) * -0.05);
  right: calc(var(--rb-pin-size, 24px) * -0.20);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--rb-pin-size, 24px) * 0.58);
  height: calc(var(--rb-pin-size, 24px) * 0.58);
  min-width: 0;
  padding: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  border: 2px solid #fff;
  font-family: Inter, system-ui, sans-serif;
  font-size: calc(var(--rb-pin-size, 24px) * 0.38);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}
.rb-mob-pin--active .rb-mob-pin__badge {
  display: none;
}
.rb-mob-pin.rb-mob-pin--stacked {
  overflow: visible;
}
.rb-mob-pin__wrap {
  transform-origin: 50% 100%;
  transition: transform 160ms ease;
}
.rb-mob-pin svg {
  overflow: visible;
  display: block;
}
.rb-mob-pin--active .rb-mob-pin__wrap {
  transform: scale(1.2);
}
.rb-mob-pin--active svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}
.map-popup-venue {
  padding: 14px 14px 12px;
  font-family: Inter, system-ui, sans-serif;
  background: #fff;
}
.map-popup-venue__title {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
}
.map-popup-venue__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-popup-venue__pick {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(11, 11, 11, 0.1);
  border-radius: 10px;
  background: #faf8f6;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.map-popup-venue__pick:hover {
  background: #f2eeea;
}
.map-popup-venue__pick-name {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #111;
}
.map-popup-venue__pick-when {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #666;
}
.map-popup-card__head{
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-popup-card__cat-dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex-shrink: 0;
}
.map-popup-card__cat{
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.map-popup-card__close{
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f0ede8;
  border: none;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  flex-shrink: 0;
}
.map-popup-card__close:hover{
  background: #e0ddd8;
}
.map-popup-card__name{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.1px;
  line-height: 1.1;
  color: #111;
  margin: 0;
}
.map-popup-card__meta{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.map-popup-card__when{
  font-size: 12px;
  font-weight: 600;
  color: #111;
}
.map-popup-card__where{
  font-size: 12px;
  color: #111;
}
.map-popup-card__address{
  font-size: 11px;
  color: #111;
}
.map-popup-card__actions{
  display: flex;
  gap: 8px;
  margin-top: 2px;
}
.map-popup-card__btn,
.leaflet-popup-content a.map-popup-card__btn{
  flex: 1;
  height: 46px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: Inter, system-ui, sans-serif;
  transition: opacity 120ms;
}
.map-popup-card__btn:hover,
.leaflet-popup-content a.map-popup-card__btn:hover{
  opacity: .85;
}
.map-popup-card__btn--primary,
.leaflet-popup-content a.map-popup-card__btn--primary{
  background: #111 !important;
  color: #fff !important;
}
.map-popup-card__btn--secondary,
.leaflet-popup-content a.map-popup-card__btn--secondary{
  background: #fff !important;
  color: #111 !important;
  border: 1.5px solid rgba(11,11,11,.2) !important;
}

/* =========================
   HOT ITEMS
   ========================= */

.hot-items{
  background: var(--accent);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.hot-items-inner{
  width: min(
    var(--max),
    calc(
      100% - var(--container-pad) - env(safe-area-inset-left, 0px) -
        env(safe-area-inset-right, 0px)
    )
  );
  margin-inline: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hot-items-header{
  text-align: center;
  margin-bottom: 24px;
  width: 100%;
}
.hot-items-title{
  margin: 0 0 6px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.hot-items-line{
  width: 64px;
  height: 3px;
  background: #fff;
  margin: 0 auto;
}
.hot-items-carousel{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  width: 100%;
}
.hot-items-swipe-hint{
  display: none;
}
.hot-items-nav{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.hot-items-nav:hover{
  background: #1a1a1a;
  color: #fff;
}
.hot-items-nav--next{
  left: auto;
  right: 0;
}
@media (min-width: 980px){
  .hot-items-nav{ left: 32px; }
  .hot-items-nav--next{ right: 32px; left: auto; }
}
.hot-items-viewport{
  overflow: hidden;
  width: 100%;
  padding: 0 clamp(44px, 6vw, 64px);
}
.hot-items-track{
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  transition: transform 400ms ease;
  padding: 0 2px;
  position: relative;
}
.hot-item{
  flex: 0 0 280px;
  width: 280px;
  min-width: 0;
  transition: filter 500ms ease, opacity 500ms ease, transform 500ms ease;
}
.hot-item--side{
  display: block;
  flex: 0 0 175px;
  width: 175px;
  filter: blur(2px);
  opacity: .6;
  transform: scale(.92);
}
.hot-item--side .hot-item-content{ display: none; }
.hot-item--side .hot-item-label{ display: block; }
.hot-item--center .hot-item-label{ display: none; }
.hot-item--center .hot-item-content{ display: block; }
.hot-item--hidden{ display: none !important; }
@media (min-width: 768px){
  .hot-item--side{
    flex: 0 0 220px;
    width: 220px;
  }
  .hot-item--hidden{ display: none !important; }
}
.hot-item--center{
  flex: 0 0 320px;
  width: 320px;
}
@media (min-width: 768px){
  .hot-item--center{
    flex: 0 0 400px;
    width: 400px;
    filter: none;
    opacity: 1;
    transform: scale(1.04);
    z-index: 5;
  }
}
.hot-item-card{
  background: #fff;
  padding: clamp(18px, 2.2vw, 24px);
  position: relative;
}
.hot-item--center .hot-item-card{
  padding: clamp(18px, 2.2vw, 24px);
  box-shadow: 0 28px 56px rgba(0,0,0,.22);
}
.hot-item-media{
  width: 100%;
  height: clamp(220px, 28vw, 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hot-item-media img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hot-item-media--tall{
  height: clamp(300px, 36vw, 360px);
}
.hot-item-label{
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-align: center;
  color: var(--text);
}
.hot-item-content{
  text-align: center;
  margin-top: clamp(16px, 2vw, 22px);
}
.hot-item-title{
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hot-item-subtitle{
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text);
}
.hot-item-subtitle__link{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.18s ease;
}
.hot-item-subtitle__link:hover{
  color: var(--accent);
}
.hot-item-btn{
  width: 100%;
  padding: 14px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  border: none;
  cursor: pointer;
  transition: background 160ms ease;
  box-sizing: border-box;
}
a.hot-item-btn{
  display: block;
  text-align: center;
  text-decoration: none;
}
.hot-item-btn:hover{
  background: var(--text);
}
.hot-items-dots{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  width: 100%;
}
.hot-items-dot{
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background 160ms ease, width 160ms ease, height 160ms ease;
}
.hot-items-dot:hover{
  background: #fff;
}
.hot-items-dot.is-active{
  width: 12px;
  height: 12px;
  background: #fff;
}

@media (max-width: 767px){
  /* Inner a tutta larghezza: niente breakout 100vw (causa offset su iOS) */
  .hot-items-inner{
    width: 100%;
    max-width: none;
    padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  }
  .hot-items-carousel{
    padding: 16px 0;
    touch-action: pan-y;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  .hot-items-nav{
    display: none;
  }

  /* Stesso engine del desktop: transform + order, swipe al posto delle frecce */
  .hot-items-viewport{
    overflow: hidden;
    padding: 0;
    width: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
    touch-action: pan-y;
  }
  .hot-items-viewport.is-ready{
    opacity: 1;
  }
  .hot-items-track{
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    transition: transform 400ms ease;
    padding: 0 2px;
  }
  .hot-item{
    flex: 0 0 min(46vw, 175px);
    width: min(46vw, 175px);
    min-width: 0;
    transition: filter 400ms ease, opacity 400ms ease, transform 400ms ease;
  }
  .hot-item--side{
    filter: blur(2px);
    opacity: 0.58;
    transform: scale(0.9);
  }
  .hot-item--side .hot-item-content{
    display: none;
  }
  .hot-item--side .hot-item-label{
    display: block;
  }
  .hot-item--center{
    flex: 0 0 min(72vw, 300px);
    width: min(72vw, 300px);
    max-width: 300px;
    filter: none;
    opacity: 1;
    transform: scale(1);
    z-index: 2;
  }
  .hot-item--center .hot-item-label{
    display: none;
  }
  .hot-item--center .hot-item-content{
    display: block;
  }
  .hot-item--hidden{
    display: none !important;
  }

  /* Niente hint scuro a destra (sembrava una barra nera sul bordo) */
  .hot-items-swipe-hint{
    display: none !important;
  }
  /* Immagine hero: box alto, meno padding, foto più grande */
  .hot-item-media,
  .hot-item-media--tall{
    height: auto;
    aspect-ratio: 3 / 4;
    min-height: clamp(240px, 68vw, 300px);
    max-height: min(78vw, 320px);
  }
  .hot-item-media img{
    object-fit: contain;
    object-position: center center;
    width: 100%;
    height: 100%;
    max-height: 100%;
  }
  .hot-item-content{
    margin-top: 10px;
  }
  .hot-item-card{
    padding: 10px 10px 14px;
    transition: box-shadow 280ms ease;
  }
  .hot-item--center .hot-item-card{
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  }
  .hot-item--side .hot-item-card,
  .hot-item--hidden .hot-item-card{
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  }
  .hot-item-title{
    font-size: clamp(0.95rem, 4vw, 1.15rem);
  }
  .hot-item-subtitle{
    margin-bottom: 10px;
    font-size: 11px;
  }
  .hot-item-btn{
    padding: 11px 12px;
    font-size: 11px;
  }
  .hot-item-label{
    margin-top: 10px;
    font-size: 10px;
  }
}

.card{
  border: none;
  background: transparent;
  transition: transform 180ms ease, background 180ms ease;
}
.card--red-cover{
  border: 1px solid #000;
}
.card--red-cover .tag{
  background: #000;
  color: #fff;
}
.card-link{
  display:block;
  padding: 14px;
}
.card:hover{
  transform: translateY(-3px);
  background: rgba(0,0,0,.015);
}

.thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  /* bordo come ombra interna: evita la strisciolina di foto sopra il bordo (anti-alias + cover) */
  border: none;
  box-shadow: none;
  background:
    linear-gradient(135deg, rgba(255,0,0,.06), transparent 55%),
    linear-gradient(180deg, #2b2b2b 0%, #101010 100%);
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(0);
  transform: translateZ(0);
}
.thumb::after{
  content:"";
  position:absolute;
  inset: -30%;
  background: repeating-linear-gradient(
    115deg,
    rgba(255,255,255,.06) 0px,
    rgba(255,255,255,.06) 1px,
    transparent 1px,
    transparent 14px
  );
  transform: rotate(-6deg);
  opacity: .45;
  pointer-events: none;
}

.tag{
  position:absolute;
  z-index:1;
  top: 12px;
  left: 12px;
  display:inline-flex;
  padding: 8px 10px;
  background: var(--accent);
  color:#fff;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1;
}

.card-title{
  margin: 12px 0 2px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  font-size: 16px;
  color: var(--accent);
}

.simple{
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.muted{
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 70ch;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #0b0b0b;
  color: #fff;
  padding: 56px 0 56px;
  margin-top: 80px;
}
body.home-page .site-footer {
  margin-top: 0;
}
.footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (max-width: 639px) {
  .footer > *:nth-child(1) { order: 1; } /* brand */
  .footer > *:nth-child(2) { order: 3; } /* Esplora */
  .footer > *:nth-child(3) { order: 4; } /* Info */
  .footer > *:nth-child(4) { order: 2; } /* Newsletter */
}
@media (min-width: 640px) {
  .footer { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer { grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 48px; align-items: start; }
}
.footer-brand {}
.footer-brand__logo-link {
  display: inline-block;
  margin-bottom: 20px;
}
.footer-brand__logo {
  height: 36px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(13%) sepia(100%) saturate(7500%) hue-rotate(0deg) brightness(105%);
  display: block;
}
.footer-brand__tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 24px;
}
.footer-brand__social {
  display: flex;
  gap: 10px;
}
.footer-brand__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: border-color 150ms, background 150ms;
}
.footer-brand__social-link:hover {
  border-color: var(--accent);
  background: var(--accent);
}
.footer-col {}
.footer-col__heading {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.footer-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col__list a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 120ms;
}
.footer-col__list a:hover { color: #fff; }
.footer-newsletter__label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.footer-newsletter__desc {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin: 0 0 16px;
}
.footer-newsletter__form {
  display: flex;
  border-bottom: 1.5px solid rgba(255,255,255,0.25);
  transition: border-color 150ms;
}
.footer-newsletter__form:focus-within {
  border-color: var(--accent);
}
.footer-newsletter__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: #fff;
  padding: 8px 0;
  font-family: inherit;
}
.footer-newsletter__input::placeholder { color: rgba(255,255,255,0.3); }
.footer-newsletter__submit {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 0 4px 8px;
  transition: color 120ms;
}
.footer-newsletter__submit:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom__copy {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-bottom__legal {
  display: flex;
  gap: 16px;
}
.footer-bottom__legal a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 120ms;
}
.footer-bottom__legal a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 980px){
  :root{ --nav-h: 68px; }
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links{ gap: 16px; }
  /* Hero mobile: full-bleed, altezza compatta così il contenuto sotto ha più spazio */
  .hero{
    padding: 0 0 10px;
  }
  .hero .container{
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
  .hero-card{
    border-radius: 0;
    box-shadow: none;
  }
  /* Mobile/tablet: foto a copertura piena del pannello (niente bande vuote) */
  .hero-grid{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.48fr);
    min-height: clamp(200px, 38vh, 360px);
    align-items: stretch;
  }
  .hero-panel--copy{
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-copy-inner{
    flex: 1;
    min-height: 0;
    justify-content: flex-start;
    padding: clamp(14px, 3.5vw, 28px);
    padding-bottom: max(clamp(14px, 3.5vw, 28px), env(safe-area-inset-bottom, 0px));
    gap: 10px;
  }
  .hero-photo-link{
    min-height: 0;
    height: 100%;
  }
  .hero-panel--photo{
    min-height: 0;
  }
  .hero-sharp-photo{
    background-size: cover !important;
    background-position: center center;
    background-repeat: no-repeat !important;
  }
}

/* ── Mobile menu ─────────────────────────────────────────── */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-btn__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-btn.is-open .menu-btn__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open .menu-btn__bar:nth-child(2) { opacity: 0; }
.menu-btn.is-open .menu-btn__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: #fff;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: var(--nav-h);
  padding: 0 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mobile-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  color: var(--text);
  padding: 4px 8px;
}
.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  gap: 0;
}
.mobile-drawer__nav a {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.mobile-drawer__nav a.nav-link--current { color: var(--accent); }
.mobile-drawer__nav a:active { background: rgba(0,0,0,0.04); }

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.mobile-drawer-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 680px){
  :root{
    --container-pad: clamp(72px, 14vw, 108px);
  }
  .nav-links{ display:none; }
  .menu-btn { display: flex; }
  .grid{ grid-template-columns: 1fr; }

  /* Wrapper e hint swipe */
  .latest-scroll-wrap{
    position: relative;
  }
  .latest-swipe-hint{
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 16px;
    width: 56px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, transparent, rgba(0,0,0,.55) 60%);
    color: #fff;
    pointer-events: none;
    animation: swipe-hint-life 5s ease-out forwards;
  }
  .latest-swipe-hint:not(.is-hidden){
    display: flex;
  }
  .latest-swipe-hint.is-hidden{
    animation: none !important;
    opacity: 0 !important;
    pointer-events: none;
  }
  @keyframes swipe-hint-life{
    0%   { opacity: 1;    transform: translateX(0); }
    8%   { opacity: 1;    transform: translateX(5px); }
    16%  { opacity: 0.6;  transform: translateX(0); }
    24%  { opacity: 1;    transform: translateX(5px); }
    32%  { opacity: 0.6;  transform: translateX(0); }
    40%  { opacity: 1;    transform: translateX(5px); }
    48%  { opacity: 0.6;  transform: translateX(0); }
    60%  { opacity: 0.8;  transform: translateX(3px); }
    72%  { opacity: 0.5;  transform: translateX(0); }
    84%  { opacity: 0.25; transform: translateX(2px); }
    100% { opacity: 0;    transform: translateX(0); }
  }

  /* Ultimi articoli: scroll orizzontale su mobile */
  #latest-articles-grid.grid{
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 14vw;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 12px 14vw 16px;
    margin: 0 -14vw;
    scrollbar-width: none;
    grid-template-columns: unset;
  }
  #latest-articles-grid.grid::-webkit-scrollbar{
    display: none;
  }
  #latest-articles-grid.grid .card{
    flex: 0 0 72vw;
    max-width: 300px;
    scroll-snap-align: center;
  }

  #articles .section-head{
    justify-content: center;
  }
  #articles .section-title--latest{
    text-align: center;
  }
  /* Hero phone: più basso, testo ancora leggibile; più viewport per il resto della pagina */
  .hero{
    padding: 0 0 6px;
  }
  .hero-grid{
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
    grid-template-rows: minmax(0, 1fr);
    min-height: clamp(176px, 34vh, 288px);
    align-items: stretch;
  }
  .hero-panel--copy{
    grid-column: span 1;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-panel--photo{
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }
  .hero-copy-inner{
    flex: 1;
    min-height: 0;
    justify-content: safe center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: clamp(8px, 2.6vw, 14px);
    padding-bottom: max(clamp(8px, 2.6vw, 14px), env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }
  .hero-copy-inner .tag{
    padding: 5px 7px;
    font-size: 9px;
    letter-spacing: 0.07em;
  }
  .hero-copy-scrim{
    background: linear-gradient(
      165deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.5) 55%,
      rgba(0, 0, 0, 0.35) 100%
    );
  }
  .hero-title{
    max-width: none;
    font-size: clamp(13px, 3.5vw, 18px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }
  .hero-byline{
    font-size: clamp(10px, 2.6vw, 12px);
    line-height: 1.4;
    max-width: none;
  }
  .hero-photo-link{
    min-height: 0;
    height: 100%;
  }
}

/* =========================
   ARTICLE TEMPLATE
   ========================= */

.article-top{
  position: fixed;
  inset: 0 0 auto 0;
  height: 60px;
  z-index: 1100;
  pointer-events: none;
  background: var(--bg);
  visibility: visible;
}
.article-top-inner{
  position: relative;
  height: 100%;
  width: 100%;
}
.article-progress{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  min-width: 0;
  background: #ff0000;
  visibility: visible;
}
.article-logo{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:auto;
}
.article-logo img{
  height: 28px;
  display:block;
  filter: grayscale(1) brightness(0);
  transition: transform 160ms ease, filter 160ms ease;
}
.article-logo:hover img{
  transform: scale(0.96);
}
/* Logo rosso quando la barra non tocca il logo */
body:not(.logo-over-bar) .article-logo:hover img{
  filter: grayscale(0) brightness(1);
}
/* Logo bianco quando la barra supera il logo */
body.logo-over-bar .article-logo:hover img{
  filter: grayscale(1) brightness(4.5);
}

.lang-switch--article{
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  pointer-events: auto;
  z-index: 10;
}

.article-page{
  padding: 80px 0 0;
}

.article-head{
  padding: 18px 0 18px;
}

.crumbs{
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
}
.crumbs a:hover{ color: var(--accent); }

.kicker{
  display:inline-flex;
  margin-top: 14px;
  padding: 8px 10px;
  background: var(--accent);
  color:#fff;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 11px;
  line-height: 1;
}

.article-title{
  margin: 12px 0 0;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  line-height: 1.02;
  font-size: clamp(34px, 5.2vw, 72px);
  color: #ff0000;
  max-width: 20ch;
}

.dek{
  margin: 14px 0 0;
  max-width: 70ch;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 16px;
  line-height: 1.6;
}

.meta{
  margin-top: 14px;
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  justify-content: center;
  gap: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 13px;
}
.meta-label{ color: var(--muted); }
.meta-link:hover{ color: var(--accent); }
.dot{
  width: 5px;
  height: 5px;
  background: rgba(11,11,11,.35);
  border-radius: 999px;
}

.article-hero{
  padding: 10px 0 14px;
}
/* Copertina articolo: larghezza contenuta, senza velo scuro sulla foto */
.article-hero .figure.figure-hero{
  max-width: min(600px, 100%);
  margin-inline: auto;
}
.article-hero .figure-media::after{
  display: none;
}
/* Placeholder chiaro (no flash nero) finché la cover non è pronta */
.article-hero #article-cover.figure-media{
  background: var(--bg);
  transition: background-image 200ms ease;
}
.article-hero #article-cover.figure-media--loaded{
  background-color: transparent;
}
.figure{
  margin: 0;
}
.figure-hero{
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.figure-inline{
  margin: 18px 0;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.01);
}
.figure-media{
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(900px 380px at 60% 20%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(135deg, #2c2c2c 0%, #0f0f0f 55%, #1a1a1a 100%);
  position: relative;
}
.figure-media--alt{
  aspect-ratio: 3 / 2;
  background:
    linear-gradient(135deg, rgba(255,0,0,.06), transparent 55%),
    linear-gradient(180deg, #2b2b2b 0%, #101010 100%);
}
.figure-media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.44));
}
.caption{
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.72);
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 12px;
  line-height: 1.45;
}
.figure-inline .caption{
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.article-body{
  padding: 8px 0 18px;
}
@media (max-width: 680px){
  /* Respiro extra per il corpo testo (oltre al .container) */
  body.article-layout .article-body .prose{
    padding-inline: clamp(10px, 3.5vw, 22px);
    box-sizing: border-box;
  }
}

.prose{
  width: min(860px, 100%);
}
.prose p{
  margin: 14px 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.85;
  color: rgba(11,11,11,.88);
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
.prose a{
  overflow-wrap: break-word;
  word-break: break-word;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: inherit;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.prose a:hover{
  color: #ff0000;
  transform: scale(1.05);
}
.prose .lead{
  font-size: 18px;
  line-height: 1.8;
  color: rgba(11,11,11,.92);
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
/* Testo tra "virgolette dritte": nessun a capo all’interno della citazione */
.prose .quoted-phrase{
  white-space: nowrap;
}
.dropcap::first-letter{
  float:left;
  font-weight: 900;
  font-size: 54px;
  line-height: .9;
  padding: 8px 10px 0 0;
  letter-spacing: -0.06em;
  color: var(--text);
}

.prose h2{
  margin: 26px 0 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-size: 18px;
  color: #ff0000;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.pull-quote{
  margin: 22px 0;
  padding: 18px 18px;
  border-left: 6px solid var(--accent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.012);
}
.pull-quote p{
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text);
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

/* Singola: più stretta della copertina (600px). Riga 2–3 foto: vedi .prose-img-row */
.prose .prose-img-wrap--single{
  max-width: min(460px, 100%);
  margin-inline: auto;
  box-sizing: border-box;
  margin-top: 20px;
  margin-bottom: 20px;
}
.prose .prose-img-row{
  max-width: min(660px, 100%);
  margin-inline: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: clamp(6px, 1.2vw, 10px);
  margin-top: 20px;
  margin-bottom: 20px;
}
.prose .prose-img-row .article-body-figure{
  flex: 1 1 0;
  min-width: 0;
}
.prose figure.article-body-figure{
  margin: 0;
}
.prose figure.article-body-figure img{
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
.prose figure.article-body-figure .caption{
  font-size: 12px;
  margin-top: 6px;
}
.prose figure.article-body-figure .caption:empty{
  display: none;
}
.prose figure.article-body-figure--video{
  max-width: min(460px, 100%);
  margin-inline: auto;
  margin-top: 20px;
  margin-bottom: 20px;
}
.prose figure.article-body-figure--video video,
.prose figure.article-body-figure--video iframe{
  width: 100%;
  display: block;
}
.video-player-wrapper{
  position: relative;
  background: #000;
  line-height: 0;
}
.video-overlay{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (hover: none) and (pointer: coarse) {
  .video-overlay {
    display: none !important;
  }
}
.video-play-btn{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
  pointer-events: none;
}
.video-overlay:hover .video-play-btn{
  background: #fff;
  transform: scale(1.1);
}
.video-play-btn svg{
  width: 16px;
  height: 16px;
  fill: #111;
  margin-left: 2px;
}
@media (max-width: 520px){
  .prose .prose-img-row{
    flex-direction: column;
    gap: 14px;
  }
  .prose .prose-img-row .article-body-figure{
    flex: none;
    width: 100%;
  }
}

.article-divider{
  height: 1px;
  background: var(--line);
  margin: 22px 0 16px;
}

.tags-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-chip{
  display:inline-flex;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: transparent;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
}
.tag-chip:hover{
  border-color: rgba(11,11,11,.28);
  color: var(--accent);
}

.related{
  padding: 18px 0 18px;
  border-top: 1px solid var(--line);
}
.related .card{
  border: none;
}
.related .card:hover{
  background: #ff0000;
}
.related .card:hover .card-title{
  color: var(--text);
}
.related-grid{
  padding-top: 18px;
}

/* Articolo singolo: stessa gerarchia desktop/mobile (nessuno “layout mobile” alternativo) */
body.article-layout .article-title{
  font-size: clamp(28px, 7.2vw, 72px);
  line-height: 1.04;
  max-width: min(20ch, 100%);
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
body.article-layout .dek{
  font-size: clamp(15px, 3.6vw, 16px);
  line-height: 1.6;
  max-width: min(70ch, 100%);
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
body.article-layout .meta{
  font-size: clamp(11px, 2.8vw, 13px);
  gap: clamp(6px, 2vw, 10px);
}
body.article-layout .meta-label{
  color: var(--text);
}
body.article-layout .prose{
  width: min(860px, 100%);
}
body.article-layout .prose p{
  font-size: clamp(15px, 3.55vw, 1rem);
  line-height: 1.85;
}
body.article-layout .prose .lead{
  font-size: clamp(16px, 3.95vw, 18px);
  line-height: 1.8;
}
body.article-layout .prose h2{
  font-size: clamp(16px, 3.6vw, 18px);
  margin: clamp(18px, 4vw, 26px) 0 10px;
}
body.article-layout .dropcap::first-letter{
  font-size: clamp(38px, 11vw, 54px);
  padding: clamp(4px, 1.2vw, 8px) clamp(6px, 1.5vw, 10px) 0 0;
}
body.article-layout .pull-quote{
  margin: clamp(16px, 4vw, 22px) 0;
  padding: clamp(14px, 3.5vw, 18px);
}
body.article-layout .pull-quote p{
  font-size: clamp(14px, 3.4vw, 1rem);
}
/* Righe 2–3 foto nel corpo: sempre affiancate come su desktop, si riduce solo il gap */
body.article-layout .prose .prose-img-row{
  flex-direction: row;
  flex-wrap: nowrap;
  gap: clamp(4px, 1.5vw, 10px);
  max-width: min(660px, 100%);
}
body.article-layout .prose .prose-img-row .article-body-figure{
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}
body.article-layout .article-hero .figure.figure-hero{
  max-width: min(600px, 100%);
}
/* Correlati: griglia a 2 come in home fino a schermi molto stretti */
@media (max-width: 680px){
  body.article-layout .related-grid.grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 3vw, 18px);
  }
}
@media (max-width: 360px){
  body.article-layout .related-grid.grid{
    grid-template-columns: 1fr;
  }
}

/* =========================
   CONTACT PAGE
   ========================= */
.contact-page-body{
  background: #0b0b0b;
}

.contact-page{
  min-height: calc(100vh - var(--nav-h) - 80px);
  padding: calc(var(--nav-h) - 16px) calc(var(--container-pad) / 2) 48px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.contact-page-inner{
  max-width: 720px;
  margin: 0 auto;
}

.contact-page-eyebrow{
  margin: 0 0 8px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-page-title{
  margin: 0 0 32px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.4rem, 5.2vw, 2.75rem);
  font-weight: 900;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.contact-toast{
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 10000;
  max-width: min(320px, calc(100vw - 32px));
  margin: 0;
  padding: 12px 18px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #5c0a0a;
  background: linear-gradient(180deg, #ffecec 0%, #ffd4d4 100%);
  border: 1px solid #c40000;
  border-radius: 10px;
  box-shadow:
    0 4px 8px rgba(140, 0, 0, 0.12),
    0 14px 28px rgba(140, 0, 0, 0.16);
  transform: translate(-50%, calc(100% + 28px));
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.38s ease;
  pointer-events: none;
}
.contact-toast.contact-toast--show{
  transform: translate(-50%, 0);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce){
  .contact-toast{
    transition: opacity 0.2s ease;
    transform: translate(-50%, 0);
  }
  .contact-toast:not(.contact-toast--show){
    transform: translate(-50%, 0);
    opacity: 0;
  }
}
.contact-form-honeypot{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.contact-form{
  color: var(--accent);
}

.contact-field{
  display: grid;
  grid-template-columns: 10.75rem 1fr;
  align-items: start;
  gap: 12px 20px;
  margin-bottom: 18px;
}

.contact-field--subject{
  align-items: center;
}

.contact-field--checkbox{
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 8px;
}
.contact-privacy-label{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  max-width: 100%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--accent);
  cursor: pointer;
}
.contact-privacy-label input[type="checkbox"]{
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.contact-privacy-label__text{
  flex: 1 1 auto;
  min-width: 0;
}
.contact-privacy-label a{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-privacy-label a:hover{
  color: var(--text);
}
.contact-privacy-required{
  font-weight: 900;
}

.contact-label{
  display: block;
  margin: 0;
  padding: 6px 10px;
  background: #0b0b0b;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  box-sizing: border-box;
}

.contact-field-input{
  min-width: 0;
  width: 100%;
}

.contact-email-hint{
  margin: 10px 0 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--accent);
}

.contact-input,
.contact-textarea,
.contact-select{
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--accent);
  background: #0b0b0b;
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
}
.contact-input::placeholder{
  color: rgba(255,0,0,.45);
}
.contact-input--url::placeholder{
  color: rgba(255,0,0,.45);
}
.contact-textarea{
  resize: vertical;
  min-height: 120px;
}
.contact-select{
  appearance: auto;
  cursor: pointer;
  color: var(--accent);
}
.contact-select option{
  background: #0b0b0b;
  color: var(--accent);
}

.contact-footer{
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  position: relative;
  padding-left: 0;
}

.contact-send{
  position: relative;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.contact-send:hover{
  background: var(--accent);
  color: #fff;
}
.contact-send--loading{
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 640px){
  .contact-page{
    padding-left: 16px;
    padding-right: 16px;
    padding-top: calc(var(--nav-h) - 16px);
  }
  .contact-page-title{
    font-size: 1.4rem;
    white-space: normal;
    margin-bottom: 24px;
  }
  .contact-field{
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
  }
  .contact-label{
    width: auto;
    align-self: flex-start;
  }
  .contact-field-input{
    flex: 1 1 auto;
    width: 100%;
  }
  .contact-input,
  .contact-textarea,
  .contact-select{
    font-size: 16px; /* evita zoom automatico su iOS */
  }
  .contact-textarea{
    min-height: 100px;
  }
  .contact-footer{
    margin-top: 24px;
    padding-top: 20px;
  }
  .contact-send{
    width: 100%;
    text-align: center;
    padding: 14px;
  }
  .contact-privacy-label{
    font-size: 12px;
  }
}

/* =========================
   EVENTS LANDING (Agenda)
   ========================= */
.events-page-body{
  background: #fcf9f8;
  color: var(--text);
}

.events-main{
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: 48px;
  min-height: 60vh;
}

.events-hero-header{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 max(calc(var(--container-pad) / 2), env(safe-area-inset-right, 0px)) 48px
    max(calc(var(--container-pad) / 2), env(safe-area-inset-left, 0px));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.events-hero-label{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
}
.events-hero-label::before,
.events-hero-label::after{
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.events-page-title{
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.events-page-brand{
  display: flex;
  align-items: center;
  justify-content: center;
}
.events-page-brand__logo{
  display: block;
  height: clamp(28px, 4vw, 48px);
  width: auto;
  max-width: min(60vw, 320px);
  object-fit: contain;
}

.events-lead{
  margin: 0;
  max-width: 42rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.55;
  color: var(--text);
}

.events-filters{
  position: sticky;
  top: var(--nav-h);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 16px max(calc(var(--container-pad) / 2), env(safe-area-inset-right, 0px)) 10px
    max(calc(var(--container-pad) / 2), env(safe-area-inset-left, 0px));
  border-top: 1px solid rgba(11, 11, 11, 0.1);
  border-bottom: 1px solid rgba(11, 11, 11, 0.1);
  background: rgba(252, 249, 248, 0.92);
  backdrop-filter: blur(10px);
}
@media (min-width: 768px){
  .events-filters{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.events-filters__actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  flex-shrink: 0;
}

.events-filters__chips{
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}
@media (min-width: 768px){
  .events-filters__chips{
    width: auto;
    flex: 1;
    min-width: 0;
  }
}
.events-filters__chips::-webkit-scrollbar{
  display: none;
}

.events-filter-btn{
  flex-shrink: 0;
  padding: 4px 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.events-filter-btn:hover{
  color: var(--accent);
}
.events-filter-btn.is-active{
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.events-subfilters{
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 8px 0 4px;
  border-top: 1px solid rgba(11,11,11,.07);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.events-subfilters::-webkit-scrollbar{ display: none; }
.events-subfilter-btn{
  flex-shrink: 0;
  padding: 3px 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11,11,11,.45);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.events-subfilter-btn:hover{
  color: #111;
}
.events-subfilter-btn.is-active{
  color: #111;
  border-bottom-color: #111;
}

.events-location{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: none;
  border-bottom: 1px solid rgba(11, 11, 11, 0.12);
  background: none;
  cursor: pointer;
}
.events-location__select{
  flex: 0 1 auto;
  min-width: 0;
  max-width: 14rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.events-location__select:focus{
  outline: none;
}
.events-location__select:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.events-location:focus-within{
  border-bottom-color: var(--accent);
}
.events-location__icon,
.events-location__chev{
  opacity: 1;
  flex-shrink: 0;
  display: block;
}
.events-location__chev-wrap{
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.events-wrap{
  padding-top: clamp(0px, 0.6vw, 8px);
  padding-bottom: 24px;
}

.events-featured{
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (min-width: 900px){
  .events-featured{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: start;
  }
}

/* Featured row: più respiro verticale e testo (due colonne strette) */
.events-featured .events-card--feature__media{
  aspect-ratio: 4 / 3;
}
@media (min-width: 900px){
  .events-featured .events-card--feature__media{
    aspect-ratio: 3 / 2;
  }
}
.events-featured .events-card--feature__shade{
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 48%,
    transparent 74%
  );
  opacity: 0.92;
}
.events-featured .events-card--feature__content{
  padding: clamp(18px, 4.2vw, 38px);
  padding-bottom: clamp(24px, 5vw, 44px);
}
.events-featured .events-card--feature__corner-tags{
  position: absolute;
  z-index: 4;
  top: clamp(14px, 2.2vw, 22px);
  right: clamp(14px, 2.2vw, 22px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: calc(100% - 7rem);
  pointer-events: none;
}
.events-featured .events-card--feature__corner-tags .tag{
  position: static;
  top: auto;
  right: auto;
  left: auto;
}
.events-featured .events-card--feature__title{
  font-size: clamp(1.1rem, 2.6vw, 2rem);
  line-height: 1.2;
  margin-bottom: 14px;
  display: inline-block;
  transform-origin: left center;
  transition: transform 200ms ease, color 200ms ease;
  cursor: default;
}
.events-featured .events-card--feature__title:hover{
  color: var(--accent);
  transform: scale(1.04);
}
.events-featured .events-card--feature__meta > span{
  white-space: normal;
  width: fit-content;
  max-width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
  cursor: default;
}
.events-featured .events-card--feature__meta > span:hover{
  color: var(--accent);
  border-bottom-color: var(--accent);
}
@media (prefers-reduced-motion: reduce){
  .events-featured .events-card--feature__title{
    transition: color 200ms ease;
  }
  .events-featured .events-card--feature__title:hover{
    transform: none;
  }
}
.events-featured .events-card--feature__date{
  top: clamp(14px, 2.2vw, 22px);
  left: clamp(14px, 2.2vw, 22px);
  padding: 11px 15px;
}
.events-featured .events-card--feature__day{
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
}
.events-featured .events-card--feature__meta{
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  line-height: 1.45;
}
.events-card--feature__rsvp{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.events-featured .events-card--feature__rsvp .event-rsvp-tag{
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.events-card{
  position: relative;
  background: #fff;
  overflow: hidden;
}

.events-card--feature{
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.events-card--feature:hover,
.events-card--feature:focus-within{
  transform: translateY(-3px);
  border-color: rgba(11, 11, 11, 0.28);
  background: rgba(0, 0, 0, 0.015);
}

.events-card--feature__media{
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.events-card--feature .events-card__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.events-card--feature__shade{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 55%);
  opacity: 0.85;
  pointer-events: none;
}

.events-card--feature__corner-tags{
  position: absolute;
  z-index: 4;
  top: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: calc(100% - 6.5rem);
  pointer-events: none;
}
.events-card--feature__corner-tags .tag{
  position: static;
  top: auto;
  right: auto;
  left: auto;
}
/* Tag tipologia da solo (card feature senza blocco in evidenza) */
.events-card--feature__media > .tag{
  z-index: 3;
  left: auto;
  right: 28px;
  top: 28px;
}

.events-card--feature__date{
  position: absolute;
  top: 28px;
  left: 28px;
  right: auto;
  z-index: 2;
  padding: 14px 18px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.2;
}
.events-card--feature__date span:first-child{
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  opacity: 1;
  letter-spacing: 0.12em;
}
.events-card--feature__day{
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.events-card--feature__content{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(20px, 4vw, 40px);
  color: #fff;
}

.events-spotlight-badge{
  display: none;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.15;
  box-sizing: border-box;
}
.events-card--spotlight .events-spotlight-badge{
  display: inline-flex;
}
.events-spotlight-badge__star{
  flex-shrink: 0;
  opacity: 0.95;
}
.events-spotlight-badge--inverse{
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(6px);
}
.events-spotlight-badge--inverse .events-spotlight-badge__star{
  color: #ffe17a;
}

.events-eyebrow{
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.events-card--feature__content .events-eyebrow{
  color: rgba(255, 255, 255, 0.92);
}
.events-eyebrow--accent{
  color: var(--accent);
}
.events-eyebrow--muted{
  color: var(--text);
  margin-top: 0;
  margin-bottom: 8px;
}

.events-card--feature__title{
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-transform: uppercase;
}

.events-card--feature__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.events-card--feature__meta span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.events-card--feature__meta svg{
  flex-shrink: 0;
  opacity: 0.9;
}

.events-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 28px;
}
@media (min-width: 640px){
  .events-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px){
  .events-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 36px;
  }
}

.events-grid-card{
  border: none;
  margin: 0;
  padding: 14px;
  background: transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.events-grid-card:focus-within{
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.events-grid-card:hover{
  transform: translateY(-3px);
  background: #ff0000;
}

.events-grid-card__media{
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 18px;
}
.events-grid-card .events-card__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.events-grid-card__media .tag{
  left: auto;
  right: 14px;
  top: 14px;
  z-index: 3;
}

.events-grid-card__date{
  position: absolute;
  top: 14px;
  left: 14px;
  right: auto;
  z-index: 2;
  min-width: 48px;
  padding: 8px 10px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
}
.events-grid-card__date span:first-child{
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  text-transform: uppercase;
}
.events-grid-card__date span:last-child{
  font-size: 1.25rem;
  line-height: 1;
}

.events-grid-card__title{
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 180ms ease;
}
.events-grid-card__datetime{
  margin: 0 0 8px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.4;
}
.events-grid-card:hover .events-grid-card__datetime{
  color: #0b0b0b;
}
.events-grid-card__rsvp{
  margin: 8px 0 0;
}
.event-card__rsvp{
  margin-top: 8px;
}
.events-grid-card__rsvp .event-rsvp-tag{
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.events-grid-card:hover .event-rsvp-tag--required{
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.events-grid-card:hover .event-rsvp-tag--free{
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
}
.events-grid-card:hover .events-grid-card__title{
  color: var(--text);
}
.events-grid-card:hover .events-eyebrow--muted{
  color: #0b0b0b;
}
.events-grid-card:hover .events-grid-card__meta{
  color: #0b0b0b;
}

.events-grid-card .events-eyebrow--muted{
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #0b0b0b;
  font-weight: 700;
}

/* Griglia pagina Eventi: oltre la quota iniziale, nascosti fino a “Carica altri eventi”. */
#events-page-map-source .events-grid-card,
#events-page-map-source .events-card--feature{
  cursor: pointer;
}

.events-grid-card--beyond-cap{
  display: none !important;
}

.events-grid-card__meta{
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.45;
  color: #0b0b0b;
}

.events-load{
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.events-load[hidden]{
  display: none;
}

.events-load-btn{
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 16px 40px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.events-load-btn:hover{
  opacity: 0.92;
}
.events-load-btn:active{
  transform: scale(0.98);
}

.nav-links a.nav-link--current{
  color: var(--accent);
}
.nav-links a.nav-link--current::after{
  transform: scaleX(1);
  background: var(--accent);
}

/* =========================
   Event landing — Fashion & Art pop-up
   ========================= */

.event-popup-page{
  background: #fcf9f8;
}

.event-detail-error{
  margin: 0;
  padding: 2.5rem 1.25rem;
  text-align: center;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
}

.event-lp-aside-map {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin: 10px 0 0;
}
.event-lp-btn--directions {
  margin: 10px 0 6px;
  letter-spacing: 0.8px;
  font-size: 11px;
}

.event-lp-breadcrumb {
  padding: 14px 24px 20px;
}
.event-lp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}
.event-lp-back-link:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.22);
}
.event-lp-back-link:active {
  transform: translateY(0);
  box-shadow: none;
  opacity: 1;
}

@media (max-width: 680px) {
  .event-lp-breadcrumb {
    padding: 20px 20px 24px;
  }
  .event-lp-back-link {
    padding: 12px 22px;
    font-size: 13px;
  }
}

.event-lp{
  --event-lp-surface: #f6f3f2;
  --event-lp-card: #ffffff;
  --event-lp-muted: var(--text);
  --event-lp-body: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
}

.event-lp-hero{
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(88vh, 900px);
  background: var(--event-lp-surface);
}
@media (min-width: 1024px){
  .event-lp-hero{
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
  }
}

.event-lp-hero__media{
  position: relative;
  min-height: 360px;
  overflow: hidden;
}
@media (min-width: 1024px){
  .event-lp-hero__media{
    min-height: 0;
  }
}

.event-lp-hero__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.event-lp-hero__veil{
  position: absolute;
  inset: 0;
  background: rgba(188, 1, 0, 0.1);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.event-lp-hero__content{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(32px, 6vw, 80px) clamp(24px, 5vw, 80px);
  background: #fcf9f8;
}

.event-lp-hero__inner{
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
}

.event-lp-eyebrow{
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.event-lp-eyebrow--featured-only{
  display: none;
}
.event-lp article[data-featured="true"] .event-lp-eyebrow--featured-only{
  display: block;
}

.event-lp-hero-tags{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  align-self: flex-start;
}

/* Tipo evento: stesso stile dei tag categoria sulle card (vedi .tag / griglia eventi), in flusso e più leggibile in hero */
/* Tipo evento: contorno rosso, testo rosso (secondario) */
.event-lp-hero-type-tag[hidden],
.event-lp-hero-category-tag[hidden]{
  display: none !important;
}
.event-lp-hero-type-tag{
  display: inline-flex;
  align-items: center;
  position: static;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
  margin: 0;
  align-self: center;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: clamp(9px, 1.2vw, 12px) clamp(12px, 1.6vw, 16px);
  line-height: 1;
  box-sizing: border-box;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
}

/* Categoria: pieno rosso, testo bianco (primario) */
.event-lp-hero-category-tag{
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(12px, 1.45vw, 15px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: clamp(10px, 1.5vw, 14px) clamp(14px, 2vw, 20px);
  line-height: 1;
  box-sizing: border-box;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
}

.event-lp-hero-lede{
  margin: clamp(-1.15rem, -2.5vw, -0.45rem) 0 0;
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--muted);
  max-width: 36rem;
}

.event-lp-title{
  margin: 0;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  text-transform: uppercase;
}

.event-lp-title__line{
  display: block;
}

.event-lp-meta{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.25rem;
}

.event-lp-meta-row{
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--event-lp-muted);
}

.event-lp-meta-icon{
  flex-shrink: 0;
  display: flex;
  color: var(--accent);
}

.event-lp-meta-text{
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.event-lp-meta-datetime{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.event-detail-schedule{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.event-detail-schedule__item{
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.35;
}

.event-detail-schedule__item--past{
  color: var(--event-lp-muted);
  opacity: 0.55;
  text-decoration: line-through;
  text-decoration-color: currentColor;
}

.event-detail-schedule__item--active{
  color: var(--accent);
}

.event-detail-schedule__item--next{
  font-weight: 700;
}

.event-lp-hero-cta{
  padding-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.event-lp-hero-cta:has(.event-lp-hero-cta-row){
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  max-width: 100%;
}

.event-lp-hero-cta-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.event-lp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 2.75rem;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.event-lp-btn--primary{
  background: var(--accent);
  color: #fff;
}

.event-lp-btn--primary:hover{
  background: #c40000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.22);
}

.event-lp-btn--block{
  width: 100%;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.event-lp-btn--outline{
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.event-lp-btn--outline:hover{
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.15);
}
.event-lp-btn:active{
  transform: translateY(0);
  box-shadow: none;
}

.event-detail-instagram-link{
  gap: 0.5rem;
}

.event-lp-ig-icon{
  flex-shrink: 0;
  display: block;
}

.event-lp-section{
  padding: clamp(56px, 10vw, 160px) clamp(22px, 5vw, 80px);
}

.event-lp-section__inner{
  max-width: 120rem;
  margin: 0 auto;
}

.event-lp-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 8vw, 80px);
}
@media (min-width: 1024px){
  .event-lp-grid{
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(48px, 5vw, 100px);
    align-items: start;
  }
}

.event-lp-main{
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 72px);
}

.event-lp-copy{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-lp-copy .quoted-phrase{
  white-space: nowrap;
}

.event-lp-h2{
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 1.875rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  text-transform: uppercase;
}

.event-lp-desc-label{
  margin: 1.5rem 0 0.5rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.event-lp-lede{
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--event-lp-body);
  max-width: 48rem;
}

#event-detail-body p,
.event-lp-copy #event-detail-body p {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--event-lp-body);
  max-width: 48rem;
}
#event-detail-body p:last-child {
  margin-bottom: 0;
}

.rb-mob__event-desc p {
  margin: 0 0 0.75em;
  font-size: 14px;
  line-height: 1.55;
  color: #111;
}
.rb-mob__event-desc p:last-child {
  margin-bottom: 0;
}

.event-lp-guests-label{
  margin: 0 0 1.25rem;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.event-lp-guest-cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px){
  .event-lp-guest-cards{
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.event-lp-guest-card{
  padding: 2rem;
  background: var(--event-lp-surface);
  border-left: 2px solid rgba(11, 11, 11, 0.12);
  transition: border-color 0.2s ease;
}

.event-lp-guest-card:hover{
  border-left-color: var(--accent);
}

.event-lp-guest-name{
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.event-lp-guest-role{
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.event-lp-aside{
  position: relative;
  min-width: 0;
}

.event-lp-card{
  background: var(--event-lp-card);
  padding: clamp(28px, 4vw, 40px);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.event-lp-card-block{
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-lp-card-label{
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
}

.event-lp-card-emphasis{
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.5rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.25;
}
.event-lp-card-emphasis--free{
  text-transform: none;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.event-lp-card-block--admission .event-lp-card-label{
  font-size: 12px;
  letter-spacing: 0.22em;
}

.event-lp-card-block--admission .event-lp-card-emphasis{
  font-size: clamp(1.6rem, 3.1vw, 2rem);
  line-height: 1.22;
}

.event-lp-card-block--admission .event-lp-card-emphasis--free{
  font-size: clamp(1.3rem, 2.6vw, 1.55rem);
}

.event-lp-admission--free-only{
  display: none;
}
.event-lp article[data-admission="free"] .event-lp-admission--free-only{
  display: block;
}
.event-lp article[data-admission="free"] .event-lp-admission--rsvp-only{
  display: none;
}
.event-lp article[data-admission="free"] .event-lp-cta--rsvp-only{
  display: none !important;
}

.event-lp-map-stack{
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 2px;
  background: #eceae8;
}

.event-lp-map-frame{
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.event-lp-map-frame__preview{
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 200px;
  aspect-ratio: 1;
  max-height: min(52vw, 340px);
  /* Blocco esplicito per figli absolute al 100% (WebKit) */
  width: 100%;
}

.event-lp-map-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* No shorthand inset + width fissi in JS: su WebKit iOS può dare clientWidth ~60% e tile solo a sinistra. */
.event-lp-map-leaflet{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  min-width: 0;
  box-sizing: border-box;
}

.event-lp-map-frame__actions{
  flex-shrink: 0;
  padding: 0.65rem 0.65rem 0.75rem;
  border-top: 1px solid rgba(11, 11, 11, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.event-lp-map-frame__actions .event-lp-btn--block{
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

.event-lp-map-leaflet .leaflet-container{
  width: 100%;
  min-width: 0;
  height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #eceae8;
}

/* Nessun filter sui tile: evita mappe "lavate" in WebKit; OSM standard è già contrastato */
.event-lp-map-leaflet .leaflet-tile-pane{
  filter: none;
}

.event-lp-map-leaflet .leaflet-control-zoom a{
  color: var(--accent);
  font-weight: 800;
}

.event-lp-map-marker-wrap{
  margin: 0;
  background: none !important;
  border: none !important;
}

.event-lp-map-marker-dot{
  display: block;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  background: var(--accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.event-lp-map-frame__preview .event-lp-map-attribution{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.3rem 0.4rem;
  font-size: 9px;
  line-height: 1.3;
  font-weight: 600;
  color: rgba(11, 11, 11, 0.72);
  background: rgba(255, 255, 255, 0.9);
}

.event-lp-map-attribution a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.event-lp-address{
  margin: 0.5rem 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.event-lp-card-actions{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(11, 11, 11, 0.08);
}

/* Sidebar ubicazione — pulsanti arrotondati + hover come hero CTA */
.event-lp-aside .event-lp-btn,
.event-lp-card-block .event-lp-btn--directions{
  border-radius: 12px;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

/* ——— Partner Spotlight (ADV) ——— */
.partner-spotlight{
  padding: 0;
  border-top: 1px solid var(--line);
}
.partner-spotlight .container{
  padding: 0;
  max-width: 100%;
  width: 100%;
}
.partner-spotlight-inner{
  display: block;
  text-decoration: none;
}

/* ── Partner carousel ── */
.partner-carousel{
  position: relative;
}
.partner-slides{
  display: grid;
}
.partner-slide{
  grid-area: 1 / 1;
  text-decoration: none;
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}
.partner-slide.is-active{
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.partner-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.35);
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 150ms;
}
.partner-nav:hover{ background: rgba(0,0,0,0.6); }
.partner-nav--prev{ left: 20px; }
.partner-nav--next{ right: 20px; }
.partner-dots{
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.partner-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 200ms, transform 200ms;
}
.partner-dot.is-active{
  background: #fff;
  transform: scale(1.25);
}
.partner-media{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,0,0,.06), transparent 55%),
    linear-gradient(180deg, #2b2b2b 0%, #101010 100%);
}
.partner-video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.partner-img{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.partner-btn{
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 28px;
  pointer-events: none;
  transition: background 180ms ease;
  white-space: nowrap;
}
.partner-spotlight-inner:hover .partner-btn,
.partner-slide:hover .partner-btn{
  background: #cc0000;
}
.partner-label{
  position: absolute;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 33px;
  font-weight: 900;
  font-stretch: condensed;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
@media (max-width: 640px){
  .partner-media{
    aspect-ratio: 16 / 9;
  }
  .partner-label{
    font-size: 18px;
    bottom: 42px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-align: center;
    width: 92%;
  }
  .partner-btn{
    bottom: 18px;
    font-size: 9px;
    padding: 7px 14px;
  }
  .partner-dots{
    bottom: 6px;
  }
}

/* ── Newsletter Popup ─────────────────────────────────── */
.nlp-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 9998;
  transition: background 280ms ease;
}
.nlp-backdrop--visible{
  background: rgba(0,0,0,.55);
}
.nlp-popup{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 24px));
  opacity: 0;
  z-index: 9999;
  width: min(480px, calc(100vw - 32px));
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px rgba(0,0,0,.18);
  transition: opacity 280ms ease, transform 280ms ease;
}
.nlp-popup.nlp-visible{
  opacity: 1;
  transform: translate(-50%, -50%);
}
.nlp-close{
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  transition: color 150ms ease;
}
.nlp-close:hover{ color: var(--text); }
.nlp-body{
  padding: 40px 36px 32px;
}
.nlp-title{
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
}
.nlp-subtitle{
  margin: 0 0 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.nlp-input-row{
  display: flex;
  gap: 0;
  border: 1px solid var(--text);
}
.nlp-input{
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 13px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
}
.nlp-input::placeholder{ color: var(--muted); }
.nlp-submit{
  padding: 11px 20px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  flex-shrink: 0;
}
.nlp-submit:hover{
  background: var(--accent);
  color: #fff;
}
.nlp-submit:disabled{
  opacity: 0.5;
  cursor: wait;
}
.nlp-disclaimer{
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.nlp-thanks{
  text-align: center;
  padding: 8px 0 4px;
}
.nlp-thanks-title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
}
.nlp-thanks-body{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 480px){
  .nlp-body{ padding: 36px 24px 28px; }
  .nlp-input-row{ flex-direction: column; border: none; gap: 10px; }
  .nlp-input{ border: 1px solid var(--text); }
  .nlp-submit{ width: 100%; }
}
/* ── Map Fashion type toggles ─────────────────────────────────────── */
.map-type-filters{
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: none; /* hidden on mobile by default */
  gap: 6px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 28px;
  padding: 6px 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  white-space: nowrap;
  pointer-events: auto;
}
.map-type-btn{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: none;
  border-radius: 20px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  background: rgba(0,0,0,.07);
  color: rgba(0,0,0,.45);
  transition: background .15s, color .15s;
}
.map-type-btn.is-active{
  background: #ff0000;
  color: #fff;
}
.map-type-btn:hover{
  opacity: .85;
}
/* Visible on desktop (both normal and fullscreen map) */
@media (min-width: 768px){
  .map-type-filters{
    display: flex;
  }
}
/* Visible on mobile only in fullscreen */
@media (max-width: 767px){
  .map-modal.is-fullscreen .map-type-filters{
    display: flex;
  }
}

/* Mobile map styles live in mobile/mappa-mobile.css */

/* ── Cookie consent banner ──────────────────────────────── */
#rb-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #fff;
  border-top: 2px solid #111;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  transform: translateY(100%);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
#rb-cookie-banner.rb-cookie--visible {
  transform: translateY(0);
}
.rb-cookie__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}
.rb-cookie__inner--simple {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 900px) {
  .rb-cookie__inner--simple {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
}
.rb-cookie__inner--prefs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rb-cookie__text {
  flex: 1;
}
.rb-cookie__title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 6px;
}
.rb-cookie__desc {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 6px;
}
.rb-cookie__link {
  font-size: 11px;
  font-weight: 700;
  color: #ff0000;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.rb-cookie__link:hover { text-decoration: underline; }

/* Preference toggles */
.rb-cookie__prefs {
  border: 1px solid #e7e3da;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.rb-cookie__toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rb-cookie__toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rb-cookie__toggle-label {
  font-size: 12px;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rb-cookie__toggle-desc {
  font-size: 11px;
  color: #6b6b6b;
  line-height: 1.4;
}
.rb-cookie__toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  transition: border-color 150ms, color 150ms, background 150ms;
  line-height: 1;
}
.rb-cookie__toggle[aria-pressed="true"],
.rb-cookie__toggle--on {
  border-color: #ff0000;
  color: #ff0000;
  background: #fff5f5;
  cursor: default;
}

/* Action buttons */
.rb-cookie__actions {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}
.rb-cookie__inner--simple .rb-cookie__actions {
  max-width: 220px;
}
@media (min-width: 900px) {
  .rb-cookie__inner--simple .rb-cookie__actions {
    min-width: 180px;
    width: auto;
  }
}
.rb-cookie__actions--prefs {
  max-width: 220px;
}
.rb-cookie__btn {
  width: 100%;
  min-width: 0;
  height: 40px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid #111;
  transition: background 120ms, color 120ms;
  white-space: nowrap;
  padding: 0 14px;
}
.rb-cookie__btn--primary {
  background: #111;
  color: #fff;
  border-color: #111;
}
.rb-cookie__btn--primary:hover { background: #ff0000; border-color: #ff0000; }
.rb-cookie__btn--ghost {
  background: #fff;
  color: #111;
}
.rb-cookie__btn--ghost:hover { background: #f5f1e8; }
@media (max-width: 899px) {
  .rb-cookie__inner--simple .rb-cookie__actions,
  .rb-cookie__actions--prefs {
    max-width: none;
  }
}

/* Legal pages */
.legal-page {
  max-width: 760px;
  margin: 60px auto 80px;
  padding: 0 24px;
}
.legal-page h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #111;
  margin: 0 0 8px;
}
.legal-page .legal-updated {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff0000;
  margin-bottom: 40px;
  display: block;
}
.legal-page h2 {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ff0000;
  margin: 40px 0 10px;
  border-top: 1px solid #e7e3da;
  padding-top: 24px;
}
.legal-page p, .legal-page li {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  margin: 0 0 12px;
}
.legal-page ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-page a { color: #ff0000; }
.legal-page .legal-contact {
  background: #f5f1e8;
  border-left: 3px solid #ff0000;
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin-top: 32px;
  font-size: 13px;
  color: #333;
  line-height: 1.6;
}

/* ─── OPPORTUNITÀ PAGE ─────────────────────────────────────────────────── */
/* ── Opportunità page ────────────────────────── */
.opp-main{
  padding-top: var(--nav-h);
  padding-bottom: 80px;
  min-height: 60vh;
}

/* Tab panels */
.opp-tab-panels{
  display: flex;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1.5px solid rgba(11,11,11,.18);
  border-bottom: 1.5px solid rgba(11,11,11,.18);
}
.opp-tab-panel{
  flex: 0 0 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 28px 40px 24px;
  background: none;
  border: none;
  border-right: 1.5px solid rgba(11,11,11,.18);
  cursor: pointer;
  text-align: left;
  transition: background 200ms, color 200ms;
  color: var(--text);
}
.opp-tab-panel:last-child{
  border-right: none;
}
.opp-tab-panel.is-active{
  background: var(--accent);
  color: #fff;
}
.opp-tab-panel__top{
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 2px;
}
.opp-tab-panel.is-active .opp-tab-panel__top{
  opacity: 1;
}
.opp-tab-panel__active-tag{
  display: none;
}
.opp-tab-panel.is-active .opp-tab-panel__active-tag{
  display: inline;
}
.opp-tab-panel__title{
  font-family: "Noto Serif", Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: inherit;
}
.opp-tab-panel__count{
  display: block;
  font-size: 20px;
  font-weight: 600;
  margin-top: -4px;
}
.opp-tab-panel__sub{
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: inherit;
  opacity: 0.72;
  margin-top: 2px;
}

/* Section container */
.opp-section{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 max(calc(var(--container-pad) / 2), env(safe-area-inset-right, 0px)) 0
    max(calc(var(--container-pad) / 2), env(safe-area-inset-left, 0px));
}
.opp-section--hidden{
  display: none;
}

/* Filter bar */
.opp-filter-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1.5px solid var(--line);
  flex-wrap: wrap;
}
.opp-filter-bar__left{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.opp-filter-bar__label{
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
  white-space: nowrap;
}
.opp-filter-pill{
  background: none;
  border: 1.5px solid rgba(11,11,11,.22);
  border-radius: 0;
  padding: 5px 14px;
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  transition: background 140ms, color 140ms, border-color 140ms;
}
.opp-filter-pill:hover{
  border-color: var(--text);
}
.opp-filter-pill.is-active{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.opp-filter-bar__right{
  display: flex;
  gap: 8px;
}
.opp-filter-select{
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid rgba(11,11,11,.22);
  border-radius: 0;
  padding: 5px 14px;
  background: none;
  cursor: pointer;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}

/* Card grid */
.opp-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px 0 0;
}

/* Card */
.opp-card{
  background: var(--bg);
  border: 1.5px solid rgba(11,11,11,.82);
  border-radius: 0;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opp-card__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.opp-card__badge{
  display: inline-block;
  background: #0b0b0b;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
}
.opp-card__cat{
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
}

.opp-card__title{
  margin: 0;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
}

.opp-card__org{
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin: -4px 0 0;
}

.opp-card__chips{
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}
.opp-card__chip{
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1.5px solid rgba(11,11,11,.7);
  color: #0b0b0b;
}
.opp-card__chip--loc{
  display: flex;
  align-items: center;
  gap: 4px;
}

.opp-card__divider{
  border: none;
  border-top: 1.5px dashed rgba(11,11,11,.2);
  margin: 0;
}

.opp-card__footer{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.opp-card__fcol{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0; /* la colonna sinistra (PREMIO) può andare a capo */
}
.opp-card__fcol--r{
  align-items: flex-end;
  flex-shrink: 0; /* la colonna SCADE non si schiaccia */
  padding-left: 14px;
  text-align: right;
}
.opp-card__flabel{
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.opp-card__fval{
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: pre-line; /* rispetta gli a-capo inseriti nel premio */
  text-transform: uppercase;
}
.opp-card__fdate{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.opp-card__fyear{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1;
}
.opp-card__fdate.is-urgent{
  color: var(--accent);
}
.opp-card__fdate.is-urgent .opp-card__fyear{
  color: var(--accent);
}

@media(max-width: 900px){
  .opp-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media(max-width: 680px){
  .opp-grid{
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 16px;
  }
}

/* ── Bando / Concorso detail page ───────────────────────── */
.bd-page{
  padding-top: var(--nav-h);
  padding-bottom: 80px;
}
.bd-container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 max(calc(var(--container-pad) / 2), env(safe-area-inset-right, 0px)) 0
    max(calc(var(--container-pad) / 2), env(safe-area-inset-left, 0px));
}

/* Hero */
.bd-hero{
  padding: 32px 0 24px;
  border-bottom: 1.5px dashed var(--text);
}
.bd-hero__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.bd-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.bd-chip{
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1.5px solid rgba(11,11,11,.7);
  color: #0b0b0b;
}
.bd-chip--filled{
  background: #0b0b0b;
  color: #fff;
  border-color: #0b0b0b;
}
.bd-chip--loc{
  display: flex;
  align-items: center;
  gap: 4px;
}
.bd-scheda-btn{
  flex-shrink: 0;
  font-family: "Noto Serif", Georgia, serif;
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 0;
  padding: 6px 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms, color 150ms;
}
.bd-scheda-btn:hover{
  background: var(--accent);
  color: #fff;
}
.bd-hero__title-wrap{
  position: relative;
  display: inline-block;
}
.bd-hero__bg-text{
  font-family: Inter, system-ui, sans-serif;
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #0b0b0b;
  line-height: 1;
  margin: 0;
  user-select: none;
}

/* Stats bar */
.bd-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1.5px dashed var(--text);
  margin-bottom: 40px;
}
.bd-stat{
  padding: 20px 24px 20px 0;
  border-right: 1.5px dashed var(--text);
}
.bd-stat:last-child{
  border-right: none;
  padding-left: 24px;
  padding-right: 0;
}
.bd-stat:not(:first-child):not(:last-child){
  padding-left: 24px;
}
.bd-stat__label{
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.bd-stat__value{
  font-family: "Noto Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.bd-stat__label--ink{
  color: var(--text);
  font-size: 10px;
}

/* 2-col layout */
.bd-layout{
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* Traduzione dal legalese */
.bd-legalese{
  border: 1.5px solid #0b0b0b;
  background: #0b0b0b;
  color: #fff;
}
.bd-legalese__header{
  padding: 10px 16px 0;
}
.bd-legalese__tag{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.bd-legalese__text{
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  padding: 10px 16px 18px;
  margin: 0;
}

/* Content sections */
.bd-section{
  margin-bottom: 40px;
}
.bd-section__title{
  font-family: "Noto Serif", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--text);
}
.bd-section__text{
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 12px;
}
.bd-intro-block{
  margin-bottom: 20px;
}
.bd-intro-block__label{
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 0;
  background: rgba(11, 11, 11, 0.06);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.bd-intro-block .bd-list{
  margin-top: 0;
}
.bd-contribution{
  padding: 20px 22px;
  border-radius: 0;
  background: rgba(11, 11, 11, 0.04);
  border: 1px solid rgba(11, 11, 11, 0.08);
}
.bd-contribution .bd-section__text:last-child,
.bd-contribution .bd-intro-block:last-child{
  margin-bottom: 0;
}
.bd-contribution--examples{
  background: transparent;
  border-style: dashed;
  padding: 16px 18px;
}
.bd-spesa--example{
  font-style: normal;
  color: rgba(11, 11, 11, 0.82);
  background: rgba(11, 11, 11, 0.02);
}
.bd-creative-grid{
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bd-creative-card{
  padding: 18px 20px;
  border-radius: 0;
  border: 1px solid rgba(11, 11, 11, 0.1);
  background: var(--bg);
}
.bd-creative-card__title{
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.bd-creative-card__text{
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
}
.bd-subsection{
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(11, 11, 11, 0.1);
}
.bd-subsection__title{
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 11, 11, 0.55);
}
.bd-list--examples li{
  color: rgba(11, 11, 11, 0.82);
}
.bd-list{
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bd-list li{
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

/* Spese ammissibili grid */
.bd-spese-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.bd-spesa{
  border: 1.5px solid rgba(11,11,11,.18);
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Steps */
.bd-steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.bd-step{
  border: 1.5px solid rgba(11,11,11,.18);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bd-step__num{
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.bd-step__text{
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.bd-steps__note{
  font-size: 11px;
  font-weight: 500;
  font-style: italic;
  color: var(--muted);
  margin: 0;
}

/* Documenti */
.bd-docs{
  display: flex;
  flex-direction: column;
  border: 1.5px solid rgba(11,11,11,.18);
}
.bd-doc{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1.5px solid rgba(11,11,11,.12);
}
.bd-doc:last-child{
  border-bottom: none;
}
.bd-doc__info{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}
.bd-doc__ext{
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}
.bd-doc__btn{
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border: 1.5px solid rgba(11,11,11,.3);
  padding: 4px 10px;
  transition: background 140ms, color 140ms;
}
.bd-doc__btn:hover{
  background: var(--text);
  color: var(--bg);
}

/* Entità del contributo */
.bd-contributo{
  border: 1.5px solid rgba(11,11,11,.18);
}
.bd-contributo__row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.bd-contributo__item{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border-right: 1.5px dashed rgba(11,11,11,.15);
}
.bd-contributo__item:last-child{
  border-right: none;
}
.bd-contributo__label{
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.bd-contributo__value{
  font-family: "Noto Serif", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.bd-contributo__note{
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.bd-contributo__divider{
  border: none;
  border-top: 1.5px dashed rgba(11,11,11,.15);
  margin: 0;
}
.bd-contributo__range{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}
.bd-contributo__range-item{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bd-contributo__range-sep{
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
}
.bd-contributo__range-val{
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}
.bd-contributo__range-val--accent{
  color: var(--accent);
}

/* Nota bene */
.bd-nota-bene{
  border-left: 3px solid var(--accent);
  background: #fff;
  padding: 14px 18px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bd-nota-bene__label{
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.bd-nota-bene__text{
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

/* Simili cards */
.bd-section--simili .bd-section__title{
  margin-bottom: 20px;
}
.bd-simili-grid{
  grid-template-columns: repeat(3, 1fr);
}

/* ── Sidebar ─────────────────────────────────── */
.bd-sidebar{
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Sidebar budget (da stat BUDGET TOTALE) */
.bd-sidebar-budget{
  padding: 18px 16px 16px;
  text-align: center;
  border: 1.5px dashed rgba(11, 11, 11, 0.2);
  background: var(--bg);
  border-radius: 0;
}
.bd-sidebar-budget .bd-stat__label{
  margin-bottom: 6px;
}
.bd-sidebar-budget .bd-stat__value{
  font-size: 26px;
  line-height: 1.1;
}

/* Countdown box */
.bd-countdown{
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 20px 16px 18px;
  border-radius: 0;
}
.bd-countdown__label{
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 4px;
}
.bd-countdown__days{
  font-family: "Noto Serif", Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}
.bd-countdown__days--long{
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.bd-countdown__date{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  opacity: 1;
  margin-top: 10px;
}

/* CTA buttons */
.bd-cta-primary{
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 18px;
  border-radius: 0;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}
.bd-cta-primary:hover{
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.22);
}
.bd-cta-primary:active{
  transform: translateY(0);
  opacity: 1;
  box-shadow: none;
}
/* Info table */
.bd-info{
  border: 1.5px solid rgba(11,11,11,.18);
  border-radius: 0;
  overflow: hidden;
}
.bd-info__row{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1.5px dashed rgba(11,11,11,.12);
}
.bd-info__row:last-child{
  border-bottom: none;
}
.bd-info__label{
  flex-shrink: 0;
  padding-top: 1px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.bd-info__value{
  flex: 1;
  min-width: 0;
  max-width: 68%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}
.bd-info__value--multiline{
  white-space: pre-line; /* rispetta gli a-capo (premio, target, …) */
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.bd-info__value--upper{
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 700;
}

/* Share */
.bd-share-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: 1.5px solid rgba(11,11,11,.22);
  border-radius: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  padding: 13px 16px;
  cursor: pointer;
  transition: background 140ms, color 140ms;
}
.bd-share-btn:hover{
  background: var(--text);
  color: var(--bg);
}

/* ── Opportunità + Bando detail — mobile ─────────────────── */
@media (max-width: 680px){
  .opp-main,
  .bd-page{
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
  }

  .events-hero-header{
    padding-bottom: 28px;
    gap: 14px;
  }
  .events-lead{
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .opp-tab-panels{
    flex-direction: column;
  }
  .opp-tab-panel{
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1.5px solid rgba(11,11,11,.18);
    padding: 16px 18px 14px;
  }
  .opp-tab-panel:last-child{
    border-bottom: none;
  }
  .opp-tab-panel__title{
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.05;
  }
  .opp-tab-panel__count{
    display: inline;
    font-size: 14px;
    margin-top: 0;
    margin-left: 6px;
  }
  .opp-tab-panel__sub{
    font-size: 10px;
  }

  .opp-section{
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  .opp-filter-bar{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0;
  }
  .opp-filter-bar__left{
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }
  .opp-filter-bar__left::-webkit-scrollbar{
    display: none;
  }
  .opp-filter-bar__right{
    width: 100%;
  }
  .opp-filter-select{
    width: 100%;
  }
  .opp-card{
    padding: 14px;
  }
  .opp-card__title{
    font-size: 18px;
  }
  .opp-card__fval{
    font-size: 11px;
  }

  .bd-container{
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  .bd-hero{
    padding: 20px 0 16px;
  }
  .bd-hero__top{
    margin-bottom: 12px;
  }
  .bd-hero__bg-text{
    font-size: clamp(1.6rem, 8.5vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
  }
  .bd-stats{
    grid-template-columns: 1fr;
    margin-bottom: 20px;
  }
  .bd-stat{
    border-right: none !important;
    border-bottom: 1.5px dashed var(--text);
    padding: 14px 0 !important;
  }
  .bd-stat:last-child{
    border-bottom: none;
  }
  .bd-stat__value{
    font-size: 22px;
  }

  .bd-layout{
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .bd-sidebar{
    position: static;
    order: -1;
    margin-bottom: 24px;
  }
  .bd-content{
    order: 1;
    min-width: 0;
  }

  .bd-section{
    margin-bottom: 28px;
  }
  .bd-section__title{
    font-size: 21px;
    margin-bottom: 12px;
  }
  .bd-legalese__text{
    font-size: 13px;
    line-height: 1.65;
  }
  .bd-nota-bene{
    margin-bottom: 24px;
    padding: 12px 14px;
  }
  .bd-nota-bene__text{
    font-size: 12px;
  }
  .bd-section__text,
  .bd-list li,
  .bd-creative-card__text{
    font-size: 13px;
  }

  .bd-spese-grid,
  .bd-steps{
    grid-template-columns: 1fr;
  }
  .bd-contributo__row{
    grid-template-columns: 1fr;
  }
  .bd-contributo__item{
    border-right: none;
    border-bottom: 1.5px dashed rgba(11,11,11,.15);
  }
  .bd-contributo__item:last-child{
    border-bottom: none;
  }
  .bd-contributo__range{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .bd-contributo__range-sep{
    display: none;
  }

  .bd-countdown__days{
    font-size: 40px;
  }
  .bd-countdown__days--long{
    font-size: 18px;
  }
  .bd-sidebar-budget .bd-stat__value{
    font-size: 22px;
  }

  .bd-doc{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .bd-doc__btn{
    align-self: stretch;
    text-align: center;
    padding: 8px 12px;
  }
  .bd-creative-card{
    padding: 14px 16px;
  }
  .bd-contribution{
    padding: 16px;
  }
}

/* Opportunità — angoli squadrati su tutta la sezione (anche elementi futuri) */
.opp-main :where(*),
.bd-page :where(*) {
  border-radius: 0 !important;
}

/* Launch gate — intro + logo fermo + UI a cascata */
html.rb-launch-gated body > :not(#intro-overlay) {
  display: none !important;
}
html.rb-launch-gated body {
  overflow: hidden !important;
  padding-top: 0 !important;
}
#intro-overlay.launch-gate-mode {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 20px;
  gap: clamp(18px, 4vh, 32px);
}
#intro-overlay.launch-gate-frozen {
  background: rgb(234, 0, 2) !important;
}
#intro-overlay.launch-gate-mode .intro-skip {
  display: none !important;
}
#intro-overlay.launch-gate-mode .intro-inner {
  flex-shrink: 0;
  max-height: none;
  width: min(
    520px,
    calc(
      100% - var(--container-pad) - env(safe-area-inset-left, 0px) -
        env(safe-area-inset-right, 0px)
    )
  );
}
.launch-gate-panel {
  width: min(400px, calc(100% - 32px));
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.launch-gate__countdown,
.launch-gate__form,
.launch-gate__legal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.launch-gate__countdown.is-visible,
.launch-gate__form.is-visible,
.launch-gate__legal.is-visible {
  opacity: 1;
  transform: none;
}
.launch-gate__countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
  font-variant-numeric: tabular-nums;
}
.launch-gate__num {
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #0b0b0b;
}
.launch-gate__sep {
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 900;
  line-height: 1;
  color: #0b0b0b;
  padding-bottom: 2px;
}
.launch-gate__form {
  width: 100%;
  margin-bottom: 20px;
}
.launch-gate__form-row {
  display: flex;
  align-items: center;
  border-bottom: 2px solid rgba(11, 11, 11, 0.85);
}
.launch-gate__form-row:focus-within {
  border-color: #0b0b0b;
}
.launch-gate__success {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 700;
  color: #0b0b0b;
  text-align: left;
}
.launch-gate__form-row.is-success {
  border-color: #0b0b0b;
}
.launch-gate__form-row.is-success .launch-gate__submit {
  opacity: 1;
  cursor: default;
}
.launch-gate__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 15px;
  outline: none;
  color: #0b0b0b;
}
.launch-gate__input::placeholder {
  color: #0b0b0b;
  opacity: 1;
}
.launch-gate__input::-webkit-input-placeholder {
  color: #0b0b0b;
  opacity: 1;
}
.launch-gate__input::-moz-placeholder {
  color: #0b0b0b;
  opacity: 1;
}
.launch-gate__submit {
  border: none;
  background: transparent;
  padding: 0 4px 0 12px;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  color: #0b0b0b;
}
.launch-gate__submit:hover {
  color: rgba(11, 11, 11, 0.65);
}
.launch-gate__submit:disabled {
  opacity: 0.5;
  cursor: default;
}
.launch-gate__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(11, 11, 11, 0.55);
}
.launch-gate__legal a {
  color: #0b0b0b;
}
.launch-gate__legal a:hover {
  color: rgba(11, 11, 11, 0.65);
}

/* Anteprima mappa (launch gate + mapPreviewEnabled) */
.rb-map-preview-banner {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 12000;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.88);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}
@media (max-width: 767px) {
  html.rb-map-preview-mode .rb-map-preview-banner--in-mob {
    position: absolute;
    top: 108px;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    z-index: 801;
    pointer-events: none;
  }
}
@media (min-width: 768px) {
  html.rb-map-preview-mode .rb-map-preview-banner--in-map {
    position: absolute;
    top: 68px;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    z-index: 999;
  }
}
html.rb-map-preview-mode.events-page-body .events-hero-header,
html.rb-map-preview-mode.events-page-body .events-filters,
html.rb-map-preview-mode.events-page-body .events-wrap,
html.rb-map-preview-mode.events-page-body .site-footer,
html.rb-map-preview-mode.events-page-body .nav-links,
html.rb-map-preview-mode.events-page-body .search-lang-group,
html.rb-map-preview-mode.events-page-body .skip-link {
  display: none !important;
}
html.rb-map-preview-mode.events-page-body .site-header {
  position: absolute;
  z-index: 5;
  background: transparent;
  border: none;
  box-shadow: none;
}
html.rb-map-preview-mode.events-page-body .events-main {
  padding-top: 0;
  min-height: 0;
}
html.rb-map-preview-mode.events-page-body #map-modal-events {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
html.rb-map-preview-mode.events-page-body #map-modal-events .map-modal-content {
  max-width: 100% !important;
  width: 100% !important;
  max-height: 100vh !important;
  height: 100vh !important;
  border-radius: 0 !important;
}
html.rb-map-preview-mode.events-page-body #map-modal-events .map-modal-backdrop {
  opacity: 0 !important;
}
html.rb-map-preview-mode.events-page-body #map-modal-events .map-modal-close {
  display: none !important;
}
@media (min-width: 768px) {
  html.rb-map-preview-mode body.home-page .skip-link,
  html.rb-map-preview-mode body.home-page #scroll-progress-bar,
  html.rb-map-preview-mode body.home-page main,
  html.rb-map-preview-mode body.home-page .site-footer,
  html.rb-map-preview-mode body.home-page .nav-links,
  html.rb-map-preview-mode body.home-page .search-lang-group,
  html.rb-map-preview-mode body.home-page .btn-map-fab,
  html.rb-map-preview-mode body.home-page #rb-mob {
    display: none !important;
  }
  html.rb-map-preview-mode body.home-page .site-header {
    position: absolute;
    z-index: 5;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  html.rb-map-preview-mode body.home-page #map-modal-events {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    padding: 0 !important;
  }
  html.rb-map-preview-mode body.home-page #map-modal-events .map-modal-content {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 100vh !important;
    height: 100vh !important;
    border-radius: 0 !important;
  }
  html.rb-map-preview-mode body.home-page #map-modal-events .map-modal-backdrop {
    opacity: 0 !important;
  }
}
