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


/* preload */
/* Schermo pieno */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Contenitore */
.loader-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
}

/* Logo centrale */
.loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;   /* adatta la misura */
  height: auto;
  z-index: 5;
  filter: drop-shadow(0 0 6px rgba(128,23,46,0.25));
}

/* Orbite */
.orb {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform-origin: center;
}

.orbit-1 {
  width: 140px;
  height: 140px;
  background: conic-gradient(
    rgba(128,23,46,0) 0deg,
    rgba(128,23,46,0.4) 60deg,
    rgba(38,70,136,0.4) 180deg,
    rgba(128,23,46,0) 360deg
  );
  filter: blur(4px);
  animation: spin 3s linear infinite;
}

.orbit-2 {
  width: 110px;
  height: 110px;
  background: conic-gradient(
    rgba(38,70,136,0) 0deg,
    rgba(38,70,136,0.35) 100deg,
    rgba(228,111,44,0.35) 220deg,
    rgba(38,70,136,0) 360deg
  );
  filter: blur(6px);
  animation: spinReverse 4s linear infinite;
}

.orbit-3 {
  width: 160px;
  height: 160px;
  background: conic-gradient(
    rgba(186,156,158,0) 0deg,
    rgba(186,156,158,0.3) 180deg,
    rgba(186,156,158,0) 360deg
  );
  filter: blur(8px) brightness(1.2);
  animation: spin 6s linear infinite;
}

/* Rotazioni */
@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes spinReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to   { transform: translate(-50%, -50%) rotate(0deg); }
}

/* {
  border: 1px solid red;
}*/

html, body {
  width: 100%;
  height: 100%;
  
}

body, button{
/*  font-family: 'Noto Sans', sans-serif;
  font-family: 'Merriweather', serif;*/
  font-family: 'Noto Serif', serif;
}

h1, h2, h3 {
  font-family: 'Dancing Script', cursive;
}


/* HR MOVIMENTATA */
.custom-hr {
  border: none;
  height: 2px;
  margin: 0;
  padding: 0;
  width: 100vw;
 background: linear-gradient(
  to right,
  transparent,
  #264688,    /* marian-blue */
  #80172E,    /* claret */
  #CEBDC2,    /* french-gray */
  #E0D4D8,    /* lavender-blush */
  #BA9C9E,    /* rosy-brown */
  #E46F2Ccc,
  transparent
  );
  opacity: 0.8;
  position: relative;
  overflow: hidden;
  /*box-shadow: 0 0 8px 2px rgba(150, 103, 62, 0.6); /* glow leggero */
  animation: glowMove 3s linear infinite;
  background-size: 200% 100%;
}

@keyframes glowMove {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}


/*  HR SENZA MOVIMENTO*/
/*.custom-hr {
  border: none;
  height: 2px;
  margin: 0;
  padding: 0;
  width: 95vw;
  background: linear-gradient(
    to right,
    transparent,
    #fff,
    #94673E,
    #76331F,
    #677689,
    #fff,
    transparent
  );
  opacity: 0.8;
}*/

/*
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}*/
/*
.hero-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}*/



.hero-video {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: black;
}

.hero-video video {
  width: 100vw;
  height: 100vh;
  object-fit: contain; /* default, lo script lo cambia */
  object-position: center;
  display: block;
  transition: object-fit 0.3s ease;
}

/*
@media (max-width: 768px) {
  .hero-video video {
    object-fit: contain;
    width: 100%;
    height: auto;
    min-width: unset;
    min-height: unset;
    top: 0;
    left: 0;
    transform: none;
  }
}
*/
/*
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-video .bg-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  min-width: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: blur(20px) brightness(0.6);
  z-index: 0;
}

.hero-video .main-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain; /* o cover su desktop */
}
*/

