:root {
  --color-text: #111;
  --color-bg: #fafafa;
  --color-dark: #030303;
  --color-white: #ffffff;

  --color-overlay: #030303;

  --fs-brand: 1.1rem;
  --fs-hero-tag: clamp(1.6rem, 3vw, 2rem);
  --fs-overlay-links: 2rem;

  --radius-card: 18px;

  --shadow-card: 0 18px 40px rgba(0,0,0,0.08);
  --border-card: 1px solid rgba(0,0,0,0.03);

  --transition-fast: 250ms ease;
  --transition-mid: 350ms ease;
  --transition-burger: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Futura","Futura PT","Century Gothic","CenturyGothic","AppleGothic",Arial,sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: var(--color-dark);
  color: var(--color-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.25rem;
  z-index: 30;
}

.brand {
  font-size: var(--fs-brand);
  font-weight: 600;
  letter-spacing: .05em;
}

/* MENU TOGGLE */

.menu {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  padding: 0;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  outline: none;
}

.menu:focus-visible {
  outline: none;
}

.menu svg {
  width: 44px;
  height: 44px;
}

.line {
  fill: none;
  stroke: var(--color-white);
  stroke-width: 6;
  transition:
    stroke-dasharray var(--transition-burger),
    stroke-dashoffset var(--transition-burger),
    filter var(--transition-mid);
}

.line1 { stroke-dasharray: 60 207; }
.line2 { stroke-dasharray: 60 60; }
.line3 { stroke-dasharray: 60 207; }

.menu.opened .line1 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
}

.menu.opened .line2 {
  stroke-dasharray: 1 60;
  stroke-dashoffset: -30;
}

.menu.opened .line3 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
}

.menu.glow .line {
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.55));
}



.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  font-size: var(--fs-overlay-links);
  letter-spacing: .03em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  z-index: 20;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-overlay a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--transition-mid),
    transform var(--transition-mid);
}

.menu-overlay.active a { opacity: 1; transform: translateY(0); }

.menu-overlay.active a:nth-child(1) { transition-delay: 80ms; }
.menu-overlay.active a:nth-child(2) { transition-delay: 150ms; }
.menu-overlay.active a:nth-child(3) { transition-delay: 220ms; }
.menu-overlay.active a:nth-child(4) { transition-delay: 290ms; }
.menu-overlay.active a:nth-child(5) { transition-delay: 360ms; }





.menu {
  -webkit-tap-highlight-color: transparent;  
}

.menu:focus {
  outline: none;
}

.menu:focus-visible {
  outline: none; 
}

.menu::-moz-focus-inner {
  border: 0; 
}





.home-section {
  padding: 60px 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.home-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.home-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--color-dark);
  margin-bottom: .5rem;
}

.home-section p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
}



.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  margin-top: .5rem;
}

.news-card {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  border: var(--border-card);
  padding: 1.2rem;
  text-align: left;
}

.news-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: .8rem;
}

.news-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: .5rem;
}

.news-card p {
  font-size: .95rem;
  color: #444;
  line-height: 1.55;
}


@media (min-width: 760px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}


.info-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: .5rem;
  text-align: left;
}

.info-item {
  background: var(--color-white);
  padding: 1.3rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  border: var(--border-card);
}

.info-item dt {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #777;
  margin-bottom: .4rem;
}

.info-item dd {
  font-size: 1.05rem;
  color: #222;
}

@media (min-width: 760px) {
  .info-list {
    grid-template-columns: repeat(3, 1fr);
  }
}






/* MEDIA QUERIES */

@media (max-width: 360px) {
  .brand { font-size: .95rem; }
  .menu svg { width: 28px; height: 28px; }
  .hero { padding: 95px 1rem 35px; }
  .hero-tag { font-size: 1.3rem; letter-spacing: .08em; }
  .logo-wrapper img { max-width: 230px; }
}

@media (max-width: 480px) {
  .menu-overlay { font-size: 1.6rem; gap: 1.6rem; }
  .logo-card { padding: 1.5rem 1.5rem 1.25rem; }
  .contact-info { font-size: .85rem; }
}

