/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Generale */
body {
  font-family: 'Arial', sans-serif;
  color: #fff;
  line-height: 1.6;
  background-color: #222222;
  overflow-x: hidden;
}


/* Navbar */
.navbar {
    background-color: #1b2846ce;
    color: white;
    padding: 20px 20px;
  }
  
  
  .navbar .favicon {
    position: absolute; /* Fissa la favicon rispetto alla navbar */ 
    display: flex;
    align-items: center;
  }
  
  .navbar .favicon-img {
    width: 40px; /* Dimensione della favicon */
    height: 40px;
    border-radius: 10%; /* Se vuoi rendere l'immagine rotonda */
    margin-bottom: 7px;
  }
  
  
  .navbar-nav {
        justify-content: center !important;     /* Centra orizzontalmente gli elementi */
        display: flex; /* Assicura che flexbox sia attivo */
        margin: 0 auto; /* Garantisce il centraggio nei layout con margini */
        width: 100%; /* Opzionale: garantisce che la navbar occupi tutta la larghezza */
        gap: 20px;
       
       
    }
    
  
  /* Stile per la navbar */
  .navbar-nav .nav-item .nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  /* Effetto al passaggio del cursore */
  .navbar-nav .nav-item .nav-link:hover {
    color: #1385ff; /* Cambia colore */
    transform: scale(1.1); /* Leggero ingrandimento */
  }
  
  /* Aggiungi una linea decorativa animata sotto il link */
  .navbar-nav .nav-item .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px; /* Distanza dalla scritta */
    width: 0;
    height: 2px;
    background-color: #1385ff;
    transition: width 0.3s ease;
  }
  
  /* Espandi la linea decorativa al passaggio del cursore */
  .navbar-nav .nav-item .nav-link:hover::after {
    width: 100%;
  }
  
  @media (max-width: 768px) {
    .navbar .collapse {
      justify-content: start; /* Per allineare correttamente su dispositivi piccoli */
      color: #ffffff;
    
    }
  }
  
  
  .navbar-toggler{
    
  padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);
  font-size: var(--bs-navbar-toggler-font-size);
  line-height: 1;
  color: var(--bs-navbar-color);
  background-color: transparent;
  border: var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);
  border-radius: var(--bs-navbar-toggler-border-radius);
  transition: var(--bs-navbar-toggler-transition);
  margin-left: auto;
  }
  
    
    /* Favicon */
    .favicon {
      position: absolute;
      left: 50px;
      bottom: 10px;
    }
    
    .favicon img {
      width: 45px;
      height: 45px;
      object-fit: cover;
      border-radius: 10px;
    }


      /* Contenitore dei social media */
