* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --blk: #2c2c2c;
  --wht: #f1f1f1;
  --red0: #e54e4e;
  --red: #b8231d;
  --gri:#eceaec;
  --red1: #7c1919;
  --pink: #ffc8d1;
}
.red {
  color: var(--red);
}
.wht {
  color: var(--wht);
}
/* FONT */
/* garamond */
@font-face {
  font-family: "EB Garamond";
  src: url("../../resources/fonts/EBGaramond-VariableFont_wght.ttf")
    format("ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../../resources/fonts/-Italic-VariableFont_wght.ttf") format("ttf");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
button {
  font-family: inherit;
}
html {
  margin: 0 auto;
  max-width: 2400px;
  color: var(--blk);
  font-family: "EB Garamond";
}
body {
  font-family: "EB Garamond";
}

main {
  min-height: 100vh;
  background-color: var(--wht);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: var(--red);
  text-decoration: none;
}
a:hover{
color: var(--red0);
}

p {
  padding-bottom: 0.25rem;
}
.aspi{
  align-items: center;
  text-align: center;
}
/* Menu e footer tornano full-width */

h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.4rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1.125rem;
}
p,
li {
  font-size: 0.875rem;
}
.small {
  font-size: 0.75rem;
  line-height: 1.4;
}
.testo-centrato {
  text-align: center;
}
section,
footer {
  padding: 1rem 0;
}
.break {
  display: block;
}
.m-b-4-8 {
  margin-bottom: 0.25rem;
}
.m-b-8-16 {
  margin-bottom: 0.5rem;
}
.m-b-16-32 {
  margin-bottom: 1rem;
}
.m-24-48 {
  margin: 1.5rem auto;
}
ul {
  list-style: none;
}
ul li a {
  text-decoration: none;
  transition: color 0.3s;
}
.p-8 {
  padding: 0.5rem;
}
.p-b-8 {
  padding-bottom: 0.5rem;
}
.p-8-32 {
  padding: 0.5rem;
}
.m-t-8{
  margin-top: .5rem;
}
.m-t-32 {
  margin-top: 2rem;
}
.p-16-32 {
  padding: 1rem;
}

.p-16-48 {
  padding: 1rem;
}
.p-24-48 {
  padding: 1.5rem;
}
.p-lr-16-32 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.p-tb-8 {
  padding: 0.5rem 0;
}
.p-b-32 {
  padding-bottom: 2rem;
}

.footer-container {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.footer-column p {
  padding: 0.25rem 0;
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column ul li a {
  color: var(--red1);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-column ul li a:hover {
  color: var(--red0);
}

    /* Griglia programme — solo per questa pagina */
    .programme-day {
      margin-bottom: 2rem;
    }

    .programme-day h2 {
      margin-bottom: 1rem;
    }

    .programme-session {
      margin-bottom: 1.5rem;
    }

    .programme-session > * {
      padding-bottom: 0.5rem;
    }

    .programme-session li {
      margin-bottom: 0.75rem;
    }
    .size-h4{
      font-size: 1.5rem;
    }
/* ##A */
/**
 * Accordion v3.4.1
 * Lightweight and accessible accordion module created in pure Javascript
 * https://github.com/michu2k/Accordion
 *
 * Copyright (c) MichaÃ…â€š Strumpf
 * Published under MIT License
 */
.accordion {
  padding: 1rem;
}
.accordion-container, .committee {
  max-width: 70rem;
}
.ac {
  margin-bottom: .5rem;
  border: .5px solid var(--red);
  background-color: var(--wht);
  box-sizing: border-box;
  border-radius: 4px;
}
.ac .ac-header {
  margin: 0;
  padding: 1rem;
}
.ac .ac-trigger {
  color: var(--red1);
  text-align: left;
  width: 100%;
  padding: 8px 32px 8px 8px;
  display: block;
  cursor: pointer;
  background-color: transparent;
  transition: color 0.25s ease;
  position: relative;
  text-decoration: none;
  margin: 0;
  border: 0;
}
.ac .ac-trigger::after {
  content: "+";
  text-align: center;
  width: 15px;
  transform: translate(0, -50%);
  position: absolute;
  right: 10px;
  top: 50%;
}
.ac .ac-trigger:focus {
  color: var(--red);
}
.ac .ac-panel {
  overflow: hidden;
  transition-property: height, visibility;
  transition-timing-function: ease;
}

.ac .ac-panel .ac-text {
  padding: 1rem;
}
ul.ac-panel {
  list-style: disc;
  padding-left: 2rem;
}

.ac-text {
  font-size: 1rem;
}
.ac.js-enabled .ac-panel {
  visibility: hidden;
}
.ac.is-active .ac-panel {
  visibility: visible;
}
.ac.is-active > .ac-header .ac-trigger::after {
  content: "\2013";
}
.apice {
  font-size: 0.6em;
  vertical-align: super;
}

.a-urb,
.a-about {
  display: flex;
  flex-direction: column;
  padding-top: 1rem;
  gap: 1rem;
  text-align: left;
}

.a-about div > * {
  padding-bottom: .5rem;
}
/* ##B */

.button {
    display: inline-flex;
    padding: 4px 8px;
    background-color: var(--wht);
    color: var(--red);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align:center;
    transition: background-color 0.4s ease;

    border: 1px solid var(--red1);
    gap: .125rem;
}

.button:hover {
    background-color: var(--red);
    color: var(--wht);
    border: 1px solid var(--pink);
}

.button:active {
    transform: scale(0.98);
}

/* ##C */
.container-citta,
.container-logo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.container-citta picture,
.container-logo picture {
  display: block;
  width: 100%;
}

.container-citta img,
.container-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.img-centr {
  display: block;
  margin: 0 auto;
}
.contatore {
  background-color: var(--gri);
  border-radius: .5rem;
  padding: 1rem;
  border: 1px solid var(--red);
}

/* ##D */
.div-italy {
  display: flex;
  gap: .125rem;
}
.contacts {
  display: flex;
  flex-direction: column;
  background-color: var(--gri);
  border-top: 1px solid var(--red);
  align-items: center;
}

/* ##E */

/* ##F */
#footer {
  padding: 2rem;
}
.fee {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* opzionale, per lo spazio tra i due div */
  text-align: center;
}

.fee > div {
  flex: 1; /* ogni div figlio occupa metà spazio */
}
.fee-box{
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: .5rem;
}
.fee-box .fee > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 10rem; /* o il valore che serve */
}

/* ##G */

/* ##H */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 4;
}

