/* ============================ */
/* RESET & ROOT VARIABLES       */
/* ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #f9f9f9;
  --dark-red: #7B1E22;
  --gold: #D4AF37;
  --black: #000;
  --gradient: linear-gradient(135deg, #7B1E22 0%, #5a1418 100%);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: var(--dark-red);
  overflow-x: hidden;
}
/* ============================ */
/* NAVBAR - SHRINK ON SCROLL    */
/* ============================ */
.navbar {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 5%;
  gap: 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(249, 249, 249, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 12px 5%;
  background: rgba(249, 249, 249, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Logo torna alla dimensione originale */
.logo img {
  width: 120px; /* dimensione originale */
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block;
  margin: 0;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Link */
.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
  align-items: center;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-red);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.8px;
  position: relative;
  transition: color 0.3s ease;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
  display: inline-block;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}
/* ============================ */
/* HAMBURGER MENU               */
/* ============================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  margin-left: auto;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--dark-red);
  transition: all 0.3s ease;
  border-radius: 3px;
}

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

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

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}
/* ============================ */
/* HERO SECTION CON VIDEO       */
/* ============================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Video di sfondo */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

/* Overlay scuro opzionale per migliorare la leggibilità */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Contenuto hero sopra il video */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 60px 20px;
  margin: 0 auto;
  border-radius: 15px;
  border: 2px solid var(--gold);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 4.8rem;
  color: var(--white);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  animation: fadeIn 1s ease 0.3s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.9rem;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 400;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  animation: fadeIn 1s ease 0.5s both;
}

.hero p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeIn 1s ease 0.7s both;
}

/* Responsive per mobile */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-content {
    padding: 30px 25px;
    margin: 0 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }
}
/* ============================ */
/* CTA BUTTON - UNIFIED         */
/* ============================ */
.cta-button {
  display: inline-block;
  padding: 16px 42px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  color: var(--white);
  border: 2px solid var(--dark-red);
  animation: fadeIn 1s ease 0.9s both;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.cta-button:hover::before {
  transform: translateX(0);
}

.cta-button:hover {
  color: var(--dark-red);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}
/* ============================ */
/* PORTFOLIO SECTION  */
/* ============================ */
.portfolio {
  padding-top: 140px;      /* ridotto da 230px */
  padding-left: 5%;
  padding-right: 5%;
  padding-bottom: 60px;    /* ridotto da 80px */
  min-height: 100vh;
}

.section-content {
  max-width: 1100px;       /* ridotto da 1400px per rendere la sezione più raccolta */
  margin: 0 auto;
}

.portfolio h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;       /* ridotto da 3rem */
  color: var(--dark-red);
  text-align: center;
  margin-bottom: 40px;     /* ridotto da 60px */
  position: relative;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease;
}

.portfolio h2::after {
  width: 60px;             /* ridotto da 80px */
  height: 2px;             /* ridotto da 3px */
}

/* PROJECT BOX */
.project-box {
  background-color: #fff;
  border-radius: 12px;     /* leggermente più sottile */
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  margin-bottom: 35px;     /* ridotto da 50px */
  padding: 22px;           /* ridotto da 30px */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s ease;
}

.project-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;       /* ridotto da 1.6rem */
  color: var(--dark-red);
  text-transform: uppercase;
  margin-bottom: 18px;     /* ridotto da 25px */
  letter-spacing: 0.8px;
  border-left: 3px solid var(--gold);
  padding-left: 15px;
}

.project-content {
  display: flex;
  gap: 20px;               /* ridotto da 30px */
  align-items: flex-start;
  flex-wrap: wrap;
}

.project-left {
  flex: 0.7;
  min-width: 130px;
  max-width: 200px;        /* ridotto da 250px */
}

