/* ===========================
   VARIABILI E RESET
   =========================== */
:root {
  --gold: #C9A961;
  --sky-blue: #5B9BD5;
  --dark-blue: #2C3E50;
  --white: #FFFFFF;
  --light-gray: #ECF0F1;
  --medium-gray: #BDC3C7;
  --text-dark: #34495E;
  --shadow: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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



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

ul {
  list-style: none;
}


/* ===========================
   HEADER
   =========================== */
.header {
  background: var(--white);
  box-shadow: 0 2px 15px var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  transition: var(--transition);
}

.header__logo img {
  border-radius: 50%;
  transition: var(--transition);
}

.header__logo:hover img {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(201, 169, 97, 0.3);
}

.header__logo-text h1 {
  font-size: 1.5rem;
  color: var(--dark-blue);
  margin-bottom: 3px;
}

.header__logo-text p {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.header__nav {
  width: 100%;
}

.header__menu {
  display: flex;
  justify-content: center;
  gap: 35px;
  flex-wrap: wrap;
}

.header__menu a {
  color: var(--dark-blue);
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
}

.header__menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 2px;
}

.header__menu a:hover,
.header__menu a.active {
  color: var(--gold);
}

.header__menu a:hover::after,
.header__menu a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--dark-blue);
  margin: 4px 0;
  transition: var(--transition);
  border-radius: 2px;
}

body.menu-open .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

body.menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}

body.menu-open .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
  height: calc(100vh - 100px);
  background: url('../img/pulpito\ gpt.png') center/cover no-repeat;
  background-position: center 65%;
  background-size: cover; /* Mantiene dimensione costante */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  position: relative;
  margin-top: 100px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 20px;
  animation: fadeInUp 1s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Allinea il contenuto in basso */
  align-items: center;
  padding-bottom: 20px;
  /* Spazio dal fondo */
}


.hero__subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--light-gray);
}

.hero__title {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: var(--white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__location {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 30px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.hero__verse {
  font-size: 1.2rem;
  font-style: italic;
  max-width: 600px;
  margin: 0 0 80px 25px;
  line-height: 1.8;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  border-left: 4px solid var(--gold);
}

.hero__verse cite {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--gold);
  font-style: normal;
}

.hero__scroll {
  position: absolute;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
}

.hero__scroll span {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.hero__scroll-icon {
  width: 30px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 20px;
  position: relative;
  margin: 0 auto;
}

.hero__scroll-icon::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: scroll 1.5s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-15px);
  }

  60% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-block;
  padding: 25px 45px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
}

.btn--primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 5px 20px rgba(201, 169, 97, 0.3);
  margin-right: 35px; /* Prova con 20px, 30px, 50px, ecc */
}

.btn--primary:hover {
  background: var(--white);
  color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

.btn--secondary {
  background: var(--sky-blue);
  color: var(--white);
  box-shadow: 0 5px 20px rgba(91, 155, 213, 0.3);
}

.btn--secondary:hover {
  background: var(--dark-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(44, 62, 80, 0.4);
}

.btn--light {
  background: var(--white);
  color: var(--dark-blue);
}

.btn--light:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--outline-light:hover {
  background: var(--white);
  color: var(--dark-blue);
  transform: translateY(-3px);
}

/* ===========================
   SECTIONS
   =========================== */
.section {
  padding: 80px 0;
  scroll-margin-top: 120px;
}

.section--alt {
  background: var(--light-gray);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.section__label {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.section__title {
  font-size: 2.5rem;
  color: var(--dark-blue);
  margin-bottom: 20px;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-dark);
  max-width: 700px;
}

.section__header-center {
  text-align: center;
  margin-bottom: 50px;
}

.section__header-center .section__subtitle {
  margin: 0 auto;
}

/* ===========================
   ROW LAYOUT
   =========================== */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.row--reverse {
  direction: rtl;
}

.row--reverse>* {
  direction: ltr;
}

.col-text {
  padding: 20px 0;
}

.col-text p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.image-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
  transition: var(--transition);
}

.image-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91, 155, 213, 0.2), rgba(201, 169, 97, 0.2));
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.image-box:hover::before {
  opacity: 1;
}