.hamburger span {
  width: 100%;
  height: 0.25rem;
  background: black;
  border-radius: 0.125rem;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* STATI HAMBURGER */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: black;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.85px, -6.05px);
  background: black;
}

#hero {
  padding: 0;
  background-image: url("/pisb/resources/img/uniurb-header.webp");
  background-size: cover;
  background-position: center;
  min-height: 8rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* ##I */
#iban{
  color: var(--red);
  padding: 0;
  font-weight: bold;
}

.intestazione {
  background-color: #b8221dbb;
  width: 22rem;
  height: 4rem;
  display: flex;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  align-items: center;
  justify-content: center;
  padding: .5rem;
}
.intestazione h1{
  font-size: 1.6rem;
}
#intro {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: .5rem;
}

/* ##J */

/* ##K */

/* ##L */

/* ##M */
.maps {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
}

/* ID del tag HEADER dedicato al menu DESKTOP */
#menu {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background-color: var(--red);
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

/* Opzionale: Effetto aggiuntivo quando si scrolla */
#menu.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* MENU DESKTOP ÃƒÂ¨ IN NONE PERCHÃƒâ€° SIAMO MOBILE FIRST */
.menu-desktop {
  display: none;
}

/* MENU MOBILE */
.menu-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--blk);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(-100%);
}

/* ##N */

/* ##O */
.organizzatori {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.organizzatori h6 {
  min-height: 2.5rem;
}
.organizzatori div a img {
  width: 100%;
  padding: 1rem;
  height: auto;
  display: block;
}

/* ##P */
.payment {
    display: flex;
    flex-direction: row;
    gap: .5rem;
    align-items: center; /* Questo allinea verticalmente gli elementi tra loro */
}

.payment p {
    margin: 0; /* Rimuove i margini di default del paragrafo */
}
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--wht); /* o il tuo colore */
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

.page-transition.hidden {
  opacity: 0;
}

/* ##Q */

/* ##R */

/* ##S */
.subline {
  position: relative;
  text-decoration: none;
  background: linear-gradient(
    transparent 60%,
    var(--gri) 60%,
    var(--gri) 85%,
    transparent 85%
  );
}

/* ##T */
.testi-articoli h2 {
  margin-bottom: 1rem;
}
.testi-articoli > * {
  padding-bottom: 0.5rem;
}