.project-left img {
  width: 100%;
  height: auto;
  max-height: 180px;       /* ridotto da 220px */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* Ridurre il video nel Featured Project */
.portfolio .project-left iframe {
  max-width: 300px;        /* ridotto da 350px */
  aspect-ratio: 16/9;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: block;
}

.project-right {
  flex: 1.5;
  min-width: 260px;        /* leggermente ridotto */
}

.project-right p {
  font-size: 1.05rem;      /* ridotto da 1.3rem */
  color: #333;
  line-height: 1.6;        /* più compatto */
  margin-bottom: 20px;     /* ridotto da 25px */
  text-align: justify;
}

.project-right .cta-button {
  padding: 10px 26px;      /* ridotto da 12px 32px */
  font-size: 0.8rem;
}
/* ============================ */
/* ABOUT SECTION - SIDE BY SIDE */
/* ============================ */
.about {
  width: 100%;
  display: flex;
  align-items: center;
  background-color: var(--white);
  color: #333;
  padding: 40px 8%;
  box-sizing: border-box;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1300px;
  width: 100%;
  gap: 60px;
}

/* LEFT IMAGE */
.about-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image-wrapper img {
  width: 420px;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* RIGHT TEXT */
.about-text {
  flex: 1.2;
  text-align: left;
}

.about-text h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  color: var(--dark-red);
  margin-bottom: 15px;
  position: relative;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 70px;
  height: 3px;
  background: var(--gold);
}

.about-text p {
  font-size: 1.1rem;
  position:relative;
  text-align: justify;
  line-height: 1.8;
  color: #444;
  max-width: 600px;
  margin-top: 30px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .about-image-wrapper img {
    width: 65%;
  }

  .about-text {
    text-align: center;
  }

  .about-text h2 {
    font-size: 2.5rem;
  }

  .about-text p {
    font-size: 1.1rem;
    margin: 0 auto;
  }
}
.podcast-video-section {
  width: 100%;
  padding: 100px 20px 40px 20px;       /* margine laterale */
  margin: 10px auto;
  text-align: center;
  margin-top: 60px; /* o un valore maggiore se serve più spazio */
  padding-top: 60px; /* aggiungi se vuoi ancora più respiro */

}

.podcast-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: #7B1E22;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.podcast-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
}

.podcast-video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;        /* qui limitiamo la larghezza massima */
  margin: 0 auto;          /* centra il video */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.podcast-video-wrapper video,
.podcast-video-wrapper iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
  border-radius: 12px;
}
/* ============================ */
/* CONTACT SECTION - REFINED    */
/* ============================ */
.contact {
  padding: 140px 5%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--white);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  max-width: 1000px;
  align-items: center;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  padding: 40px;
  animation: fadeInUp 0.8s ease;
  transition: all 0.3s ease;
}

.contact-container:hover {
  box-shadow: 0 10px 35px rgba(212, 175, 55, 0.2);
  transform: translateY(-3px);
}

.contact-image {
  flex: 0.8;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.contact-image img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 15px;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.contact-info {
  flex: 1.2;
  min-width: 280px;
  color: var(--dark-red);
}

.contact-info h2 {
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  font-size: 2.4rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
  position: relative;
}

.contact-info h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70px;
  height: 3px;
  background: var(--gold);
}

.contact-info p {
  color: #333;
  margin-bottom: 30px;
  line-height: 1.8;
  font-size: 1.2rem;
}

/* EMAIL BOX */
.email-box {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.3rem;
  margin-bottom: 30px;
  padding: 15px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 10px;
  border-left: 4px solid var(--gold);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;       /* ✅ niente sottolineatura */
  color: var(--dark-red);      /* ✅ niente blu */
}

.email-box i {
  color: var(--gold);
  font-size: 1.3rem;
}

.email-box span {
  color: var(--dark-red);
  font-weight: 500;
}

/* Hover intero box */
.email-box:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  text-decoration: none;
}

.email-box:hover span {
  color: var(--gold);
}

/* SOCIAL ICONS */
.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.social-icons a {
  color: var(--dark-red);
  font-size: 1.8rem;
  transition: all 0.3s ease;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  text-decoration: none; /* ✅ niente underline */
  border: 1px solid transparent;
}