@keyframes bgmove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Mostra solo su desktop */
@media (min-width: 768px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(10px);
   background: linear-gradient(135deg, #D7DFEBcc, #76331Fcc, #94673Ecc, #677689cc, #32232Bcc); 
 /* background: linear-gradient(135deg,
  #264688cc,    /* marian-blue */
/*  #80172Ecc,    /* claret */
/*  #CEBDC2cc,    /* french-gray */
/*  #E0D4D8cc,    /* lavender-blush */
/*  #BA9C9Ecc    /* rosy-brown */
); */
    color: white;
    transition: top 0.4s ease;
    opacity: 0;
    pointer-events: none;
  }
  

  .navbar.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-left,
  .nav-center,
  .nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
  
  @media (max-width: 1024px) and (min-width: 769px) {
  .nav-left,
  .nav-center,
  .nav-right {
    gap: 0.7rem; /* o 1rem, come preferisci */
  }
}

  .nav-center {
    flex: 1;
    justify-content: center;
  }

 
  .nav-left img {
  height: 80px;   /* 🔁 Cambia questo valore per aumentare o diminuire */
  width: auto;    /* mantiene le proporzioni */
  display: block;
}

  .navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
  font-size: clamp(0.75rem, 2vw, 1rem);

  }

  .navbar a:hover {
    opacity: 0.7;
  }

  .fab {
    font-size: 1.2rem;
  }
}


/* Navbar nascosta su mobile */
.navbar {
  display: none;
}

/* Navbar visibile SOLO su desktop */
@media (min-width: 768px) {
  .navbar {
    display: flex;
    /* il resto del tuo stile */
  }
  
  
  @media (min-width: 768px) and (max-width: 1024px) {
  .nav-left img {
    height: 60px;
  }

  .nav-center a {
    font-size: 0.75rem; /* più piccolo */
    padding: 0 0.3rem;   /* meno spazio orizzontale */
  }

  .nav-left,
  .nav-center,
  .nav-right {
    gap: 0.5rem;
  }

  .fab {
    font-size: 1rem;
  }
}

/* Desktop normale */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* spazio tra le icone */
}

/* Tablet orizzontale (769px – 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-right {
    gap: 0.7rem; /* riduco lo spazio */
  }
  .fab {
    font-size: 1rem; /* riduco dimensione icone */
  }
}

/* Desktop molto largo (oltre 1440px ad esempio) */
@media (min-width: 1440px) {
  .nav-right {
    gap: 2rem; /* aumento un po’ lo spazio */
  }
  .fab {
    font-size: 1.4rem; /* ingrandisco leggermente */
  }
}
  
  

/* ============ HAMBURGER MENU (MOBILE) ============ */
.hamburger {
  display: none;
}

.mobile-menu {
    display: none;
}
}

@media (max-width: 767px) {
  .hamburger {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .hamburger.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
   background: linear-gradient(135deg, #D7DFEBcc, #76331Fcc, #94673Ecc, #677689cc, #32232Bcc);
 /*  background: linear-gradient(135deg,
/*  #264688cc,    /* marian-blue */
/*  #80172Ecc,    /* claret */
/*  #CEBDC2cc,    /* french-gray */
/*  #E0D4D8cc,*/    /* lavender-blush */
 /* #BA9C9Ecc */   /* rosy-brown */
/*);*/
backdrop-filter: blur(8px); /* Opzionale per effetto vetro */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
  }


  .logo-hmg {
  height: 130px;   /* 🔁 Cambia questo valore per aumentare o diminuire */
  width: auto;    /* mantiene le proporzioni */
  display: block;
}


  .mobile-menu.open {
    transform: translateY(0);
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0;
    text-align: left;
  }

  .mobile-menu li {
    margin: 1rem 0;
  }

  .mobile-menu a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    font-family: 'Noto Sans', sans-serif;
  }

  .close-menu {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
  }
  
  .hamburger {
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: #80172E;
  border-radius: 2px;
  transition: all 0.3s ease;
  
}

/* Stato attivo: trasforma in X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

.benson-section {
  padding: 4rem 1rem;
  display: flex;
  justify-content: center;
  background-color: #f9f9f9;
}

.with-image {
  position: relative;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;   /* puoi regolare per "via di mezzo" */
  height: auto;
  opacity: 0.3;  /* se vuoi anche effetto overlay */
  z-index: 0;
}

.benson-container {
  position: relative;
  z-index: 1;
}

.benson-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  background-color: whitesmoke;
 /* box-shadow: 0 0 25px rgba(118, 51, 31, 0.5); /* alone bordeaux scuro */
 box-shadow: 0 0 25px rgba(103, 118, 137, 0.7);
  border-radius: 1rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
flex-direction: row; /* ← Aggiungi questo */

}

.benson-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.benson-text,
.benson-image {
  flex: 1 1 500px;
  padding: 2rem;
}