.image-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.image-box img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* ===========================
   FEATURE LIST
   =========================== */
.feature-list {
  margin: 30px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 25px;
  padding: 20px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--gold);
}

.feature-item:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.feature-item h4 {
  color: var(--dark-blue);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.feature-item p {
  margin: 0;
  color: var(--text-dark);
}

/* ===========================
   SCHEDULE GRID
   =========================== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.schedule-card {
  background: var(--white);
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.schedule-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--sky-blue), var(--gold));
}

.schedule-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.schedule-card__day {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sky-blue);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.schedule-card__time {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 15px;
}

.schedule-card__title {
  font-size: 1.5rem;
  color: var(--dark-blue);
  margin-bottom: 15px;
}

.schedule-card__desc {
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.7;
}

.schedule-card__verse {
  font-style: italic;
  color: var(--gold);
  padding: 15px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 10px;
  border-left: 3px solid var(--gold);
  font-size: 0.95rem;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta {
  background: linear-gradient(135deg, var(--dark-blue), var(--sky-blue));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta__content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta__content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta__buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--dark-blue);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.footer__col h3 {
  color: var(--gold);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.footer__col h4 {
  color: var(--gold);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer__col p {
  margin-bottom: 15px;
  opacity: 0.9;
}

.footer__list li {
  margin-bottom: 12px;
  opacity: 0.9;
}

.footer__links a {
  display: block;
  margin-bottom: 12px;
  opacity: 0.9;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--gold);
  transform: translateX(5px);
}

.footer__social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer__social a {
  transition: var(--transition);
}

.footer__social a:hover {
  transform: scale(1.2);
  filter: brightness(1.3);
}

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

/* ADI Italia Logo nel Footer */
.footer__adi-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__adi-section p {
  margin-bottom: 15px;
  opacity: 0.9;
}

.footer__adi-logo {
  display: inline-block;
  transition: var(--transition);
}

.footer__adi-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.footer__adi-logo:hover img {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 5px 25px rgba(201, 169, 97, 0.5);
}

/* ===========================
   PAGE HEADER
   =========================== */
.page-header {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(91, 155, 213, 0.8)),
    url('../img/hero_aosta.jpg') center/cover;
  color: var(--white);
  padding: 150px 0 80px;
  text-align: center;
  margin-top: 100px;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 968px) {
  .row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .row--reverse {
    direction: ltr;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .section__title {
    font-size: 2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

  .hero__content {
    padding-bottom: 60px;
    /* Riduce leggermente lo spazio su mobile */
  }

  /* ← AGGIUNGI QUESTE 3 RIGHE */
  .header__quick {
    display: flex !important;
    /* Mostra l'hamburger */
    position: absolute;
    /* ← AGGIUNGI */
    right: 20px;
    /* ← AGGIUNGI */
    top: 50%;
    /* ← AGGIUNGI */
    transform: translateY(-50%);
    /* ← AGGIUNGI */
    z-index: 1001;
    /* ← AGGIUNGI */
  }

  .hamburger {
    display: flex !important;
    /* ← CAMBIA */
    position: static;
    /* ← AGGIUNGI */
    transform: none;
    /* ← AGGIUNGI */
  }

  .header__logo {
    margin-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .header__logo img {
    width: 60px;
    height: 60px;
  }

  .header__logo-text h1 {
    font-size: 1rem;
  }

  .header__logo-text p {
    font-size: 0.7rem;
  }


  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px var(--shadow);
    transition: var(--transition);
    z-index: 999;
    padding: 100px 30px 30px;
  }

  body.menu-open .header__nav {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    gap: 0;
  }

  .header__menu a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gray);
  }

  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }

  .hero {
    height: 80vh;
    margin-top: 80px;
    background-size: cover; /* Cambiato da 110% a cover */
    background-position: center center; /* Centrato */
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__location {
    font-size: 1.5rem;
  }

  .section {
    padding: 60px 0;
  }

  .cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 60%;
    max-width: 200px;
    text-align: center;
    padding: 13px 27px;
    margin-right: 10px; /* Prova con 20px, 30px, 50px, ecc */

  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-header {
    padding: 120px 20px 60px;
    margin-top: 80px;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding-bottom: 50px;
  }

  .hero__title {
    font-size: 1.8rem;
  }

  .hero__verse {
    font-size: 1rem;
    padding: 15px;
  }

  .section__title {
    font-size: 1.8rem;
  }

  .schedule-card__time {
    font-size: 2rem;
  }

  .cta__content h2 {
    font-size: 1.8rem;
  }
}

