/* Reset di base */
@import url("outfit/fonts.css");
html{
	scroll-behavior:smooth;
}
body {
  font-family: 'Outfit', sans-serif;
  margin: 0;
  font-size: 1.05rem;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}
a {
  color: #005fa3;
  font-weigth:500;
}
/* HERO SECTION con video di sfondo */
.hero{
  position: relative;
  min-height: 100svh;        
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  overflow: hidden;
  color: white;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  z-index: 1;
}

.navbar,
.hero-content {
  position: relative;
  z-index: 2;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.05);
}

.logo {
  display:flex;
  height: 3rem;
  color: white;
  object-fit:contain;
}

.nav-links {
      list-style: none;
      display: flex;
      gap: 1.5rem;
      margin: 0;
    }

    .nav-links li a {
      color: white;
      text-decoration: none;
      font-weight: 500;
      position: relative;
      font-size: 1rem;
    }

    .nav-links li a::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -4px;
      width: 0%;
      height: 2px;
      background-color: white;
      transition: width 0.3s ease;
    }

    .nav-links li a:hover::after {
      width: 100%;
    }

/* HERO CONTENT */
.hero-content{
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: clamp(14vh, 24vh, 30vh);  
  padding: 0 1rem;                      
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;                          
}

.hero-content h1{
  margin: 0;
  font-size: clamp(1.8rem, 4vw + 1rem, 3.2rem);
}
.hero-content p{
  max-width: 600px;
  margin: 0;                             
  font-size: clamp(1rem, 1.6vw + .3rem, 1.3rem);
}
.hero-content button{
  margin: 0;                         
  background: linear-gradient(to right, #005fa3, #004a85);
  color: #fff;
  border: none;
  padding: 1rem 3.5rem;
  font-size: clamp(1.1rem, 2.2vw + .6rem, 2.1rem);
  border-radius: 50px;
  transition: transform .3s ease, background .3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.hero-content button:hover{
  background: linear-gradient(to right, #002b50, #003399);
  transform: scale(1.05);
}
@media (max-width: 768px){
  .hero-content{ margin-top: clamp(16vh, 22vh, 28vh); gap: 1rem; }
  .hero-content button{ padding: .9rem 1.6rem; }
}

/* Schermi bassi in orizzontale: alza ancora un po' */
@media (max-height: 700px){
  .hero-content{ margin-top: 14vh; }
}

/* Se il browser supporta la viewport dinamica */
@supports (height: 100dvh){
  .hero{ min-height: 100dvh; }
}

.hero { padding-bottom: env(safe-area-inset-bottom, 0); }

/* SEZIONI GENERALI */
.section {
  padding: 4rem 2rem;
  background: white;
  animation: fade-in 1s ease both;
}

.container {
  max-width: 1000px;
  margin: auto;
}

/* SEZIONE CHI SIAMO */
.about-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1 1 50%;
}

.media-block {
  flex: 1 1 40%;
}

.media-block img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.btn-link {
  display: inline-block;
  background: linear-gradient(to right, #005fa3, #004a85);
  color: white;
  border: none;
  padding: 1rem 3.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 50px;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-decoration: none; /* rimuove la sottolineatura */
  font-weight: bold;
}

.btn-link:hover {
  background: linear-gradient(to right, #002b50, #003399);
  transform: scale(1.05);
}

/* SONDAggio */
#showSurvey {
  background-color: #6495ED;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 2rem;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#showSurvey:hover {
  background-color: #005fa3;
  transform: scale(1.03);
}

form {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  animation: fade-in 1s ease forwards;
}

form.visible {
  display: flex;
  opacity: 1;
}

.question,
.contact {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 5px solid #0077cc;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.question p {
  font-weight: 600;
  margin-bottom: 0.7rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  padding: 0.6rem 0.8rem;
  font-size: 1rem;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s;
}

input:focus,
select:focus {
  border-color: #0077cc;
  outline: none;
}

label {
  display: block;
  margin: 0.4rem 0;
}
form#multiStepForm {
  display: block !important;
}

form button[type="submit"] {
  align-self: flex-start;
  padding: 0.9rem 2rem;
  background: linear-gradient(to right, #6495ED, #005fa3);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

form button[type="submit"]:hover {
  background: linear-gradient(to right, #6495ED, #005fa3);
  transform: scale(1.05);
}

/* CONTATTI */
#contact a {
  color: #0077cc;
  text-decoration: underline;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #222;
  color: white;
  font-size: 0.9rem;
}

/* ANIMAZIONI */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* BARRA DI SCORRIMENTO*/

.image-scroller-section {
  position:relative;
  overflow: hidden;
  background-color: #002b50;
  padding: 3rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.image-scroller-section::before,
.image-scroller-section::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
/* 
.image-scroller-section::before {
  left: 0;
  background: linear-gradient(to right, white, rgba(255,255,255,0));
}

.image-scroller-section::after {
  right: 0;
  background: linear-gradient(to left, white, rgba(255,255,255,0));
}*/
.image-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  will-change: transform;
}

.image-track img {
  width: 200px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

.image-track.left {
  animation: scroll-left 16s linear infinite;
  margin-bottom: 2rem;
  background-color: #002b50;
  padding: 1rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.image-track.left:hover{
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
/*FINE BARRA*/

@keyframes scroll-left {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(0%); }
  100% { transform: translateX(50%); }
}
.step {
  display: none;
}
.step.active {
  display: block;
}
.hero-button-inline {
  background: linear-gradient(to right, #005fa3, #004a85); 
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 50px;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.hero-button-inline:hover {
  background: linear-gradient(to right, #002b50, #003399);
  transform: scale(1.05);
}
.cta-button {
  background: linear-gradient(to right, #005fa3, #004a85);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 50px;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
}
.cta-button:hover {
  background: linear-gradient(to right, #002b50, #003399);
  transform: scale(1.05);
}

.image-wrapper {
  background-color: #002b50;
  padding: 1rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.awards-preview {
  background: #ffffff;
  padding: 4rem 2rem;
}

.awards-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
}

.awards-text {
  flex: 1 1 55%;
}

.awards-text h2 {
  font-size: 2rem;
  color: #002b50;
  margin-bottom: 1rem;
}

.awards-text p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.awards-content .image-wrapper {
  flex: 1 1 35%;
  background-color: #002b50;
  padding: 1.2rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.awards-content .image-wrapper img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

@media (max-width: 768px) {
  .awards-content {
    flex-direction: column;
    text-align: center;
  }
}
.interactive-gallery {
  margin-top: 2rem;
  cursor: pointer;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.interactive-gallery:hover {
  transform: scale(1.02);
}

.thumb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
}

.thumb-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    align-items: center;
  }

  .media-block {
    width: 100%;
    max-width: 100%;
    align-items: center;
  }

  .media-block img,
  .interactive-gallery {
    width: 100% !important;
    max-width: 100%;
    margin: 0 auto;
  }

  .about-text {
    width: 100%;
    text-align: center;
  }

  .modal-gallery-content {
    grid-template-columns: 1fr;
  }

  .close-gallery {
    left: 20px;
    top: 20px;
    font-size: 2.2rem;
  }
}
/* Velo/gradiente opzionale sopra shader (se lo vuoi) */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* esempio: leggero scurimento + gradiente verticale */
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.20), rgba(0,0,0,0.55));
}

/* Navbar sopra a tutto */
.navbar {
  position: fixed;         /* così resta visibile anche con scroll */
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  /* scegli tu i colori, ma evita bianco su video chiaro */
  color: #fff;
  mix-blend-mode: normal;  /* evita interazioni strane col video */
}

/* Se nav ha sfondo trasparente, aggiungi una leggera tinta per leggibilità */
.navbar {
  background: rgba(0,0,0,0.25);   /* opzionale: rimuovi se non ti serve */
  backdrop-filter: blur(6px);     /* opzionale */
}

/* Contenuti hero */
.hero-content {
  position: relative;
  z-index: 9;              /* sopra overlay/shader */
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
  /* se vuoi che parta un po' più in basso: */
  /* padding-top: 6rem; */ /* per lasciare spazio alla navbar fixed */
}
.hero-content p{
	font-size:1.5rem;
}
/* ===== Overlay transizione ===== */
.page-transition {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  contain: layout paint;
}
.page-transition__circle {
  position: absolute;
  width: 80px; height: 80px; /* viene scalato via GSAP */
  border-radius: 50%;
  background: radial-gradient(circle at center,
              rgba(255,255,255,1) 0%,
              rgba(255,255,255,0.96) 40%,
              rgba(255,255,255,0.92) 100%);
  will-change: transform, opacity;
  transform: translate(-50%, -50%) scale(0.001);
}
/* filtro pagina in uscita */
html.is-animating [data-barba="container"] {
  filter: blur(8px) saturate(0.6);
  transition: filter .35s ease;
}
/* accessibilità */
@media (prefers-reduced-motion: reduce) {
  .page-transition__circle { display: none !important; }
  html.is-animating [data-barba="container"] { filter: none !important; }
}
