:root {
  --accent: #507e5b;
  --muted: #666;
  --bg: #f6f8fb;
  --card: #ffffff;
  --radius: 12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--accent);
  /* grigio elegante al posto di nero */
  line-height: 1.45;
}

/* === HEADER TRASPARENTE DESKTOP === */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--accent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 238, 249, 0.3);
  z-index: 10;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--accent);
}

.topbar a {
  color: var(--accent);
  text-decoration: none;
  margin-left: 12px;
}

/* === HEADER MAIN === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.header-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 6px;
  padding-bottom: 6px;
}

/* === BRAND CON LOGO (DESKTOP) === */
.brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 1;
  color: var(--card);
  font-size: 30px;
  margin-left: -380px;
  letter-spacing: 3px;
}

.logo {
  height: 140px;
  width: 150px;
  vertical-align: auto;
  margin-right: auto;
  margin-top: -80px;
}

/* === MENU (DESKTOP) === */
.nav-links {
  margin-left: auto;
  display: flex;
  gap: 14px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  /* grigio scuro */
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--muted);
  color: var(--accent);
}

/* === HERO CON SFONDO === */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
  padding: 200px 0 120px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom right, rgba(255, 255, 255, 0.45), rgba(246, 248, 251, 0.55)),
    url("images/prova.png") center/cover no-repeat;
  z-index: 0;
  opacity: 1;
}

/* === CARD PRINCIPALE === */


.hero-card {
  max-width: auto;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  color: #333;
  z-index: 1;
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  font-family: 'Arial', sans-serif; /* O il font che preferisci */
  font-size: 16px; /* Imposta una dimensione del font di base */
  line-height: 1.6; /* Altezza della riga per una lettura più chiara */
  padding: 0 20px;
  
}

.hero-card.hero-overlay {
  max-width: auto;
  margin-left: 15px;
  margin-right: auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding:  25px 100px;
}
#contactForm {
  padding-right: 20px; /* Spazio a destra del form */
}
/* === ANIMAZIONE HERO === */
.hero-card.hero-overlay ul li {
  opacity: 0;
  color: var(--accent);
  transform: translateX(40px);
  animation: slideIn 0.6s ease forwards;
}

.hero-card.hero-overlay ul li:nth-child(1) {
  animation-delay: 0.3s;
}

.hero-card.hero-overlay ul li:nth-child(2) {
  animation-delay: 0.6s;
}

.hero-card.hero-overlay ul li:nth-child(3) {
  animation-delay: 0.9s;
}

.hero-card.hero-overlay ul li:nth-child(4) {
  animation-delay: 1.2s;
}

.hero-card.hero-overlay ul li:nth-child(5) {
  animation-delay: 1.5s;
}

.hero-card.hero-overlay ul li:nth-child(6) {
  animation-delay: 1.8s;
}

.hero-card.hero-overlay ul li:nth-child(7) {
  animation-delay: 2.1s;
}

.hero-card.hero-overlay ul li:nth-child(8) {
  animation-delay: 2.4s;
}

.hero-card.hero-overlay ul li:nth-child(9) {
  animation-delay: 2.7s;
}

.hero-card.hero-overlay ul li:nth-child(10) {
  animation-delay: 3.0s;
}

.hero-card.hero-overlay .cta {
  opacity: 0;
  transform: translateX(60px);
  animation: slideIn 0.9s ease forwards;
  animation-delay: 3.3s;
}
.hero-card ul {
  padding-left: 20px; /* Distanza a sinistra per la lista */
}

.hero-card li {
  margin-bottom: 10px; /* Distanza tra gli elementi della lista */
}

.hero-card h3 {
  font-size: 24px; /* Più grande per i titoli */
  font-weight: bold;
  margin-bottom: 20px; /* Spazio sotto il titolo */
}

.hero-card .small {
  font-size: 14px; /* Dimensione più piccola per i testi secondari */
  color: #777; /* Colore grigio per il testo secondario */
}

.hero-card a.cta {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff; /* Colore di sfondo per il link */
  color: white;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
  margin-top: 20px;
}