.social-icons1 {
    position: absolute;
    left: 95%;
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  /* Icone sociali */
  .social-icon1 {
    font-size: 20px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .social-icon1:hover {
    color: #007bff; /* Colore al passaggio del mouse */
  }


/* Social visibili solo su mobile all'interno del menu toggler */
@media (max-width: 768px) {
  .navbar-collapse {
    position: relative; /* Permette il posizionamento relativo */
  }

  .social-icons1 {
    display: flex;
    justify-content: center;
    gap: 15px;
    position: absolute; /* Posiziona le icone in basso */
    bottom: 20px; /* Distanza dal fondo del menu */
    left: 50%;
    transform: translateX(-50%);
  }

  /* Mostra i social solo quando il menu è aperto */
  .navbar-collapse.show .social-icons1 {
    display: flex;
  }

  /* Nasconde di default i social */
  .social-icons1 {
    display: none;
  }
}

/* Divisore distanziante */
.divider {
  width: 100%;
  height: 100px;
  background-color: #222222; /* Colore del divisore */
  
  border: none;
  display: block;
}



/* Divisore distanziante */
.divider1 {
  width: 100%;
  height: 100px;
  background-color: #f5f5f5; /* Colore del divisore */
  
  border: none;
  display: block;
}

/* Contenitori */
.container {
  width: 100%;
  margin: 0 auto;
}


/* Banner */
.banner {
  position: relative;
  height: 650px;
 background: url(aerre/assets/images/banner.png) center center/cover;
  background-size: cover;
  
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
 
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  animation: bgAnimation 10s infinite alternate;
}

.banner-content {
  z-index: 2;
  color: #fff;
  animation: fadeIn 2s ease-out;
}

.banner h1 {
  font-size: 4rem;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 5px;
  animation: textEffect 3s ease-out infinite;
}

.banner p {
  font-size: 1.5rem;
  margin-top: 370px;
  animation: fadeIn 4s ease-out;
}

.banner .btn-primary {
  margin-top: 40px;
  padding: 15px 30px;
  font-size: 1.2rem;
  text-decoration: none;
  background-color: #00b7ff;
  color: white;
  border-radius: 50px;
  transition: transform 0.3s;
}

.banner .btn-primary:hover {
  transform: scale(1.1);
}

/* Animazioni */
@keyframes bgAnimation {
  0% { background: rgba(0, 0, 0, 0.4); }
  50% { background: rgba(0, 0, 0, 0.7); }
  100% { background: rgba(0, 0, 0, 0.4); }
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

@keyframes textEffect {
  0% {
      letter-spacing: 5px;
      transform: scale(1.2);
  }
  50% {
      letter-spacing: 3px;
      transform: scale(1.05);
  }
  100% {
      letter-spacing: 5px;
      transform: scale(1);
  }
}


@media (max-width: 768px) {
  .banner {
    height: 400px;
    background-position: top;
  }

  .banner h1 {
    font-size: 2.5rem;
  }

  .banner p {
    font-size: 1rem;
    margin-top: 50px;
  }

  .banner .btn-primary {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .banner h1 {
    font-size: 2rem;
  }

  .banner p {
    margin-top: 30px;
  }
}

/* Stile per la sezione del paragrafo */
.company-info {
  background-color: #222222;
  padding: 40px 20px;
  text-align: center;
}

.company-info .container {
  max-width: 1200px;
  margin: 0 auto;
}



.company-info .description {
  font-size: 18px;
  color: #ffffff;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 10px;
}


/* Titolo nella pagina */
.page-title {
  text-align: center;
  font-size: 36px;
  color: #ffffff;
  background-color: #222222;
  margin: 0px 0;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInDown 0.7s ease-out;
}



/* Titolo della sezione */
.section-title {
  text-align: center;
  font-size: 24px;
  color: #fff;
  animation: fadeIn 0.5s ease-out;
  font-weight: bold;
  text-transform: uppercase;
}

.subtitle {
  font-size: 1.2em;
  color: #ffffff; /* Colore grigio chiaro per il sottotitolo */
  background-color: #222222;
  text-align: center; /* Per centrare il testo */
  margin-bottom: 0%;
}

/* Contenitore generale per i container */
.container-row {
  display: flex;
  justify-content: center;
  gap: 20px; /* Spazio tra i container */
  flex-wrap: wrap; /* Va a capo se non c'è spazio */
  height: 400px;
  background-color: #222222;
}

/* Stile per ogni container */
.photo-container {
  position: relative;
  cursor: pointer;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s;
  color: #222222;
}

.photo-container:hover {
  transform: scale(1.05); /* Effetto zoom */
}

.main-photo {
  width: 100%;
  height: 400px;
  object-fit: cover;
}


@media (max-width: 768px) {
  .container-row {
    flex-direction: column;
    height: auto;
  }

  .photo-container {
    width: 90%;
    height: 200px;
    margin-bottom: 20px;
  }

  .main-photo {
    height: 200px;
  }
}


/* Stile del modale */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none; /* Invisibile di default */
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: fadeIn 0.4s ease-in-out;
}

/* Animazione di apertura modale */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Contenitore del titolo e della croce di chiusura */
.modal-header {
  display: flex;
  justify-content: center; /* Allinea il titolo al centro */
  align-items: center;
  width: 100%;
  position: relative; /* Posiziona la croce sopra il titolo */
  margin-bottom: 20px; /* Spazio tra il titolo e il contenuto della modale */
}

/* Titolo della modale */
.modal-title {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  margin: 0; /* Rimuove i margini per allineare perfettamente */
  text-align: center;
  flex-grow: 1; /* Permette al titolo di occupare tutto lo spazio disponibile */
}

/* Icona di chiusura */
.close-modal {
  position: absolute;
  top: 0;
  right: 10px;
  background: none;
  border: none;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.close-modal:hover {
  transform: scale(1.1); /* Effetto hover */
}

/* Base per la modale (overlay e contenuto) */
.modal-overlay {
  display: none; /* Inizialmente nascosto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6); /* sfondo semitrasparente */
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, #2d2d2d, #5f5f5f); /* Sfumatura di colori grigi scuri */
  padding: 20px;
  border-radius: 20px;
  max-width: 90%;
  width: 800px;
  max-height: 80%;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  animation: slideIn 0.5s ease-out forwards;
}

/* Animazione di slide-in per la modale */
@keyframes slideIn {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 90%;
    padding: 15px;
  }

  .modal-title {
    font-size: 20px;
  }

  .close-modal {
    font-size: 20px;
    top: 5px;
    right: 5px;
  }
}

/* Bottone di chiusura */
.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  border: none;
  font-size: 24px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.close-modal:hover {
  background-color: rgba(255, 0, 0, 0.7);
}

/* Titolo della sezione */
.section-title {
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
}

/* Contenitore della galleria */
.gallery-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Slider delle immagini */
.image-slider {
  display: flex;
  gap: 15px;
  transition: transform 0.6s ease-in-out;
}

/* Immagini nella galleria */
.gallery-image {
  width: 100%;
  max-width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

/* Frecce di navigazione */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.arrow:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}


/* Contenitore del pulsante "Scopri di più" */
.center-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #222222;
  height: 80px;
  
}


/* Contenitore del pulsante "Scopri di più" */
.center-button-container1 {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5;
  height: 80px;
  
}

/* Stili per il pulsante "Scopri di più" */
.discover-button {
  padding: 15px 30px;
  background-color: #0084ff;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.discover-button:hover {
  background-color: #005fcc;
  transform: scale(1.05);
}

.discover-button:active {
  background-color: #0d56aa;
}

/* Stili per la sezione del processo di progettazione */
.design-process {
  background-color: #f5f5f5;
  padding: 60px 0;
  text-align: center;
}

.design-process .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

@media (max-width: 768px) {
  .process-step {
    width: 48%;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .process-step {
    width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }
}


.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}
.section-title1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color:#1e3a5f;;
}

.section-description {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 50px;
  line-height: 1.6;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.process-step {
  width: 23%;
  background-color: #fff;
  padding: 30px;
  margin: 15px 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.process-icon {
  font-size: 3rem;
  color: #0090f0;
  margin-bottom: 20px;
}

.process-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: #1e3a5f;;
  margin-bottom: 15px;
}

.process-description {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .process-step {
      width: 48%;
      margin: 10px 0;
  }
}

@media (max-width: 480px) {
  .process-step {
      width: 100%;
  }
}



        #cookie-banner {
            position: fixed;
            bottom: 20px;
            left: 20px;
            right: 20px;
            background: white;
            border: 1px solid #ccc;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            display: none;
            z-index: 1000;
        }
        #cookie-banner button {
            margin-right: 10px;
            padding: 10px;
            border: none;
            cursor: pointer;
            border-radius: 5px;
        }
        .accept { background: green; color: white; }
        .reject { background: red; color: white; }
        .customize { background: orange; color: white; }
        .hidden { display: none; }
 

 /* Footer Styling */
 footer {
  background: linear-gradient(135deg, #111, #333);
  color: #fff;
  padding: 60px 20px;
  font-family: 'Arial', sans-serif;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  transform: translateY(50px);
  opacity: 0;
  animation: fadeInUp 1s ease-in-out forwards;
}

.footer-section {
  flex: 1;
  padding: 0 30px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUpSection 1s ease-in-out forwards;
}

.footer-section:nth-child(1) {
  animation-delay: 0.2s;
}

.footer-section:nth-child(2) {
  animation-delay: 0.4s;
}

.footer-section:nth-child(3) {
  animation-delay: 0.6s;
}

.footer-section h3 {
  font-size: 1.6rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.footer-section h3::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #008cff;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-in-out;
  z-index: 0;
}

.footer-section h3:hover::before {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.footer-section h3:hover {
  color: #008cff;
}

.footer-section p {
  font-size: 1.1rem;
  line-height: 1.5;
  opacity: 0.8;
}

.footer-section a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #008cff;
}

.footer-social {
  text-align: center;
  margin-top: 30px;
}


 /* Footer Bottom */
 .footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}


.social-icons {
  display: flex;
  justify-content: flex-start;  /* Sposta le icone a sinistra */
  gap: 40px;
}

.social-icon {
  color: #f1f1f1;
  font-size: 2.5rem;
  transition: transform 0.3s ease, color 0.3s ease, font-size 0.3s ease;
  position: relative;
  z-index: 1;
}

.social-icon:hover {
  color: #00a6f3;
  transform: scale(1.5) rotate(360deg);
  font-size: 3rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #008cff;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-section {
    padding: 20px 0;
  }

  .social-icons {
    flex-direction: column;
  }
}


/* Animations */
@keyframes fadeInUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUpSection {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