.social-icons a:hover {
  color: var(--white);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-info {
    text-align: center;
  }

  .email-box {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* ============================ */
/* VIDEOS SECTION               */
/* ============================ */
.videos {
  padding-top: 140px;
  padding-left: 5%;
  padding-right: 5%;
  padding-bottom: 80px;
  min-height: 100vh;
}

.videos h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  color: var(--dark-red);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.videos h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ✅ MODIFICATO: 4 video per fila */
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.8s ease;
}

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(123, 30, 34, 0.2);
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: none;
  display: block;
}

/* ============================ */
/* FADE-IN ANIMATION            */
/* ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================ */
/* RESPONSIVE                   */
/* ============================ */
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr); /* ✅ resta 3 per tablet */
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 80px;
    flex-direction: column;
    background: rgba(249, 249, 249, 0.98);
    width: 100%;
    padding: 40px 0;
    transition: right 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    right: 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-content {
    padding: 30px 25px;
    margin: 0 20px;
  }

  .logo img {
    width: 90px;
  }

  .project-content,
  .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .project-left,
  .contact-image {
    max-width: 100%;
  }

  .contact-info {
    text-align: center;
  }

  .email-box,
  .social-icons {
    justify-content: center;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr); /* ✅ resta 2 su mobile medio */
  }

  .portfolio h2,
  .about h2,
  .videos h2 {
    font-size: 2.2rem;
  }

  .project-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: 1fr; /* ✅ resta 1 su mobile piccolo */
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .cta-button {
    padding: 14px 32px;
    font-size: 0.85rem;
  }

  .portfolio h2,
  .about h2,
  .videos h2 {
    font-size: 1.8rem;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .contact-container {
    padding: 30px 20px;
  }
}
/* EXPERTISE */
.expertise {
  padding: 60px 5%;
  text-align: center;
}

.expertise h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  color: var(--dark-red);
  margin-bottom: 50px;
  position: relative;
}

.expertise h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 220px));
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

.skills-grid span {
  padding: 15px 20px;
  border-radius: 50px;
  background: var(--gradient);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 50px;
  width: 220px;
}

/* ============================ */
/* UNIVERSAL TOP PADDING FIX    */
/* ============================ */
/* Impedisce che i titoli e le sezioni finiscano sotto la navbar fissa */
section {
  padding-top: 140px;
  scroll-margin-top: 140px;
}

/* ✅ Eccezione per My Story */
section.my-story {
  padding-top: 60px !important;
}

/* Corregge i titoli principali (coerenza visiva in tutte le pagine) */
section h2 {
  margin-top: 5;
}

