/* =========================================================
   Base / Tipografia
   ========================================================= 
   codice verde:  #009B77
   codice rosso: #007a2a
   */
:root{
  --bg: #ffffff;
  --fg: #000000;
  --primary: #ffffff;         
  --primary-600: #0b1b6a;
  --muted: #6b7280;
  --footer-bg: #007c00;
  --footer-fg: #ffffff;
  --ring: rgba(1,14,48,.35);
}

*,
*::before,
*::after{
  box-sizing: border-box;
}


html, body {
  overflow-x: hidden;
}


:root{
  --header-h: 72px;         /* mobile */
}
@media (min-width: 769px){
  :root{
    --header-h: 64px;   
  }
}

/* Applica spazio in alto sotto l'header fisso */
body{
  padding-top: var(--header-h);
}

:target { scroll-margin-top: calc(var(--header-h) + 20px); }





.normal-text{ font-size: 16px; }
.tw{ color: #fff; }
.tb{ color: #010e30; }
.bold{ font-weight: bold; }

html { scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ max-width: 100%; height: auto; display: block; }

a{
  color: blue;
  text-decoration: none;
}
a:hover{ text-decoration: underline; }

:focus-visible{
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* Titoli */
h1,h2,h3,h4,h5{ color:#000; margin: 0 0 .5rem; }
h1{ font-size: clamp(28px, 4vw, 40px); padding: 20px 0; }
h2{ font-size: clamp(22px, 3.2vw, 28px); }
h3{ font-size: clamp(18px, 2.6vw, 22px); }
h4,h5{ padding-bottom: 15px;}

p{ margin: 0 0 1rem; color:#000; font-weight: 300; }

/* Pulsanti */
.button,
.buttons{
  display: inline-block;
  padding: 12px 22px;
  border-radius: 20px;
  border: 2px solid currentColor;
  transition: transform .06s ease, opacity .2s ease, background .2s ease, color .2s ease;
  will-change: transform;
}
.button{ background: #fff; color:#000; border-color: var(--primary); }
.button:hover{ transform: translateY(-1px); text-decoration: none; }

.buttons{ background: transparent; color:#fff; border-color:#fff; }
.buttons:hover{ transform: translateY(-1px); text-decoration: none; opacity:.92; }

/* Spaziature */
.mt-1{margin-top:50px;}
.mt-2{margin-top:100px;}
.mt-3{margin-top:150px;}

/* =========================================================
   Header / Navigazione
   ========================================================= */
.header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  background: #007c00;  
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.logo img{ height: 48px; width: auto; }

.menu{ display: flex; }
.menu ul{
  display: flex;
  list-style: none;
  gap: 8px;
  padding: 0; margin: 0;
}
.menu li{ margin: 0 7px; }
.menu a{
  color: var(--primary);
  font-size: 18px;
  font-weight: 500;
  padding: 10px 8px;
  border-radius: 10px;
}
.menu a:hover{ background: rgba(1,14,48,.06); text-decoration: none; }

/* Mobile menu */
.menu-toggle{ display: none; cursor: pointer; padding: 10px; z-index: 2100;}

.menu-toggle span{
  display: block;
  background: var(--primary);
  height: 3px; width: 26px;
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
  background: #f73859;
}
.menu-toggle.active span:nth-child(1){ transform: rotate(-45deg) translate(-5px, 6px); }
.menu-toggle.active span:nth-child(2){ opacity: 0; }
.menu-toggle.active span:nth-child(3){ transform: rotate(45deg) translate(-5px, -6px); }


@media (max-width: 768px){
  .menu{
    position: fixed;
    top: 0; right: -100%;
    width: 100%;
    height: 100dvh;
    background: #fff;                 
    transition: right .6s ease;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2000;
  }

  .menu ul{
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  body.menu-open .menu{ right: 0; }

  .menu-toggle{ display: block; }

  .menu-toggle span{
    background: #f73859;              
  }

  .menu a{
    color: #f73859;                  
    font-weight: 700;
    font-size: 22px;                  
    transition: color .2s ease, background .2s ease;
  }

  .menu a:hover{
    background: rgba(221,51,51,.1);   
    text-decoration: none;
  }
}


/* =========================================================
   Hero / Immagine + Bottone
   ========================================================= */
.bg-cover{
  padding-top: 0px ;
  min-height: auto;
  background: none;
}
.bg-cover__media img{
  width: 100%;
  height: auto;
  display: block;
}

.hero-button{
  text-align: center;
  margin: 24px 0 40px;
}
.hero-button .buttons{
  background: #007c00;
  color: #fff;
  border-color: #007c00;
}
.hero-button .buttons:hover{
  transform: translateY(-1px);
  opacity: .9;
}

/* =========================================================
   Contenuti
   ========================================================= */
.container{
  width: 100%;
  max-width: 768px;   
  margin: 0 auto;
  background: #fff;
}
.container__content{
  padding: clamp(16px, 4vw, 32px);
  padding-left: 5vw;   
  padding-right: 5vw;
  text-align: center;  
}
.container__content p{
  margin-left: auto;
  margin-right: auto;
  max-width: 60ch;    
}

.title{
  color: #f73859 ;
  font-size: clamp(24px, 4vw, 32px);
  text-align: center;
  padding-top: 25px;
}
.title::after{
  content:"";
  display:block;
  height: 5px;
  width: 100px;
  margin: 1rem auto 0;
  background: linear-gradient(45deg,
  #ff0000,   /* rosso */
  #ff7f00,   /* arancione */
  #ffff00,   /* giallo */
  #00ff00,   /* verde */
  #0000ff,   /* blu */
  #4b0082,   /* indaco */
  #8b00ff    /* violetto */
);

}

.image-block{ margin: 24px 0; }
.image-block figcaption{
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}


/* =========================================================
   SEZIONE LE NOSTRE BATTAGLIE
   ========================================================= */
.battaglia {
  text-align: left;
  margin-bottom: 2.5rem;
}

.battaglia h2 {
  color: #55b360;              
  font-size: 1.4rem;
  margin: 0 0 .5rem 0;
}

.battaglia p {
  color: #000;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.battaglie-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.battaglie-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.6;
  color: #000;               
}

.battaglie-list .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 4px;             
}

.battaglie-list span {
  flex: 1;
  font-weight: 400;            
  color: #000;                 /* nero */
}

.battaglie-list span strong {
  font-weight: 700;            
}

/* mobile */
@media (max-width: 600px) {
  .battaglia h2 { font-size: 1.2rem; }
  .battaglie-list .icon { width: 20px; height: 20px; }
}

/* Testo giustificato nelle battaglie */
.battaglia p,
.battaglie-list span{
  display: block;              
  text-align: justify;
  text-justify: inter-word;    
  hyphens: auto;               
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}


.battaglia p,
.battaglie-list span{
  text-align-last: left;
}


@media (max-width: 600px){
  .battaglia p,
  .battaglie-list span{
    text-align-last: left;
  }
}




/* =========================================================
   SUCCESS BOX - Messaggio "inviato"
   ========================================================= */
.success-box {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.success-content {
  position: relative;
  background: #fff;
  color: #010e30;
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 6px 30px rgba(0,0,0,0.3);
  animation: fadeIn 0.4s ease;
}

.success-content h2 {
  color: #007c00;
  margin-bottom: 10px;
}

.success-content p {
  font-size: 16px;
  color: #333;
  margin: 0;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  color: #007c00;
  cursor: pointer;
  font-weight: bold;
}

.close-btn:hover {
  color: #dd3333;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}






/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: 30px 0;
  background: #007c00; 
  color: #fff;
}
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* Griglia del footer come nell'altro file */
.col{ float:left; width:100%; }
.grid{
  width:100%;
  display:flex;
  max-width:1350px;
  padding: 0 30px;
  margin: 0 auto;
  align-content: baseline;
  align-items: baseline;
  flex-wrap: nowrap;
  flex-direction: row;
  justify-content: space-around;
}
@media (max-width: 768px){
  .grid{ flex-wrap: wrap; }
  .col{ width: 100%; }
}
@media (min-width: 768px) and (max-width: 950px){
  .grid{ flex-wrap: wrap; }
  .col{ width:100%; }
}

/* Barra info finale identica all’altro file */
.footer-info{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 30px 0;
}
.terms { font-size: .75rem; line-height: 1rem; color: #fff; }
.developer { font-size: .75rem; line-height: 1rem; color: #fff; opacity: 1; }
@media (max-width: 600px){
  .footer-info{ flex-direction: column; text-align: center; gap: 8px; }
}


/* =========================================================
   CONTACT FORM
   ========================================================= */
#mail-form {
  width: 100%;
  max-width: 600px;
  margin: 60px auto;
  padding: 40px 30px;
  background: #ffffff;
  border: 2px solid #e6e6e6;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Etichette */
#mail-form label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

#mail-form label span {
  font-weight: 600;
  font-size: 15px;
  color: #55b360;
}

/* Campi di input e textarea */
#mail-form input[type="text"],
#mail-form input[type="email"],
#mail-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #ccc;
  background: #f9f9f9;
  font-family: inherit;
  font-size: 15px;
  color: #000;
  transition: all 0.25s ease;
}

#mail-form input:focus,
#mail-form textarea:focus {
  border-color: #55b360;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(85, 179, 96, 0.15);
}

/* Textarea */
#mail-form textarea {
  min-height: 160px;
  resize: vertical;
}

/* Placeholder più delicato */
#mail-form ::placeholder {
  color: #999;
  opacity: 0.8;
}

/* Bottone INVIA */
#mail-form input[type="submit"] {
  background: linear-gradient(45deg, #55b360, #dd3333);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 25px;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

#mail-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   Responsive (mobile)
   - padding in vw per NON sforare il viewport
   - font-size 16px per evitare lo zoom iOS
   ========================================================= */
@media (max-width: 600px) {
  #mail-form {
    margin: 32px auto;
    padding: 24px 5vw;      /* usare vw evita overflow */
    box-sizing: border-box; /* include il padding nella larghezza */
    border-radius: 16px;
    gap: 1rem;
  }

  #mail-form label span { font-size: 14px; }

  #mail-form input[type="text"],
  #mail-form input[type="email"],
  #mail-form textarea {
    font-size: 16px;        /* importantissimo su iOS */
  }

  #mail-form input[type="submit"] {
    width: 100%;
    display: block;
    padding: 16px 18px;
    border-radius: 28px;
  }
}



/* =========================================================
   SOCIAL ICONS FOOTER
   ========================================================= */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);
  transform: translateY(-3px);
}

.social-icons svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  transition: fill 0.3s ease;
}







/* Offset per l'header fisso quando si clicca sugli anchor link */
:target {
  scroll-margin-top: 90px; /* regola questo valore in base all'altezza effettiva dell’header */
}