.tl-intro {
      height: 20vh;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: var(--blk);
    }
    .tl-spacer-end { height: 50vh; }
    .tl-timeline {
      position: relative;
      max-width: 700px;
      margin: 0 auto;
    }
    
    .tl-timeline::before {
      content: '';
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      top: 0;
      bottom: 0;
      width: 3px;
      background: var(--gri);
    }
    
    .tl-line-fill {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      top: 0;
      width: 3px;
      height: 0%;
      background: var(--red1);
    }
    
    .tl-item {
      position: relative;
      display: flex;
      align-items: flex-start;
      padding-bottom: 120px;
    }
    
    .tl-item:last-child {
      padding-bottom: 0;
    }
    
    .tl-dot {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      top: 0;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--blk);
      border: 4px solid var(--gri);
      z-index: 1;
    }
    
    .tl-date {
      width: 50%;
      padding-right: 40px;
      text-align: right;
      font-weight: 700;
      color: var(--red);
      font-size: 1.1rem;
      opacity: 0;
      /* TRANSIZIONE: quanto è fluido il cambio di opacity */
      transition: opacity 0.3s ease;
    }
    
    .tl-text {
      width: 50%;
      padding-left: 40px;
      text-align: left;
      color: var(--blk);
      font-size: 1rem;
      line-height: 1.5;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

/* ##U */

/* ##V */
.voci-menu {
  list-style: none;
  text-align: center;
}

.voci-menu li {
  margin: 2rem 0;
}

.menu-mobile .voci-menu li {
  opacity: 0;
  transform: translateY(50px);
}

.voci-menu a {
  text-decoration: none;
  font-size: 1.1rem;
  color: var(--wht);
  transition: color 0.3s ease;
  font-style: italic;
}
.voci-menu a:hover{
  color: var(--pink);
}



/* ##W */

/* ##X */

/* ##Y */

/* ##Z */

@media (min-width: 768px) {
  h1 {
    font-size: 3.25rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 2.25rem;
  }
  h4 {
    font-size: 1.75rem;
  }
  h5 {
    font-size: 1.5rem;
  }
  h6 {
    font-size: 1.25rem;
  }
  p,
  li {
    font-size: 1.125rem;
  }
  .small {
    font-size: 0.875rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  /* ##A */

  /* ##B */

  /* ##C */

  /* ##D */

  /* ##E */

  /* ##F */
  .fee {
  flex-direction: row;
}


  /* ##G */

  /* ##H */
  #hero {
    min-height: 14rem;
  }

  /* ##I */
  .intestazione {
    width: 38rem;
    height: 6rem;
  }
  .intestazione h1{
    font-size: 2.75rem;
  }

  /* ##J */

  /* ##K */

  /* ##L */

  /* ##M */

  /* ##N */

  /* ##O */
/* Prima griglia: promoters — 3 colonne */
.organizzatori.three-col {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.organizzatori.two-col {
  padding: 0 2rem;

}

/* Seconda griglia: sponsors — 2 colonne (default già impostato) */
/* .organizzatori rimane a repeat(2, 1fr) come da mobile */

  /* ##P */

  /* ##Q */

  /* ##R */

  /* ##S */

  /* ##T */

  /* ##U */

  /* ##V */

  /* ##W */

  /* ##X */

  /* ##Y */

  /* ##Z */
}

/* === MEDIA QUERY 992px === */
@media (min-width: 992px) {
  h1 {
    font-size: 5rem;
  }
  h2 {
    font-size: 3rem;
  }
  h3 {
    font-size: 2.5rem;
  }
  h4 {
    font-size: 2rem;
  }
  h5 {
    font-size: 1.75rem;
  }
  h6 {
    font-size: 1.5rem;
  }
  p,
  li {
    font-size: 1.125rem;
  }
  .small {
    font-size: 1rem;
  }
  .p-8-32 {
    padding: 2rem;
  }
  .pt-8-32 {
    padding: 2rem 0;
  }
  .p-16-32 {
    padding: 2rem;
  }
  .p-16-48 {
    padding: 3rem;
  }
  .p-24-48 {
    padding: 3rem;
  }
  .p-lr-16-32 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .m-24-48 {
    margin: 3rem auto;
  }
  .m-b-4-8 {
    margin-bottom: 0.5rem;
  }
  .m-b-8-16 {
    margin-bottom: 1rem;
  }
  .m-b-16-32 {
    margin-bottom: 2rem;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  /* ##A */
  .a-urb,
  .a-about {
    padding: 2rem 4rem 0 4rem;
    flex-direction: row;
    gap: 2rem;
  }

  .a-about > .testi-articoli,
  .a-about > .container-citta,
  .a-about > .container-logo {
    flex: 1;
    min-width: 0;
  }
.organizzatori.three-col {
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}
.organizzatori.two-col {
  column-gap: 26%;
  padding: 0 2rem;
}

  /* ##B */

  /* ##C */

  /* ##D */

  /* ##E */

  /* ##F */

  /* ##G */

  /* ##H */

  /* HAMBURGER DESKTOP */
  .hamburger {
    display: none;
  }

  #hero {
    min-height: 20rem;
  }

  /* ##I */
  .intestazione {
    width: 52rem;
    height: 8rem;
  }
   .intestazione h1{
    font-size: 3.75rem;
  }

  /* ##J */

  /* ##K */

  /* ##L */

  /* ##M */
  /* MENU DESKTOP */
  .menu-desktop {
    display: block;
  }

  .menu-desktop .voci-menu {
    display: flex;
    flex-direction: row;
    gap: .125rem;
    align-items: center;
  }

  .menu-desktop .voci-menu li {
    margin: 0;
    opacity: 1;
    transform: none;
      flex: 1 1 0;
  min-width: 100px;
  }

.menu-desktop .voci-menu a {
    position: relative;
      display: block;
  padding: 0.25rem;
  text-align: center;
  }

  /* MENU MOBILE quando ÃƒÂ¨ in DESKTOP */
  .menu-mobile {
    display: none;
  }

  /* ##N */

  /* ##O */


  /* ##P */

  /* ##Q */

  /* ##R */

  /* ##S */

  /* ##T */

  /* ##U */

  /* ##V */

  /* ##W */

  /* ##X */

  /* ##Y */

  /* ##Z */
}

/* ##ZETA INDEX
1: .menu-mobile (menu mobile)
2: #menu (header menu desktop)
3: .hamburger (gli span del menu mobile)
*/