/* ===========================
   GALLERIA STYLES
   =========================== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 40px 0;
}

.filter-btn {
  padding: 12px 30px;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--dark-blue);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(201, 169, 97, 0.3);
}

.gallery-masonry {
  column-count: 3;
  column-gap: 20px;
  padding: 20px 0;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  width: 100%;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 15px;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item__title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 2;
}

.gallery-item:hover .gallery-item__title {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: var(--transition);
  z-index: 2;
}

.gallery-item:hover .gallery-item__icon {
  transform: translate(-50%, -50%) scale(1);
}

/* Lightbox - VERSIONE CORRETTA */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 85vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox__close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--gold);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 28px;
  transition: var(--transition);
  border: none;
  font-weight: bold;
  z-index: 10002;
}

.lightbox__close:hover {
  background: var(--white);
  color: var(--dark-blue);
  transform: rotate(90deg) scale(1.1);
}

.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(201, 169, 97, 0.9);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 30px;
  transition: var(--transition);
  border: 3px solid var(--white);
  font-weight: bold;
  z-index: 10002;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--white);
  color: var(--gold);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 8px 30px rgba(201, 169, 97, 0.6);
}

.lightbox__prev {
  left: 30px;
}

.lightbox__next {
  right: 30px;
}

/* Galleria Responsive */
@media (max-width: 968px) {
  .gallery-masonry {
    column-count: 2;
  }

  .lightbox__img {
    max-width: 90vw;
    max-height: 80vh;
  }
}

@media (max-width: 576px) {
  .gallery-masonry {
    column-count: 1;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px;
  }

  .filter-btn {
    width: 100%;
  }

  .lightbox__prev,
  .lightbox__next {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .lightbox__prev {
    left: 10px;
  }

  .lightbox__next {
    right: 10px;
  }

  .lightbox__close {
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    font-size: 24px;
  }

  .lightbox__img {
    max-width: 95vw;
    max-height: 75vh;
  }
}

/* ===========================
    STORIA STYLES
   =========================== */

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 60px auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--sky-blue), var(--gold));
}

.timeline-item {
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: calc(50% + 50px);
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: calc(50% + 50px);
}

.timeline-year {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--sky-blue), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 5px 20px rgba(91, 155, 213, 0.4);
  z-index: 2;
}

.timeline-content {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
  color: var(--dark-blue);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.timeline-content p {
  color: var(--text-dark);
  line-height: 1.7;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 60px;
}

.story-text {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow);
  border-left: 5px solid var(--gold);
}

.story-text h3 {
  color: var(--dark-blue);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.story-text p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--text-dark);
}

/* Modifica per rendere le immagini più rettangolari e aggiungere zoom */
.story-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow);
  height: 100%;
  min-height: 500px;
  /* Aumentato da 400px per renderlo più alto */
  transition: var(--transition);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  /* Aggiunta transizione per lo zoom */
}

/* Effetto zoom al passaggio del mouse */
.story-image:hover img {
  transform: scale(1.1);
  /* Zoom del 10% */
}

/* Migliora l'effetto hover del box */
.story-image:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

/* Overlay opzionale al passaggio del mouse */
.story-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91, 155, 213, 0.15), rgba(201, 169, 97, 0.15));
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
}