.hero-card .contact-info div {
  margin-bottom: 12px; /* Spazio tra le informazioni di contatto */
}
/* Stile per il campo textarea (Messaggio) */
.hero-card textarea {
  font-size: 16px; /* Dimensione del testo uguale a quella del menu */
  line-height: 1.6; /* Altezza della riga uguale */
  padding: 10px; /* Padding interno per rendere il testo più comodo */
  width: 100%; /* Larghezza 100% per adattarsi alla larghezza del form */
  resize: vertical; /* Consenti solo la modifica verticale della dimensione */
}
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === TESTI HERO === */
.hero h1 {
  margin: 0 0 10px;
  font-size: 28px;
  color: var(--accent);
}

.lead {
  color: #000;
  /* grigio elegante */
  margin: 0 0 18px;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}

.cta:hover {
  background: var(--muted);
}

/* definisci l’animazione */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === SERVIZI === */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.service {
  background: var(--card);
  color: var(--accent);
  padding: 18px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(12, 30, 60, 0.04);
  opacity: 0;
  /* inizialmente nascosto */
  transform: translateY(20px);
  animation: fadeSlideUp 0.6s ease forwards;
}

/* delay differente per ogni service se vuoi un effetto a cascata */
.service:nth-child(1) {
  animation-delay: 0.2s;
}

.service:nth-child(2) {
  animation-delay: 0.4s;
}

.service:nth-child(3) {
  animation-delay: 0.6s;
}

.service:nth-child(4) {
  animation-delay: 0.8s;
}

.service:nth-child(5) {
  animation-delay: 0.2s;
}

.service:nth-child(6) {
  animation-delay: 0.4s;
}

.service:nth-child(7) {
  animation-delay: 0.6s;
}

.service:nth-child(8) {
  animation-delay: 0.8s;
}

.service:nth-child(9) {
  animation-delay: 0.2s;
}

.service:nth-child(10) {
  animation-delay: 0.4s;
}

.service:nth-child(11) {
  animation-delay: 0.6s;
}

.service:nth-child(12) {
  animation-delay: 0.8s;
}

/* === FOOTER === */
footer {
  margin-top: 28px;
  padding: 24px 0;
  background: var(--accent);
  border-top: 1px solid var(--muted);
}

.small {
  font-size: 15px;
  color: var(--muted);
}

/* === BOTTONE WHATSAPP === */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  z-index: 99;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.whatsapp-icon {
  width: 34px;
  height: 34px;
  filter: brightness(0) invert(1);
}

/* === SOCIAL ICONS DESKTOP === */
.social-icon {
  width: 40px;
  height: 40px;
  margin-left: auto;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* === MOBILE STYLE === */
.menu-toggle {
  display: none;
}

.mobile-social-bar {
  display: none;
}

/* === RESPONSIVE TABLET === */
@media (max-width: 1100px) {

  /* Container un po' più stretto */
  .container {
    padding: 0 24px;
    max-width: 900px;
  }

  /* Header più compatto */
  .header-main {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .brand {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo {
    height: 100px;
    margin: 0 auto;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  /* HERO */
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 160px 20px 100px;
    text-align: left;
  }

  .hero-card.hero-overlay {
    max-width: 100%;
  }

  .hero-card {
    padding: 24px;
  }

  .hero ul {
    font-size: 15px;
  }

  /* SERVIZI - 2 colonne */
  .services {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 40px;
  }

  .service {
    text-align: left;
    border-radius: 20px;
    padding: 20px;
  }

  /* CONTATTI - 2 colonne */
  .contact-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .contact-area .hero-card {
    text-align: left;
  }

  .contact-area form input,
  .contact-area form select,
  .contact-area form textarea {
    width: 100%;
  }

  /* FOOTER */
  footer {
    text-align: center;
  }

  .footer-main {
    flex-direction: column;
    align-items: center;
  }
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 880px) {

  /* Nascondi icone social grandi */
  .social-icon {
    display: none;
  }
  
  .header-main {
    display: none;
  }
   

  /* === HERO === */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* centra orizzontalmente */
    justify-content: center;
    /* centra verticalmente */
    padding: 40px 20px 100px;
    text-align: center;
  }

  .hero-card.hero-overlay {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(5px);
    padding: 30px 20px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-card.hero-overlay::before {
    content: "";
    display: block;
    background: url("images/logo.png") center top/220px no-repeat;
    height: 200px;
    margin-bottom: 15px;
  }

  .hero h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .lead {
    font-size: 15px;
  }

  .cta {
    padding: 10px 14px;
    font-size: 15px;
    margin: 12px auto;
    display: inline-block;
  }

  /* === SERVIZI === */
  .services {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 40px 0;
  }

  .service {
    width: 100%;
    max-width: 500px;
    text-align: center;
    border-radius: 20px;
  }

  /* === CONTATTI === */
  .contact-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 80px;
  }

  .contact-area .hero-card {
    width: 100%;
    max-width: 500px;
    text-align: center;
  }

  .contact-area form input,
  .contact-area form select,
  .contact-area form textarea {
    width: 100%;
    text-align: center;
  }

  .contact-area .cta {
    width: 100%;
    margin-top: 10px;
  }

  /* === SOCIAL BAR MOBILE === */
  .mobile-social-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(200, 200, 200, 0.4);
    padding: 10px 0;
    z-index: 99;
  }

  .mobile-social-bar img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
  }

  .mobile-social-bar img:hover {
    transform: scale(1.1);
  }

  /* === BOTTONE WHATSAPP === */
  .whatsapp-float {
    bottom: 80px;
    right: 18px;
    width: 55px;
    height: 55px;
  }

  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
    /* === SEZIONE NEWS === */
    #news {
      text-align: center;
      margin: 80px auto 40px;
    }
  
    .news-card {
      background: var(--card);
      border-radius: var(--radius);
      padding: 20px 40px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
      max-width: 800px;
      margin: 20px auto;
      font-size: 17px;
      color: var(--accent);
      min-height: 60px;
      transition: all 0.5s ease;
    }
  
    /* animazioni */
    .fade-out {
      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }
  
    .fade-in {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }
}
/* === POPUP NEWSLETTER === */
.newsletter-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 9999;
}

