/* Reset e stili base */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  font-size: 14px;
}
#lang-toggle {
  text-decoration: none;
  border: none;
}
/* Layout principale */
.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
a img {
  border: none;
  text-decoration: none;
  outline: none;
}
main {
  flex: 1;
  padding: 0 10px;
}

/*sezione header*/
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #96c2ee;
  padding: 8px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.container {
  width: 95%;
  margin: 0 auto;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row; /* Rende nav e logo affiancati */
}

.logo img {
  width: auto;  
  /*height: 110px;*/ 
  max-width: 100%;
  margin-bottom: 8px;
}
/*sezione riferita alla navbar*/

#navbar ul {
  display: flex;         
  gap: 10px;             
  list-style: none;
  margin: 0;
  padding: 0;
}

#navbar li {
  margin: 0;             
}


#navbar a {
  display: block;
  padding: 10px 15px;
  background-color: #005ea6;  /* colore più scuro */
  color: #fff;                /* testo bianco */
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}


/* Effetto hover per migliorare l'interattività */
#navbar a:hover {
  background-color: #5c98d6;
}

/* Sezioni */
section {
  padding: 20px 0;
  border-bottom: 1px solid #eaeef5;
}
/*stili scritte in rilevo e titoli*/
h1, h2, h3 {
  color: #82a9d1;
  margin-top: 0;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

h2:after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #72a6df, #00a0ff);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

a img {
  border: none;
  display: inline-block;
  vertical-align: middle;
}

/* TeamViewer section - Centrato e ottimizzato */
#teamviewer-support {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin: 2rem auto;        /* CENTRA orizzontalmente */
  max-width: 800px;         /* Limita larghezza su desktop */
  width: 100%;              /* Responsive su mobile */
}

.teamviewer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.teamviewer-box {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
}
.contact-info p,
    .contact-info a {
        margin: 0;
        padding: 0;
        display: block;
    }

.teamviewer-box img {
  width: 40px; /* Rimpicciolito il logo TeamViewer */
  height: 40px;
}

/* Immagini ridotte */
img {
  max-width: 100%;
  height: auto;
}

/* News section */
.news-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.news-box {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border: 1px solid #eaeef5;
}

.news-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.news-content {
  padding: 12px;
}

/* Video section */
.carousel-wrapper {
  width: 100%;
  margin: 1rem auto;
}

video {
  width: 100%;
  max-height: 200px;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  padding: 1rem 0;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
}

/* Bottoni */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* Tabella documenti */
.download-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.download-table table {
  min-width: 500px;
}

/* Sezione contatti */
.contact-info {
  text-align: center;
  margin-bottom: 15px;
}

.mappa iframe {
  width: 100%;
  height: 250px;
  border: none;
}

@media (max-width: 360px) {
  body {
    font-size: 13px;
  }
  
  h1 {
    font-size: 1.3rem;
  }
  
  h2 {
    font-size: 1.1rem;
  }

}
.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: auto;
  gap: 10px;
}

.carousel-container {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.video-box {
  min-width: 100%;
  box-sizing: border-box;
  padding: 10px;
  text-align: center;
}

.carousel-btn {
  background-color: #00000088;
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 5px;
  height: fit-content;
}
/* Centro i contenuti e limito la larghezza per un layout a colonna */
.wrapper,
main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container,
section,
#teamviewer-support,
.news-container,
.carousel-wrapper {
  width: 100%;
  max-width: 600px; /* Limita la larghezza per centratura tipo app */
  margin: 0 auto;
  padding-left: 10px;
  padding-right: 10px;
  box-sizing: border-box;
}

/* Allinea i contenuti interni a sinistra (se serve) */
.news-content,
.teamviewer-box,
.video-box {
  text-align: left;
}
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  width: 90%;
  background: #323232;
  color: #fff;
  padding: 15px 30px; /* un po’ più di spazio interno */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: Arial, sans-serif;
  font-size: 14px;
  z-index: 10000;
  gap: 15px;
  flex-wrap: wrap; /* permette di andare a capo */
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 60%; /* prende fino al 60% della larghezza e può ridimensionarsi */
  white-space: normal; /* testo va a capo normalmente */
  overflow: visible;
  text-overflow: clip;
}

.cookie-banner a {
  color: #00aaff;
  text-decoration: underline;
}

.cookie-banner a:hover {
  color: #66d9ff;
}

.cookie-btn {
  background-color: #00aaff;
  border: none;
  color: white;
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap; /* pulsante resta su una riga */
  flex: 0 0 auto; /* non si ridimensiona */
}

.cookie-btn:hover {
  background-color: #008fcc;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 90%;
    width: 90%;
    padding: 12px 15px;
  }
  .cookie-btn {
    width: 100%;
    padding: 12px 0;
    text-align: center;
  }
}