.story-image:hover::before {
  opacity: 1;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.value-card {
  background: var(--white);
  padding: 35px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--sky-blue), var(--gold));
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.value-card h4 {
  color: var(--dark-blue);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.value-card p {
  color: var(--text-dark);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-year {
    left: 30px;
    width: 60px;
    height: 60px;
    font-size: 1rem;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 100px;
    margin-right: 0;
    text-align: left;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .story-image {
    min-height: 350px;
    /* Ridotto ma ancora rettangolare su mobile */
  }
}

@media (max-width: 480px) {
  .story-image {
    min-height: 300px;
  }
}

/* 
  GRAZIE
*/

.thank-you-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.thank-you-card {
  background: white;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 600px;
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.thank-you-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 1s ease;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }

  40% {
    transform: translate(-50%, -15px);
  }

  60% {
    transform: translate(-50%, -8px);
  }
}

.thank-you-card h1 {
  color: var(--dark-gray);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.thank-you-card p {
  color: #555;
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

.thank-you-card .highlight {
  color: var(--gold);
  font-weight: 600;
}

.button-group {
  margin-top: 40px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .thank-you-card {
    padding: 40px 25px;
  }

  .thank-you-card h1 {
    font-size: 2rem;
  }

  .thank-you-icon {
    font-size: 60px;
  }

  .button-group {
    flex-direction: column;
  }
}

/* 
  CONTATTI
*/

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.contatti-info {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow);
}

.contatti-info h3 {
  color: var(--dark-blue);
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--light-gray);
  border-radius: 15px;
  transition: var(--transition);
}

.info-item:hover {
  background: rgba(201, 169, 97, 0.1);
  transform: translateX(5px);
}

.info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-content h4 {
  color: var(--dark-blue);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.info-content p {
  color: var(--text-dark);
  line-height: 1.6;
}

.info-content a {
  color: var(--sky-blue);
  text-decoration: none;
  transition: var(--transition);
}

.info-content a:hover {
  color: var(--gold);
}

.orari-list {
  list-style: none;
  padding: 0;
}

.orari-list li {
  padding: 15px;
  margin-bottom: 10px;
  background: var(--white);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 3px 10px var(--shadow);
}

.orari-list strong {
  color: var(--dark-blue);
  font-size: 1.1rem;
}

.orari-list span {
  color: var(--gold);
  font-weight: 600;
}

.mappa-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  height: 500px;
}

.mappa-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.form-container {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow);
}

.form-container h3 {
  color: var(--dark-blue);
  font-size: 1.8rem;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: var(--dark-blue);
  font-weight: 600;
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.social-section {
  background: linear-gradient(135deg, var(--sky-blue), var(--gold));
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}

.social-section h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.social-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.social-link {
  background: var(--white);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.social-link:hover {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.social-link img {
  width: 40px;
  height: 40px;
}

@media (max-width: 968px) {
  .contatti-grid {
    grid-template-columns: 1fr;
  }

  .mappa-container {
    height: 400px;
  }
}

@media (max-width: 576px) {

  .contatti-info,
  .form-container {
    padding: 25px;
  }

  .info-item {
    flex-direction: column;
    text-align: center;
  }

  .orari-list li {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .mappa-container {
    height: 300px;
  }
}

/*----------------- 
  EVENTI
-------------------*/

.eventi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.evento-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.evento-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.evento-card__image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.evento-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.evento-card:hover .evento-card__image img {
  transform: scale(1.1);
}

.evento-card__badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--gold);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(201, 169, 97, 0.4);
}

.evento-card__content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.evento-card__date {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sky-blue);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1rem;
}

.evento-card__date-icon {
  font-size: 1.3rem;
}

.evento-card__title {
  font-size: 1.5rem;
  color: var(--dark-blue);
  margin-bottom: 15px;
  line-height: 1.4;
}

.evento-card__desc {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.evento-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 2px solid var(--light-gray);
}

.evento-card__location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.evento-card__cta {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.evento-card__cta:hover {
  color: var(--sky-blue);
  transform: translateX(5px);
}

.eventi-passati {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 2px solid var(--light-gray);
}

.evento-past {
  opacity: 0.7;
}

.evento-past:hover {
  opacity: 1;
}

.no-eventi {
  text-align: center;
  padding: 60px 20px;
  background: var(--light-gray);
  border-radius: 20px;
  margin-top: 40px;
}

.no-eventi h3 {
  color: var(--dark-blue);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.no-eventi p {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .eventi-grid {
    grid-template-columns: 1fr;
  }

  .evento-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}