section h2 a {
  color: var(--dark-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

section h2 a:hover {
  color: var(--gold);
}

/
/* =============================== */
/*     ABOUT PAGE - TO SUM UP      */
/* =============================== */

.about-page {
  background-color: var(--white);
  padding: 140px 5% 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 5px;
}

.about-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  color: var(--dark-red);
  text-transform: uppercase;
  margin-bottom: 30px;
  letter-spacing: 1px;
  padding-left: 90px;
  font-style: italic;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

/* LEFT SIDE */
.about-left {
  flex: 1.4;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* GRID DEI BOX */
.boxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* BOX INDIVIDUALI */
.info-box {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 20px 25px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.info-box h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: var(--dark-red);
  margin-bottom: 12px;
}

.info-box ul {
  list-style: disc;
  padding-left: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
}

.info-box li {
  margin-bottom: 6px;
}

/* BOX LARGO (Courses) */
.info-box.large {
  grid-column: 1 / span 2;
}

/* RIGHT SIDE IMAGE */
.about-right {
  flex: 0.7;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.image-frame {
  max-width: 400px;
  width: 90%;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.image-frame img {
  width: 90%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* RESPONSIVE - ABOUT PAGE */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    align-items: center;
  }

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

  .about-right {
    order: -1;
    margin-bottom: 30px;
  }
  
  .info-box.large {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  .about-title {
    font-size: 2.5rem;
  }

  .info-box h3 {
    font-size: 1.1rem;
  }

  .info-box li {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .about-page {
    padding: 140px 5% 40px;
  }

  .about-title {
    font-size: 2rem;
  }

  .info-box {
    padding: 15px 20px;
  }

  .info-box h3 {
    font-size: 1rem;
  }

  .info-box li {
    font-size: 0.8rem;
  }
}
}
/* ============================ */
/* MY STORY SECTION - REFINED LAYOUT */
/* ============================ */

/* Variabili principali */
:root {
  --bg-color: #faf9f7;
  --text-color: #222;
  --accent-red: #b3131b;
  --accent-purple: #a44b9e;
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --gap-large: 60px;
  --gap-medium: 40px;
}

/* SEZIONE MY STORY */
.my-story {
  background-color: var(--bg-color);
  padding: 80px 5%;
  color: var(--text-color);
  font-family: var(--font-primary);
}

/* TITOLO */
.story-title {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-color);
  letter-spacing: 0.5px;
}

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 40px; /* più spazio tra una descrizione e l'altra */
  max-width: 1000px;
  margin: 0 auto;
}

/* TIMELINE ITEM */
.timeline-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px; /* più spazio tra testo e foto */
  flex-wrap: wrap;
}

/* Alternanza layout */
.timeline-item:nth-child(1),
.timeline-item:nth-child(2),
.timeline-item:nth-child(6),
.timeline-item:nth-child(7) {
  flex-direction: row;
}

.timeline-item:nth-child(3),
.timeline-item:nth-child(4),
.timeline-item:nth-child(5) {
  flex-direction: row-reverse;
}

/* IMMAGINI E VIDEO */
.timeline-item img,
.timeline-item video {
  width: 380px;
  max-width: 100%;
  height: auto;
  border: 3px solid #fff;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 📏 FOTO PIÙ PICCOLE — usa class="small-photo" */
.timeline-item img.small-photo {
  width: 300px !important; /* forza la larghezza */
  height: auto;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-radius: 6px;
  opacity: 0.95;
  display: block;
  margin: 0 auto; /* centra l'immagine nel box */
}

/* CONTENUTO TESTO */
.timeline-content {
  max-width: 500px;
}

.timeline-content .year {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 8px;
}

.timeline-item:nth-child(even) .year {
  color: var(--accent-purple);
}

.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  margin: 0;
  text-align: justify;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .timeline-item {
    flex-direction: column !important;
    gap: 30px;
  }

  .timeline-content {
    text-align: center;
  }

  .timeline-item img,
  .timeline-item video {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 600px) {
  .story-title {
    font-size: 1.6rem;
  }

  .timeline-content .year {
    font-size: 1rem;
  }

  .timeline-content p {
    font-size: 0.9rem;
  }
}
/* ============================ */
/* FINAL QUOTE + CTA SECTION (compact) */
/* ============================ */
.final-quote {
  background-color: #f9f9f9; /* più chiaro, in linea col resto del sito */
  color: #222;
  text-align: center;
  padding: 60px 20px; /* ridotto da 100px a 60px */
  font-family: 'Poppins', sans-serif;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.final-quote blockquote {
  font-size: 1.4rem; /* più piccolo */
  font-weight: 400;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto 25px;
  font-style: italic;
  color: #444;
}

.cta-button {
  display: inline-block;
  background-color: #b3131b;
  color: #fff;
  text-decoration: none;
  padding: 10px 28px; /* pulsante più compatto */
  font-size: 1rem;
  font-weight: 600;
  border-radius: 40px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #d21d27;
  transform: scale(1.04);
}

/* Responsivo */
@media (max-width: 600px) {
  .final-quote {
    padding: 40px 16px;
  }
  .final-quote blockquote {
    font-size: 1.2rem;
  }
  .cta-button {
    font-size: 0.95rem;
    padding: 8px 24px;
  }
}
:root {
  --white: #fff;
  --dark-red: #7B1E22;
  --gold: #D4AF37;
}
/* ============================ */
/* BLOG SPECIFIC STYLES */
/* ============================ */
.blog-hero {
  padding: 140px 5% 50px;
  background: linear-gradient(135deg, #7B1E22 0%, #5a1418 100%);
  color: var(--white);
  text-align: left; /* default per articoli singoli */
}

.blog-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: left;
}

.blog-hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0;
  text-align: left;
}

/* Meta e autore della hero (articoli singoli) */
.blog-hero .blog-meta,
.blog-hero .article-author {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
}

/* ============================ */
/* BLOG MAIN PAGE — Hero centrata AL CENTRO */
.blog-main-page .blog-hero {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important; /* centra verticalmente */
  align-items: center !important;     /* centra orizzontalmente */
  text-align: center !important;      /* centra il testo */
  min-height: 30vh !important;        /* altezza minima per centrare */
  padding: 140px 5% 50px !important;           /* regola padding */
}

.blog-main-page .blog-hero h1,
.blog-main-page .blog-hero p {
  margin: 0 auto !important;
}

.blog-main-page .blog-hero .blog-meta,
.blog-main-page .blog-hero .article-author {
  display: flex !important;
  justify-content: center !important;
  margin-top: 15px !important;
}

/* ============================ */
/* FILTERS */
.blog-filters {
  padding: 40px 5%;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  background: var(--white);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: sticky;
  top: 70px;
  z-index: 100;
}

.filter-btn {
  padding: 10px 25px;
  border: 2px solid var(--dark-red);
  background: transparent;
  color: var(--dark-red);
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--dark-red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(123, 30, 34, 0.3);
}

/* ============================ */
/* BLOG GRID */
.blog-container {
  padding: 60px 5% 80px;
  max-width: 1400px;
  margin: 0 auto;
}

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

/* ============================ */
/* BLOG CARD */
.blog-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(123, 30, 34, 0.15);
}

.blog-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}

.blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--gold);
  color: var(--white);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #666;
}