@media (max-width: 1024px) {
  .benson-image {
    padding: 0 2rem 0rem 2rem;
    
  }
}


.benson-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color:  #264688;
}

h2, h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color:  #264688;
}


.benson-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}


.benson-image {
  width: 100%;
  height: auto;
  display: block;  
  border-radius: 0.5rem;
  
}

img {
    width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

.benson-container {
  display: flex;
  flex-wrap: wrap; /* Permette al contenitore di adattarsi */
}

.benson-image {
  flex: 1 1 300px; /* Si adatta dinamicamente ma ha una larghezza minima */
  max-width: 100%;
}

@media (min-width: 1024px) {
  .benson-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 0;
    padding-right: 0;
  }

  .benson-image img {
    max-width: 300px; /* opzionale: regola la dimensione */
    height: auto;
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .benson-image {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .benson-image img {
    max-width: 300px;  /* opzionale: regola per mantenere proporzioni */
    height: auto;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .benson-container {
    flex-direction: column;
  }
  }


@media (max-width: 1024px) {
  .benson-container {
    flex-direction: column;
  }
}

.benson-text {
  order: 1;
}

.benson-image {
  order: 2;
}

.bottom-img {
  margin-bottom: 40px;
}


.benson-button {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block; 
  text-align: center;
  text-decoration: none;
}

.button-red {
    background: linear-gradient(to bottom, #80172E, #661222); /* 66 bordeaux che mi piace */
    box-shadow: 0 6px 12px rgba(128, 23, 46, 0.4); /* alone bordeaux */
}

.button-blue {
    background: linear-gradient(to bottom, #4a6db3, #3a5799, #264688);
    box-shadow: 0 6px 12px rgba(38, 70, 136, 0.4); /* alone blu */
    
}

.button-orange {
    background: linear-gradient(to bottom, #f8a55f, #e07b34, #e46f2ccc);
box-shadow: 0 6px 12px rgba(228, 111, 44, 0.4); /* alone arancio */
}

@media (min-width: 768px) and (max-width: 1024px) {
  .button-orange,
  .button-red {
    padding: 1rem 2rem 4rem 2rem;
  }
}
@media (min-width: 1280px) {
  .button-orange,
  .button-red {
    padding: 1.2rem 2.5rem;
  }
  .bottom-img {
  margin-top: 30px;
}
}

@media (min-width: 600px) and (max-width: 960px) {
  .button-orange,
  .button-red {
    padding: 1rem 2rem 4rem 2rem;
  }
}


.benson-button:hover {
  background-color: #a32648; /* bordeaux più chiaro */
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(128, 23, 46, 0.6);
}

.benson-button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 8px rgba(128, 23, 46, 0.3);
}

@media (max-width: 1024px) and (min-width: 600px) {
  .benson-button {
    max-height: 60px;
    max-width: 250px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
  }
}

@media (max-width: 1024px) {
  .benson-timeline .timeline-step {
    flex: 1 1 calc(50% - 1rem); /* Due per riga */
  }
}

h2.struttura-orange {
    color: #E46F2Ccc;
}

h1.metodo-red {
  color: #661222;
}

.benson-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
 /* box-shadow: 0 16px 32px rgba(38, 70, 136, 0.4);*/
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benson-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 32px rgba(38, 70, 136, 0.35); /* ombra più intensa al passaggio */
}

.shadow-bordeaux {
  box-shadow: 0 0 32px rgba(128, 23, 46, 0.4);
}

.shadow-blue {
  box-shadow: 0 0 32px rgba(38, 70, 136, 0.4);
}

.shadow-orange {
  box-shadow: 0 0 32px rgba(228, 111, 44, 0.4);
}

.benson-timeline-section {
  background-color: #f9f9f9;
  padding: 4rem 1rem;
  text-align: center;
}

.benson-timeline-title {
  font-size: 2rem;
  color: #264688;
  margin-bottom: 3rem;
  font-family: 'Noto Sans', sans-serif;
}

.benson-timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-step {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(38, 70, 136, 0.2);
  padding: 2rem;
  max-width: 250px;
  flex: 1 1 200px;
  transition: transform 0.3s ease;
}

.timeline-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(38, 70, 136, 0.3);
}

.step-circle {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  background-color: #80172E;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.timeline-step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #264688;
}

.timeline-step p {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .benson-timeline {
    flex-direction: column;
    align-items: center;
  }
}

/*programma*/
.benson-timeline-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.benson-timeline-section.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 769px) {
  .benson-timeline-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh; /* oppure 100vh se vuoi schermata piena */
  }
}


/* Stile per navbar, mobile menu, hamburger: riutilizza quelli del sito principale */

/* Sezione acquisto */
.acquista-section {
  padding: 4rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  background: #f9f9f9;
  border-radius: 1rem;
  box-shadow: 0 0 25px rgba(103, 118, 137, 0.2);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.acquista-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.acquista-section h1 {
  font-size: 2.2rem;
  color: #264688;
  text-align: center;
  margin-bottom: 2rem;
}

.acquista-section ul {
  list-style: none;
  padding: 0;
  font-size: 1.1rem;
  color: #333;
}

.acquista-section li {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.price-tag {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 2rem;
  color: #80172E;
  text-align: center;
}

/* Optional: puoi aggiungere qui anche gli stili della navbar e hamburger se non li hai già */

.video-wrapper {
  max-width: 800px;
  margin: 2rem auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.video-wrapper video {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.lezione-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}


.cta-container {
  text-align: center;
  margin-top: 2rem;
}

.contact-section {
  background: #1a1a1a;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
  margin: 4rem 0;
  border-radius: 15px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-section h2 {
  color: #e63946;
  font-weight: 700;
  margin-bottom: 2rem;
  font-size: 1.8rem;
}


/*classe nel php per cambiare style messaggio di conferma */
.success-msg {
 font-family: 'Dancing Script', cursive;
  color:  #264688;
  font-weight: bold;
  padding: 0;
  text-align: center;
}



.lezione-section {
  min-height: 100vh; /* Copre tutta l'altezza dello schermo */
  display: flex;
  align-items: center; /* Centra verticalmente */
  justify-content: center; /* Centra orizzontalmente se serve */
 /* background: linear-gradient(135deg, #D7DFEBcc, #76331Fcc, #94673Ecc, #677689cc, #32232Bcc); /* Opzionale */
  padding: 2rem 1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
  padding: 4rem 1rem;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}



.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form label {
  text-align: left;
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  outline: none;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 5px #e63946;
  border: 2px solid #e63946;
}

.contact-form button {
  padding: 1rem;
  background-color: #e63946;
  border: none;
  border-radius: 30px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #d62828;
}

/* Responsive form */
@media (max-width: 480px) {
  .contact-section {
    padding: 2rem 1rem;
  }

  .contact-form button {
    font-size: 1rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.contact-form label {
  font-weight: 600;
  color: #264688;
  font-size: 1rem;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: none;
  background-color: #fff;
  color: #333;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #661222;
  outline: none;
  box-shadow: 0 0 8px rgba(103, 18, 34, 0.3);
}


.form-gradient/*, section*/ {
  background: linear-gradient(135deg, 
    #D7DFEBcc, 
    #76331Fcc, 
    #94673Ecc, 
    #677689cc, 
    #32232Bcc
  );
}

.contatti-h2, .contatti-p {
    text-align: center;
}



.benson-footer {
  background: linear-gradient(135deg, #D7DFEBcc, #76331Fcc, #94673Ecc, #677689cc, #32232Bcc);
  color: #fff;
  padding: 1.2rem 0 0.6rem 0; /* Ridotto il padding */
  font-family: 'Noto Sans', sans-serif;
}

.footer-content {
  max-width: 900px; /* Più stretto */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem; /* Meno spazio */
}


.footer-left {
  display: flex;
  justify-content: center;
  align-items: center;
}


.logo-footer {
  height: 80px; /* Più piccolo */
  width: auto;
  display: block;
}

.footer-right {
  text-align: right;
  flex: 1;
}

.footer-social-icons {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  
}

.footer-social-icons a {
  font-size: 1.2rem;
  color: #ffffffcc;
  transition: transform 0.3s, color 0.3s;
}

.footer-social-icons a:hover {
  transform: scale(1.1);
  color: #fff;
}

.footer-email a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.85;
}

.footer-bottom {
  text-align: center;
  margin-top: 0.6rem; /* Più compatto */
  font-size: 0.85rem;
  color: #cccccc;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
  }
  .footer-left, .footer-right {
    width: 100%;
    text-align: center;
  }
  .footer-social-icons {
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .footer-social-icons {
    justify-content: flex-end;
    padding-right: 5rem;
  }
}

@media (min-width: 600px) and (max-width: 991px) {
  .footer-social-icons {
    justify-content: center;
    padding-right: 0; /* Rimuove eventuale spinta a destra */
  }
}

@media (min-width: 768px) {
  .lezione-section {
    padding-top: 130px; /* o quanto basta per non coprire il titolo */
  }
}

/* --- Link alla Privacy Policy in homepage --- */
.privacy-link {
  font-family: Noto Serif', serif;  /* stesso font titoli CoreWork */
  font-size: 0.95rem;                   /* regola la grandezza a piacere */
  color: #264688;                       /* giallo CoreWork */
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.privacy-link:hover {
  color: #E0D4D8;                       /* al passaggio del mouse diventa bianco */
  text-shadow: 0 0 6px rgba(255, 252, 64, 0.6);
}

footer p {
  margin: 0;
  color: #ffffff; /* testo bianco */
  font-family: 'Noto Serif', serif;
}

footer a {
  font-weight: bold;
  color: #264688; /* blu solo per GaByWeb */
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}









/* Link con testo + logo */
.gabyweb-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

/* Logo molto vicino al testo */
.gabyweb-logo {
  height: 35px;     /* più o meno allineato col testo */
  width: auto;
  margin-left: -2px; /* regola la distanza precisa dal testo */
  vertical-align: middle;
  margin-bottom: 10px;
}


/* Footer base: target più grande per accessibilità */
.footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;   /* area cliccabile */
  height: 48px;
  margin: 0 6px;
  font-size: 1.4rem;
}

.footer-email a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 1rem;
}

/* SOLO in landscape e max 1024px (tablet/orizzontale) */
@media (orientation: landscape) and (max-width: 1024px) {
  .footer-content {
    display: flex;
    flex-direction: column;   /* tutto in colonna */
    align-items: center;      /* centrato orizzontalmente */
    text-align: center;
  }

  .footer-left,
  .footer-right {
    width: 100%;              /* si espandono */
    display: flex;
    justify-content: center;  /* elementi centrati */
    margin-bottom: 10px;
  }

  .footer-email {
    margin-top: 8px;
  }
}

/* SOLO in landscape e max 1024px (tablet/orizzontale) */
@media (orientation: landscape) and (max-width: 1024px) {
  .footer-content {
    flex-direction: column;   /* tutto in colonna */
    align-items: center;      
    text-align: center;
  }

  .footer-left,
  .footer-right {
    width: 100%;              
    display: flex;
    flex-direction: column;   /* stack verticale */
    align-items: center;      /* centrato orizzontalmente */
    margin-bottom: 10px;
  }

  .footer-social-icons {
    order: -1;                /* forza le icone sopra all’email */
    justify-content: center;
    margin-bottom: 8px;
    margin-left: 80px;
  }

  .footer-email {
    margin-top: 4px;
  }
}

/* FOOTER: icone sopra all’email e centrate
   su tutti gli schermi >= 1024px (desktop e orizzontali) */
@media (min-width: 1024px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    width: 100%;
    display: flex;
    flex-direction: column; /* stack verticale */
    align-items: center;
    margin-bottom: 10px;
  }

  .footer-social-icons {
    order: -1; /* porta le icone sopra */
    justify-content: center;
    margin-bottom: 8px;
    margin-left: 80px;
  }

  .footer-email {
    margin-top: 4px;
  }
}

a svg {
  width: 24px;
  height: 24px;
  fill: currentColor; /* eredita dal colore del link */
  transition: opacity 0.3s;
}

a:hover svg {
  opacity: 0.7;
}


.footer-powered {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: -0.5rem; /* ora regoli distanza dal resto liberamente */
}

.gabyweb-logo {
  height: 36px;
  width: auto;
  margin-top: -0.1rem; /* abbassa solo il logo */
  margin-left: -0.3rem;
}


.footer-links .footer-icon {
  width: 18px;
  height: 18px;
  margin-right: .35rem;
  stroke: #264688;      /* colore blu del sito */
  fill: none;           /* stile outline elegante */
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity .3s;
  margin-top: 0.5rem;
  
}

.footer-links .footer-link:hover .footer-icon {
  opacity: 0.7;
}