@media (max-width: 768px) {
  header { padding: 0 1.1rem; }
  .hero { padding: 120px 1.2rem 40px; }
  .logo-wrapper img { max-width: 280px; }
}

@media (max-width: 1024px) {
  .hero-inner { max-width: 600px; }
  .logo-card { padding: 2rem 2.5rem; border-radius: 20px; }
  .hero-tag { font-size: 2.1rem; }
  .menu-overlay { font-size: 2rem; }
}

@media (max-width: 1300px) {
  header { padding: 0 2rem; }
  .hero { padding-top: 150px; padding-bottom: 60px; }
  .logo-card { max-width: 540px; }
}

@media (min-width: 1400px) {
  .hero-tag { font-size: 2.3rem; }
  .logo-wrapper img { max-width: 360px; }
  .logo-card { padding: 2.3rem 3rem 2rem; }
}




.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08); 
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress__bar {
  width: 0;
  height: 100%;

  
  background: linear-gradient(
    90deg,
    #fdd835 0%,
    #ffb300 100%
  );

  
  box-shadow: 0 0 6px rgba(255, 193, 7, 0.55);

  transform-origin: left;
  transition: width 70ms linear;
}


.brand-logo {
  height: 52px;
  width: 52px;
  width: auto;
  filter: brightness(0) invert(1); 
}






.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 50px auto;
  padding: 0 1.3rem;
}

.feature-card {
  background: #e7e7e7; 
  border-radius: 22px;
  padding: 32px 12px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: var(--border-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 140px; 
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.feature-card .icon {
  font-size: 0.85rem;
  color: #777;
  letter-spacing: .03;
}



@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .feature-card {
    min-height: 160px;
    padding: 40px 20px;
  }

  .feature-card h3 {
    font-size: 1.25rem;
  }
}


.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 80px auto 50px;
  padding: 0 1.3rem;
}





.hero {
  padding: 120px 1.5rem 50px;
  max-width: 1000px;
  margin: 0 auto;
}

/* CARD PRINCIPALE */
.hero-card {
  background: #e9e9e9;           /* grigio stile wireframe */
  border-radius: 20px;
  padding: 26px 20px;
  box-shadow: var(--shadow-card);
  border: var(--border-card);

  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  row-gap: 12px;

  max-width: 760px;
  margin: 0 auto;
}


.hero-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-left h1 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-dark);
}

.hero-location,
.hero-date {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

/* COLONNA DESTRA (IMMAGINE) */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-right img {
  width: 140px;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-description {
  margin-top: 30px;
  text-align: center;
  font-size: 1.03rem;
  line-height: 1.6;
  color: #333;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description p + p {
  margin-top: 1rem;
}



@media (max-width: 480px) {
  .hero {
    padding: 110px 1rem 40px;
  }

  .hero-card {
    padding: 22px 16px;
    column-gap: 12px;
  }

  .hero-left h1 {
    font-size: 1.45rem;
  }

  .hero-right img {
    width: 110px;
  }
}



/* SPONSOR  */

.sponsors {
  padding: 60px 1.5rem 40px;
  background: transparent;
}

.sponsors-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.sponsors-inner h2 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 30px;
  color: var(--color-dark);
}

.sponsors-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sponsor-item {
  background: #eee;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .75rem;
  font-weight: 600;
  color: #333;
  letter-spacing: .04em;
  min-width: 70px;
  text-align: center;
}


/* FOOTER */

.site-footer {
  background: #e5e5e5;
  padding: 40px 1.5rem 20px;
  font-size: .9rem;
  color: #333;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* BLOCCO SINISTRO */
.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-social {
  background: #d8d8d8;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .85rem;
}

.footer-left a {
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 500;
}

/* BLOCCO DESTRO */
.footer-right p {
  font-size: .85rem;
  line-height: 1.5;
  color: #444;
}

/* LINK LEGALI */
.footer-legal {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.footer-legal a {
  font-size: .75rem;
  color: #666;
  text-decoration: none;
}

/* DESKTOP */
@media (min-width: 760px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-right {
    text-align: right;
    max-width: 420px;
  }
}
