/* ===== CSS Variables & Reset ===== */
:root {
  --yellow: #ffdc04;
  --yellow-light: #fdeb19;
  --yellow-bg: #fbea1d;
  --red-primary: #e42824;
  --red-dark: #c00510;
  --blue-primary: #1e4a97;
  --blue-light: #008dc9;
  --green-primary: #4caf50;
  --green-dark: #438e34;
  --white: #ffffff;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.15);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Barlow", sans-serif;
  background-color: var(--yellow-light);
  color: #333;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Helpers ===== */
.yellow {
  color: var(--yellow);
}

/* ===== Hero Section ===== */
.hero-section {
  background: linear-gradient(180deg, var(--yellow-bg) 0%, var(--yellow-light) 100%);
  text-align: center;
  padding: 1.75rem 1rem 0;
  position: relative;
}

.hero-brand-title {
}

.hero-main-title {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.prize-info-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.prize-info-row__col--1 {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  width: 50%;
}

.prize-info-row__col--3,
.prize-info-row__col--4 {
  width: 25%;
}

.prize-info-row__col--4 {
  display: flex;
  justify-content: end;
}

.prize-image {
  position: relative;
  z-index: 2;
}

.prize-image svg {
  max-width: 24vw;
  transform: translate3d(-10%, 0, 0);
}

.card-image img {
  max-width: 25vw;
  transform: translate3d(10%, 0, 0);
}

.prize-info-row__col--2 {
  font-family: "Montserrat", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  width: 100%;
}

.prize-badge {
  display: inline-block;
  color: var(--red-primary);
  font-family: "Montserrat", sans-serif;
  /*
  clamp(MIN, MIN + (MAX - MIN) * (100vw - MINpx) / (MAXpx - MINpx), MAX)
  minSize 1.25rem at minWidth 395px
  maxSize 2.34rem at maxWidth 1920px
  */
  font-size: clamp(
    1.25rem,
    calc(1.25rem + (2.34rem - 1.25rem) * (100vw - 395px) / (1920px - 395px)),
    2.34rem
  );
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.0156em;
  margin-bottom: 1em;
}

.prize-info-row__col--2 h3 {
  display: inline-block;
  position: relative;
  font-size: clamp(
    1.875rem,
    calc(1.875rem + (3.25rem - 1.875rem) * (100vw - 395px) / (1920px - 395px)),
    3.25rem
  );
  color: var(--white);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.0156em;
  padding: 0.58em 1em;
  margin: 0;
  border-radius: 9999px;
  background-color: var(--red-primary);
  z-index: 1;
}

.sub-prize {
  position: relative;
  display: inline-block;
  color: var(--white);
  font-weight: 800;
  font-size: 1.5rem;
  font-size: clamp(
    0.8125rem,
    calc(0.8125rem + (1.5rem - 0.8125rem) * (100vw - 395px) / (1920px - 395px)),
    1.5rem
  );
  line-height: 1.16;
  padding: 1.2em 2.25em 0.91em;
  margin-top: -0.2em;
  border-radius: 9999px;
  background: var(--blue-primary);
}

.hero-bottles {
  max-width: 30vw;
}

@media (min-width: 768px) {
  .hero-brand-title {
    max-width: 70vw;
  }

  .hero-main-title {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    max-width: 70vw;
  }

  .hero-section--small .hero-brand-title,
  .hero-section--small .hero-main-title {
    max-width: 30vw;
    min-width: 20rem;
  }

  .prize-info-row {
    justify-content: center;
    flex-wrap: nowrap;
  }

  .prize-image {
    display: flex;
    justify-content: end;
  }

  .prize-image svg {
    max-width: 13vw;
    transform: none;
  }

  .card-image img {
    max-width: 17vw;
    transform: none;
  }

  .prize-info-row__col {
    width: auto !important;
  }
  .prize-info-row__col--1 {
    margin-right: -4vw;
    order: 1;
    flex-direction: column;
    align-items: end;
  }
  .prize-info-row__col--2 {
    order: 2;
  }
  .prize-info-row__col--3 {
    margin-left: -3vw;
    order: 3;
  }
  .prize-info-row__col--4 {
    margin-left: -3vw;
    transform: translate3d(0, 7%, 0);
    order: 4;
  }
  .hero-bottles {
    max-width: 20vw;
  }
}

/* ===== Deadline Bar ===== */
.deadline-bar {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(
    0.9375rem,
    calc(0.9375rem + (2.75rem - 0.9375rem) * (100vw - 395px) / (1920px - 395px)),
    2.75rem
  );
  font-weight: 700;
  color: var(--red-primary);
  letter-spacing: -0.0265em;
}

/* ===== How to Participate ===== */
.participate-section {
  padding: 0 0 3.75rem;
  position: relative;
}

.participate-header {
  text-align: center;
  padding: 16px 16px;
  margin-bottom: 0;
  padding-bottom: 0;
  width: auto;
  max-width: 1105px;
  margin: 0 auto;
  margin-bottom: 3px;
}

.participate-header h2 {
  background: var(--blue-primary);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(
    0.75rem,
    calc(0.75rem + (2.625rem - 0.75rem) * (100vw - 395px) / (1920px - 395px)),
    2.625rem
  );
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.0293em;
  padding: 0.7em 1em;
  margin-bottom: 0;
  border-top-right-radius: 0.5em;
  border-top-left-radius: 0.5em;
}

.participate-content {
  padding: 0 1rem;
}

.container.blocco-rosso {
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--red-primary);
}

.container.blocco-rosso {
  overflow: hidden;
  max-width: 1450px;
}

.step-card {
  border-radius: var(--radius-lg);
  padding: 2.625rem 2.625rem;
  text-align: center;
  position: relative;
  height: 100%;
}

.box-step {
  padding: 0;
  margin: 0;
  border-radius: 0;
  position: relative;
}

.blocco-rosso .box-step:nth-child(2) .step-card {
  padding-top: 0;
  padding-bottom: 0;
}

.step-number {
  width: 1.4em;
  height: 1.4em;
  background: var(--yellow-bg);
  color: var(--blue-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.875em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(
    1.0625rem,
    calc(1.0625rem + (2rem - 1.0625rem) * (100vw - 395px) / (1920px - 395px)),
    2rem
  );
  font-weight: 700;
  line-height: 1;
}

.step-card p {
  color: var(--white);
  line-height: 1.27;
  font-weight: 400;
  font-size: clamp(
    1.25rem,
    calc(1.25rem + (1.875rem - 1.25rem) * (100vw - 395px) / (1920px - 395px)),
    1.875rem
  );
}

.step-card p strong {
  font-weight: 600;
}

.step-card .highlight {
  color: var(--yellow-bg);
  font-weight: 700;
}

.step-card .highlight-bold {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--yellow-bg);
}

.blocco-rosso .box-step:nth-child(2):after,
.blocco-rosso .box-step:nth-child(2):before {
  content: "";
  position: absolute;
  display: none;
  height: calc(100% - 8.75rem);
  width: 3px;
  background-color: var(--yellow-bg);
  bottom: 2.625rem;
  left: -1.5px;
  z-index: 10;
}

.blocco-rosso .box-step:nth-child(2):before {
  left: initial;
  right: -1.5px;
}

@media (min-width: 768px) {
  .participate-section {
    padding-bottom: 5rem;
  }

  .participate-header {
    width: 100%;
  }

  .participate-header h2 {
    padding-right: 0;
    padding-left: 0;
  }

  .blocco-rosso .box-step:first-child .step-card {
    padding-left: 1rem;
  }

  .blocco-rosso .box-step:nth-child(2) .step-card {
    padding-top: 2.625rem;
    padding-bottom: 2.625rem;
  }

  .blocco-rosso .box-step:last-child .step-card {
    padding-right: 1rem;
  }

  .blocco-rosso .box-step:nth-child(2):after,
  .blocco-rosso .box-step:nth-child(2):before {
    display: block;
  }

  /* .box-step {
    margin: 0;
  }

  .blocco-rosso .box-step:first-child {
    margin-top: 24px;
  }

  .blocco-rosso .box-step:nth-child(2):after,
  .blocco-rosso .box-step:nth-child(2):before {
    display: none;
  }

  .blocco-rosso .box-step:first-child .step-card {
    border-radius: 16px 16px 0 0;
    padding: 30px 20px;
  }

  .blocco-rosso .box-step:last-child .step-card {
    border-radius: 0 0px 16px 0;
    padding: 30px 20px;
  } */
}

/* ===== 4 Amici Section ===== */
.amici-section {
  background: var(--yellow-bg);
  padding-bottom: 3.75rem;
  text-align: center;
}
.amici-section .container {
  max-width: 1460px;
}

.amici-section h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(
    1.25rem,
    calc(1.25rem + (2.625rem - 1.25rem) * (100vw - 395px) / (1920px - 395px)),
    2.625rem
  );
  font-weight: 900;
  color: var(--red-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 50px;
}

.amici-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.amici-card {
  border-radius: var(--radius-md);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1.25 / 1;
}

.amici-card:hover {
  transform: scale(1.04);
}

.amici-card.green {
  background: var(--green-dark);
  color: var(--white);
}

.amici-card.blue {
  background: var(--blue-primary);
  color: var(--white);
}

.amici-card .amici-icon {
  font-size: 3rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.amici-card .amici-label,
.amici-label-script,
.amici-label-fun {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(
    1.187rem,
    calc(1.187rem + (2.187rem - 1.187rem) * (100vw - 395px) / (1920px - 395px)),
    2.187rem
  );
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

span.amici-label-script,
.amici-card .amici-label-fun {
  transform: rotate(-10deg);
  font-size: clamp(
    1.8rem,
    calc(1.8rem + (4.937rem - 1.8rem) * (100vw - 395px) / (1920px - 395px)),
    4.937rem
  );
}

.amici-card .amici-label-fun {
  transform: rotate(10deg);
}

.amici-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 100%;
}

.amici-card svg {
  width: 80%;
  height: auto;
}

@media (min-width: 768px) {
  .amici-section {
    padding-bottom: 6.625rem;
  }

  .amici-card:nth-child(5),
  .amici-card:nth-child(6) {
    order: 2;
  }
  .amici-card:nth-child(7),
  .amici-card:nth-child(8) {
    order: 4;
  }
  .amici-card:nth-child(3),
  .amici-card:nth-child(4) {
    order: 3;
  }
}

/* ===== Regulation Section ===== */

.regulation-section {
  background: var(--blue-light);
  padding: 3.75rem 1rem;
  text-align: center;
}

.regulation-section p {
  color: var(--white);
  font-size: clamp(
    1.25rem,
    calc(1.25rem + (2.2375rem - 1.25rem) * (100vw - 395px) / (1920px - 395px)),
    2.2375rem
  );
  font-weight: 500;
  margin-bottom: 1.5em;
  line-height: 1.5;
}

.btn-regulation {
  display: inline-block;
  background: var(--yellow-bg);
  color: var(--blue-primary);
  font-size: clamp(
    1.5625rem,
    calc(1.5625rem + (2.187rem - 1.5625rem) * (100vw - 395px) / (1920px - 395px)),
    2.187rem
  );
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.0117em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75em 1.5em;
  border-radius: 1em;
  box-shadow: 2px 2px 3px #333;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  box-shadow: 3px 3px 0px #086a49;
}

.btn-regulation:hover {
  background: var(--yellow);
}

/* ===== Footer / Social Section ===== */
.social-section {
  background: var(--blue-dark);
  padding: 5.875rem 1rem 6.475rem;
  text-align: center;
}

.social-section p {
  color: var(--red-primary);
  margin-bottom: 1.6em;
  font-size: clamp(
    1.25rem,
    calc(1.25rem + (1.75rem - 1.25rem) * (100vw - 395px) / (1920px - 395px)),
    1.75rem
  );
  line-height: 1.32;
  letter-spacing: 0.0092em;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(
    1.25rem,
    calc(1.25rem + (2.5rem - 1.25rem) * (100vw - 395px) / (1920px - 395px)),
    2.5rem
  );
  color: var(--white);
  transition: all 0.3s ease;
  text-decoration: none;
  background-color: var(--blue-primary);
}

.social-icon--green {
  background-color: var(--green-dark);
}

.social-icon--blue:hover {
  background-color: var(--blue-light);
}

.social-icon--green:hover {
  background-color: var(--green-primary);
}

/* ===== Desktop Adjustments (≥992px) ===== */
@media (min-width: 768px) {
  .hero-section {
    padding-top: 3.75rem;
    padding-bottom: 1rem;
  }

  .regulation-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .social-section {
    padding-top: 3.75rem;
    padding-bottom: 5.62rem;
  }
}

@media (max-width: 767px) {
  .amici-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    max-width: 100%;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }
}

/* ===== Full Regulation Section ===== */
.full-regulation-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: #fff;
}
.full-regulation-section * {
  font-size: clamp(1rem, calc(1rem + (1.5rem - 1rem) * (100vw - 395px) / (1920px - 395px)), 1.5rem);
}
.full-regulation-section h1,
.full-regulation-section h2,
.full-regulation-section h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}
@media (min-width: 768px) {
  .full-regulation-section > .container {
    max-width: 1050px;
  }
}

/* ===== Scroll Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 {
  transition-delay: 0.1s;
}
.fade-up.delay-2 {
  transition-delay: 0.2s;
}
.fade-up.delay-3 {
  transition-delay: 0.3s;
}
.fade-up.delay-4 {
  transition-delay: 0.35s;
}