.blog-meta i {
  color: var(--gold);
  margin-right: 5px;
}

.blog-card-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--dark-red);
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.blog-card:hover h3 {
  color: var(--gold);
}

.blog-card-content p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
  font-size: 0.95rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-red);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--gold);
  gap: 12px;
}

/* ============================ */
/* FEATURED POST */
.featured-post {
  background: linear-gradient(135deg, rgba(123, 30, 34, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  border: 2px solid var(--gold);
}

.featured-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  color: var(--dark-red);
  margin-bottom: 10px;
}

.featured-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.featured-content p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 25px;
}

.featured-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-post:hover .featured-image img {
  transform: scale(1.05);
}

/* ============================ */
/* RESPONSIVE */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }

  .featured-post {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .featured-content h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2.5rem;
  }

  .blog-hero p {
    font-size: 1rem;
  }

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

  .blog-filters {
    gap: 10px;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 8px 20px;
  }
}

/* ============================ */
/* MODALE BASE */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  position: relative;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.modal-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #7B1E22;
}

.modal-content p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 15px;
  word-wrap: break-word;
}

.modal .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #7B1E22;
}

/* ============================ */
/* AUTORE ARTICOLO */
.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.article-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  image-rendering: auto;
  border: 2px solid #d4af37;
}

.article-author span {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #fff;
  font-size: 0.95rem;
}
/* ============================ */
/* PAGE TITLE                   */
/* ============================ */
.page-title {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  color: var(--dark-red);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gold);
}

/* ============================ */
/* LOADING INDICATOR            */
/* ============================ */
.loading-indicator {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--dark-red);
}

.loading-indicator i {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 20px;
  animation: spin 1s linear infinite;
}

.loading-indicator p {
  font-size: 1.2rem;
  font-family: 'Poppins', sans-serif;
  color: #666;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
/* ============================ */
/* FADE-IN ANIMATION            */
/* ============================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

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