.newsletter-popup.active {
  visibility: visible;
  opacity: 1;
}

.newsletter-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  max-width: 400px;
  width: 90%;
  padding: 35px 30px;
  text-align: center;
  position: relative;
  animation: fadeUp 0.6s ease;
}

.newsletter-content h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.popup-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}

.form-row {
  margin-bottom: 10px;
}

.form-row input[type="text"],
.form-row input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  text-align: left;
}

.privacy-check input {
  margin-right: 8px;
  margin-top: 2px;
}

.privacy-check a {
  color: var(--accent);
  text-decoration: underline;
}

.close-popup {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.close-popup:hover {
  color: var(--accent);
}

@keyframes fadeUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* === PULSANTE NEWSLETTER PREMIUM NEL MENU === */
.nav-newsletter-btn {
  background: linear-gradient(135deg, var(--accent), #bbc4d1);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 22px;
  margin-left: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-newsletter-btn:hover {
  background: linear-gradient(135deg, #b1bdcf, var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.nav-newsletter-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-newsletter-btn::before {
  content: "✉️";
  font-size: 16px;
}

.nav-newsletter-btn:hover {
  background: linear-gradient(135deg, #525457, var(--accent));
  box-shadow: 0 0 12px rgba(178, 201, 182, 0.4), 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Versione mobile */
@media (max-width: 768px) {
  .nav-newsletter-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 10px;
  }
}

/* === PULSANTE NEWSLETTER MOBILE PRIMA DELLE NEWS === */
.mobile-newsletter-btn {
  display: none;
}

@media (max-width: 768px) {
  .mobile-newsletter-btn {
    display: inline-block;
    width: calc(100% - 40px);
    margin: 20px auto 10px;
    padding: 14px 0;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--accent));
    color: white;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    cursor: pointer;
    display: block;
  }

  .mobile-newsletter-btn:hover {
    background: linear-gradient(135deg, var(--accent));
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3), 0 6px 16px rgba(0, 0, 0, 0.15);
  }
}

/* === SEZIONE PRESENTAZIONE / CHI SIAMO === */
.about-section {
  background-color: #f8f9fa;
  padding: 80px 20px;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
}

.about-text {
  flex: 1;
  text-align: center;
}

.about-text h2 {
  color: var(--accent, #0a85d9);
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 15px;
}

.about-text .cta {
  margin-top: 20px;
  display: inline-block;
}

.about-image {
  flex: 1;
  max-width: 450px;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    text-align: left;
  }

  .about-text {
    flex: 1.2;
  }

  .about-image {
    flex: 1;
  }
}