/* Theme Name: Mio Tema Personalizzato
Description: Un tema WordPress con header responsive e menu ad hamburger.
Version: 1.0
Author: Lorenzo Moretti Web Design
*/

body {
  background-color: #FAFAFA;
  color: #333333;
  background-image: none;
  font-size: 1.4vw;
  margin: 0;
  font-family: "Lato", sans-serif;
  overflow-x: hidden;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    color: #92b1ea;
    text-decoration: none;
}

.site-title a {
    color: #92b1ea;
    text-decoration: none;
}

@media screen and (max-width: 768px) {
  body {
    background-color: #ffffff;
    color: #000000;
    font-size: 2.6vh;
    margin: 0;
  }

  a {
  white-space: normal;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  }
}

/* MENU */

.navbar {
  align-items: center;
  background: #f7f7f7;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  display: flex;
  flex-direction: row;
  font-family: sans-serif;
  font-size: 1.1vw;
  padding: 1.2%;
  z-index: 2;
  box-sizing: border-box;
  position: fixed;
  width: 100%;
  height: 13vh;
  font-family: "EB+Garamond", serif;
}

.push-left {
  margin-left: auto;
}

/* Menu */
.hamburger {
  background: transparent;
  border: none;
  cursor: pointer;
  display: none;
  height: 27px;
  position: relative;
  width: 27px;
  z-index: 1000;
}

.hamburger-line {
  background: #000000;
  height: 3px;
  position: absolute;
  left: 0;
  transition: all .2s ease-out;
  width: 100%;
}

.hamburger-line-top {
  top: 3px;
}

.menu-active .hamburger-line-top {
  top: 50%;
  transform: rotate(45deg) translatey(-50%);
  background: #ffffff; /* Cambia il colore in bianco quando il menu è attivo */
}

.hamburger-line-middle {
  top: 50%;
  transform: translatey(-50%);
}

.menu-active .hamburger-line-middle {
  left: 50%;
  opacity: 0;
  width: 0;
  background: #ffffff; /* Cambia il colore in bianco quando il menu è attivo */
}

.hamburger-line-bottom {
  bottom: 3px;
}

.menu-active .hamburger-line-bottom {
  bottom: 50%;
  transform: rotate(-45deg) translatey(50%);
  background: #ffffff; /* Cambia il colore in bianco quando il menu è attivo */
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all .25s ease-in;
}

.nav-menu li a {
  color: rgba(51, 51, 51, 0.8);
  display: inline-block;
  line-height: 30px;
  margin: 0px 10px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-menu li a:hover {
  color: #6D9DD4;
}

/* Nascondo i sottomenù */
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  background: #f7f7f7;
  margin: 0;
  padding: 0.521vw 0;
  list-style: none;
  min-width: 10.417vw;
  z-index: 99;
}

/* Ogni voce del sottomenù */
.nav-menu .sub-menu li a {
  display: block;
  padding: 0.521vw 1.042vw;
  margin: 0;
  color: #333;
  font-size: 1rem;
  text-transform: none;
}

.nav-menu .sub-menu li a:hover {
  background: #f2f2f2;
  color: #6D9DD4;
}

/* Mostra sottomenù al passaggio */
.nav-menu li:hover > .sub-menu {
  display: block;
}

.submenu-toggle {
  display: none;
}



@media screen and (max-width: 768px) {
  .hamburger {
    display: inline-block;
  }

  .navbar {
    padding: 1%;
    z-index: 2;
    width: 100%;
    height: 8vh;
  }

  .nav-menu {
    background: rgba(51, 51, 51, 0.9);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;     /* allinea a sinistra */
    text-align: left;            /* testo a sinistra */
    opacity: 0;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translatey(-100%);
    text-align: center;
    z-index: 2;
    width: 100%;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Aggiunge transizioni per un effetto più fluido */
  }

  .menu-active .nav-menu {
    transform: translatey(0%);
    opacity: 1;
  }

  .nav-menu li a {
    font-size: 16px;
    margin: 20px;
    margin-bottom: 1px;
    color: #ffffff;
  }

  .nav-menu .sub-menu {
    position: static;
    display: block; /* default: nascosto */
    background: transparent;
    box-shadow: none;
    padding-left: 20px;
  }

  .nav-menu .sub-menu li a {
    color: #ffffff;
    font-size: 13px;
    display: flex;
    flex-direction: column; /* le voci una sotto l'altra */
    justify-content: flex-start; /* allineamento verticale */
    align-items: flex-start;     /* allineamento orizzontale */
    text-align: left; /* assicura che il testo sia a sinistra */
  }

  .nav-menu .sub-menu li a:hover {
    background: transparent;
    color: #6D9DD4;
  }

  /* sottomenù aperto */
  .nav-menu .sub-menu.open {
    display: block;
  }
}
/* FINE MENU */

/* SFONDO TITOLO PAGINE */
.page-header {
  background-size: cover;
  background-position: center 20%;
  padding: 0; /* Imposta a 0 per evitare sovrapposizioni */
  color: #fff; /* Colore del testo */
  height: 100vh;
  display: flex;
  flex-direction:  column;
  justify-content: flex-start; /* Allinea contenuto */
  align-items: flex-start; /* Allinea orizzontalmente al centro */
  position: relative;
  z-index: 1;
  margin-bottom: 5%;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.page-header .hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 2s ease-in-out;
    z-index: 1;
}
.page-header h1,
.page-header .header-text { position: relative; z-index: 2; }


.site-branding img {
  width: 13.90922401171303vw;
  height: auto;
  margin-left: -4%;
}

.page-header h1 {
  font-size: 0px;
}

.header-text  {
  font-family: "Merriweather", serif;
  margin-left: 5%;
  white-space: pre-line;
  margin-top: -25%;
}


.header-text h2  {
  font-size: 3.98vw;
  font-weight: 600;
  color: #ffffff;
}

h2.titolo-home-1 {
    text-decoration: none;
    font-family: "Merriweather", serif;
    font-weight: 200;
    font-size: 4vw;
    text-align: center;
    margin-bottom: 5%;
}

h2.titolo-home-1 a {
  color: rgba(51, 51, 51, 0.6);
}

/* Wrapper dei bottoni */
.cta-wrapper {
  display: flex;
  flex-direction: column;   /* disposizione verticale */
  gap: 3.89vh;                /* spazio tra i bottoni */     /* spazio rispetto al titolo */
  align-items: flex-start;  /* allinea a sinistra */
  margin-top: -7%;
}

.cta-wrapper a {
  font-family: "Lato", sans-serif;
  text-transform: uppercase;
  font-weight: 450;
}

/* Stile base dei bottoni */
.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 5px;        /* quadrati */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.17vw;
  transition: all 0.3s ease;
  background-color: #C11614; /* colore principale */
  color: #fff;
  width: 11.72vw;             /* stessa larghezza per entrambi */
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Hover effetto */
.cta-btn:hover {
  background-color: #E34745;
  transform: translateY(-3px);
}



.page-title-container {
    margin: 0 auto;
    max-width: 100%;
}

.page-title {
    background-size: cover;
    background-position: center 41%;
    height: 44vh;
    color: #fff; /* Modifica il colore del testo secondo le tue esigenze */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Allinea verticalmente al centro */
    align-items: center; /* Allinea orizzontalmente al centro */
    position: relative;
    z-index: 1;
    margin-bottom: 8%;
}

.page-title h1 {
    margin: 0;
    font-size: 3.33vw;
    text-align: center;
    padding-top: 4%;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 400;
    font-family: "Merriweather", serif;
}

.page-title h2 {
  margin: 0;
  font-size: 3.33vw;
  text-align: center;
  padding-top: 4%;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 400;
  font-family: "Merriweather", serif;
}

/* FRECCIA HEADER */
@-moz-keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -moz-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -moz-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -moz-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}
@-webkit-keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  40% {
    -moz-transform: translateY(-30px);
    -ms-transform: translateY(-30px);
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
  }
  60% {
    -moz-transform: translateY(-15px);
    -ms-transform: translateY(-15px);
    -webkit-transform: translateY(-15px);
    transform: translateY(-15px);
  }
}
i {
  color: #fff;
}
.arrow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7vw;
  height: 50px; /* regoli l'altezza per spostarla in verticale */
  z-index: 2;
}

.bounce {
  -moz-animation: bounce 2s infinite;
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
}
/* FINE FRECCIA HEADER */

@media (max-width: 768px) {
  .page-header {
    background-size: cover;
    background-position: center center 0%;
    padding: 0; /* Imposta a 0 per evitare sovrapposizioni */
    color: #fff; /* Colore del testo */
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Allinea verticalmente al centro */
    align-items: center; /* Allinea orizzontalmente al centro */
    position: relative;
    z-index: 1;
    margin-bottom: 5%;
    width: 100%;
    max-width: 100%;
  }

  .header-text  {
    text-align: center;
    margin-top: -120%;
    margin-left: 0 auto;
    margin-right:  0 auto;
    display: block;
  }

  .header-text h2 {
    font-size: 5.7vh;
    font-weight: 600;
  }

  h2.titolo-home-1 {
      font-family: "Merriweather", serif;
      font-size: 4.4vh;
      margin-top: 2%;
      margin-bottom: 10%;
  }

  .site-branding img {
    width: 30vw;
    height: auto;
    margin-right: 1%;
  }

  .header-text h2  {
    font-weight: 100;
  }

  .arrow {
    position: absolute;
    bottom: 0;
    left: 51%;
    transform: translateX(-50%);
    font-size: 3vw;
    height: 100px; /* regoli l'altezza per spostarla in verticale */
  }

  /* Wrapper dei bottoni */
  .cta-wrapper {
    display: flex;
    flex-direction: column;   /* disposizione verticale */
    gap: 35px;                /* spazio tra i bottoni */     /* spazio rispetto al titolo */
    align-items: center;  /* allinea a sinistra */
    margin-top: 5%;
    margin-left: 0 auto;
    margin-right: 0 auto;
  }

  .cta-wrapper a {
    font-family: "Lato", sans-serif;
    text-transform: uppercase;
    font-weight: 450;
  }

  /* Stile base dei bottoni */
  .cta-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;        /* quadrati */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #C11614; /* colore principale */
    color: #fff;
    width: 160px;             /* stessa larghezza per entrambi */
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }

  .page-title {
    height: 35vh;
    margin-bottom: 6vh;
  }

  .page-title h1 {
      font-size: 6vh;
      margin-bottom: 0;
      margin-top: 1%;
      font-weight: 600;
  }

  .page-title h2 {
    font-size: 6vh;
    margin-bottom: 0;
    margin-top: 1%;
    font-weight: 600;
  }
}
/* FINE SFONDO TITOLO PAGINE */

.novita-container {
  flex-direction:  column;
  justify-content: flex-start; /* Allinea contenuto */
  align-items: center; /* Allinea orizzontalmente al centro */
  width: 88%;
  max-width: 88%;
  display: block;
  margin: auto;
  margin-bottom: 4%;
  padding: 2%;
}

.titolo-novità {
  font-size: 2.4vw;
  text-transform: uppercase;
  font-family: "Merriweather", serif;
  font-weight: 300;
  color: rgba(51, 51, 51, 0.4);
  margin-bottom: 3%;
}

.button-group {
  display: flex;
  flex-direction: column; /* i pulsanti in colonna */
  gap: 1.11vw; /* spazio verticale tra i pulsanti */
  align-items: stretch; /* i pulsanti occupano tutta la larghezza disponibile */
  margin-bottom: 5%;
}

.btn {
  padding: 0.8em 1.5em;
  font-size: 1.11vw;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 13.89vw;
  box-sizing: border-box;
}

.btn-secondary {
  background-color: #89B0DD;
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: #6D9DD4;
  color: white;
}


.linea {
  margin-top: 4%;
}

@media (max-width: 768px) {

  .novita-container {
    flex-direction:  column;
    justify-content: center; /* Allinea contenuto */
    align-items: center; /* Allinea orizzontalmente al centro */
    width: 93%;
    max-width: 93%;
    display: block;
    margin: auto;
    margin-top: 8%;
    padding: 0%;
  }

  .titolo-novità {
    font-size: 3.3vh;
    margin-bottom: 7%;
  }

  .button-group {
    display: flex;
    flex-direction: column; /* i pulsanti in colonna */
    gap: 1rem; /* spazio verticale tra i pulsanti */
    align-items: stretch; /* i pulsanti occupano tutta la larghezza disponibile */
    margin-bottom: 5%;
  }

  .btn {
    padding: 0.8em 1.5em;
    font-size: 1rem;
    width: 200px;
  }

  .linea {
    margin-top: 12%;
    margin-bottom: 12%;
  }

}

/* STILE PAG ARTICOLI */
/* Contenitore della lista degli articoli */
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Elemento della lista degli articoli */
.post-item {
    display: flex;
    align-items: flex-start;
    padding-bottom: 8%;
    margin-left: 6%;
    margin-right: 6%;
}

/* Contenitore del contenuto dell'articolo */
.post-content {
    display: flex;
    align-items: flex-start;
    max-width: 100%;
    width: 100%;
    background-color: #F0F0F0;
    padding: 0% 1.8% 3% 1.8%;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.post-content h2 {
  text-transform: uppercase;
  margin-bottom: 1.1%;
}

.post-content h2 a:is(:link, :visited, :hover, :active) {
    color: #6D9DD4;
    text-decoration: none;
    font-family: "Merriweather", serif;
    font-weight: 300;
    font-size: 2.8vw;
}

.post-content a:is(:link, :visited, :hover, :active) {
    color: #3498DB;
    text-decoration: none;
    font-family: "Lato", sans-serif;
    font-size: 1.4vw;
}

html :where(img[class*=wp-image-]) {
    height: auto;
    max-width: 60%;
}

/* Contenitore dell'immagine dell'articolo */
.post-thumbnail {
    flex: 0 ; /* Larghezza fissa per l'immagine */
    margin-right: 0;
}

/* Immagine dell'articolo */
.post-thumbnail img {
    width: 100%; /* L'immagine riempie il contenitore */
    height: auto;
}

/* Contenitore del testo dell'articolo */
.post-text {
  display: flex;
  flex-direction: column; /* forza tutto in colonna */
  align-items: flex-start; /* allinea a sinistra */
  flex: 1;
  font-family: "EB+Garamond", serif;
  font-size: 1.6vw;
  font-weight: 400;
}

/* Intestazione dell'articolo */
.entry-header {
    margin: 0;
}

/* Sommario dell'articolo */
.entry-summary {
    margin-top: 10px;
}

.post-extra {
    display: flex;
    flex-direction: column; /* elementi in colonna */
    align-items: flex-start; /* allinea a sinistra */
    gap: 10px; /* spazio tra immagini/link */
    margin-top: 1.5%;
}

.post-extra img,
.post-extra a {
    display: block; /* blocchi separati */
}

.post-extra img {
    margin-top: 1%;
    margin-bottom: 2.5%;
}

/* Stile per dispositivi mobili */
@media (max-width: 768px) {
    /* Elemento della lista degli articoli */

    .post-item {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        margin-right: 0;
    }

    /* Contenitore del contenuto dell'articolo */
    .post-content {
        flex-direction: column;
        align-items: center;
        width: 90%;
        max-width: 90%;
    }

    .post-content h2 {
      margin-bottom: 1.1%;
      line-height: 1.2;
    }

    .post-content h2 a:is(:link, :visited, :hover, :active) {
        font-weight: 300;
        font-size: 3vh;
    }

    .post-content a:is(:link, :visited, :hover, :active) {
        font-size: 2.2vh;
    }

    /* Contenitore del testo dell'articolo */
    .post-text {
        flex: 0 0 auto; /* Rimuove il flex-grow */
        width: 100%;
        width: 85%;
        font-size: 2.3vh;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Titolo dell'articolo */
    .entry-title {
        font-size: 1.25rem;
        text-align: center;
    }

    html :where(img[class*=wp-image-]) {
        height: auto;
        max-width: 100%;
        width: 100%,
    }

    .post-extra a {
  display: inline-block; /* più naturale per i link in testo */
  max-width: 100%;       /* evita che esca dal contenitore */
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word; /* più compatibile di overflow-wrap su WP */
}
}
/* FINE STILE PAG ARTICOLI */

/* Contenitore articolo centrato nella pagina */
.mio-articolo {
    margin: -14% auto 12% auto; /* top, left/right auto, bottom */
    max-width: 88%;
    width: 88%;
    background-color: #F0F0F0;
    padding: 2.5% 1.8% 3% 1.8%;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    display: flex;
    flex-direction: column;
    align-items: center; /* centra footer se presente */
    font-family: "EB+Garamond", serif;
    font-size: 1.6vw;
    font-weight: 400;
}

h1.wp-block-heading {
  font-size: 2vw;
}

/* Titolo e testo speciale */
.mio-articolo .visually-hidden,
.mio-articolo .entry-header h1,
.mio-articolo .entry-header h2 {
    width: 90%;
    margin: 0 auto;
    padding-bottom: 1.3%;
    text-align: left;
    font-family: "Merriweather", serif;
    font-weight: 300;
    text-transform: uppercase;
    color: #333333;
    font-size: 2.8vw;
}

/* Titolo e testo speciale */
.mio-articolo h2 {
    color: #6D9DD4;
}

/* Contenuto articolo: parte da sinistra, centrato nel contenitore */
.mio-articolo .entry-content {
    width: 90%;           /* larghezza interna rispetto al contenitore */
    text-align: justify;   /* testo giustificato */
    margin: 0 auto;       /* centra il contenuto dentro il contenitore */
}

.mio-articolo .entry-content a:is(:link, :visited, :hover, :active){
  color: #3498DB;
  text-decoration: none;
  font-family: "Lato", sans-serif;
  font-size: 1.4vw;
}

/* Clearfix per contenitori con immagini flottate */
.mio-articolo::after {
  content: "";
  display: table;
  clear: both;
}

/* Immagini negli articoli */
.mio-articolo .entry-content img {
  display: block;
  max-width: 60%;
  height: auto;
  margin: 40px auto;    /* spazio sopra e sotto */
  box-sizing: border-box;
  float: left;
}


/* Footer dell’articolo */
.mio-articolo .entry-footer {
  background-color: #ffffff;
  width: 100%;
  padding: 20px 0;
  box-sizing: border-box;
}


@media (max-width: 768px) {
  .mio-articolo {
      margin: -55% auto 12% auto; /* top, left/right auto, bottom */
      max-width: 88%;
      width: 88%;
      padding: 2.5% 1.8% 3% 1.8%;
      font-size: 2.3vh;
      font-weight: 400;
  }

  h1.wp-block-heading {
    font-size: 2.3vh;
  }

  .mio-articolo .entry-content a:is(:link, :visited, :hover, :active){
    font-size: 2.2vh;
  }

  /* Titolo e testo speciale */
  .mio-articolo .visually-hidden,
  .mio-articolo .entry-header h1,
  .mio-articolo .entry-header h2 {
      width: 90%;
      margin: 0 auto;
      padding-bottom: 3%;
      color: #6D9DD4;
      font-size: 3vh;
  }

  .mio-articolo .entry-title {
      font-size: 2rem;
      margin-top: 5%;
      margin-bottom: 5%;
      text-decoration: none;
  }

  .mio-articolo .entry-content {
      /* Stili specifici per il contenuto dell'articolo */
      line-height: 1.6;
      margin: 0 4%;
      text-align: left;
  }

  .wp-block-post-featured-image img {
    display: block; /* Rende l'immagine un elemento a blocchi */
    margin-left: auto;
    margin-right: auto;
    width: auto;
    height: auto;
    margin-top: 5%;
  }

  .mio-articolo .entry-content img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 20px auto;    /* spazio sopra e sotto */
    box-sizing: border-box;
    float: none;
  }

  .mio-articolo h2 {
      color: #6D9DD4;
      font-size: 2.5vh;
  }

}
/* FINE STILE ARTICOLO */

/* CONTENUTI IN CSS SITO */
.wp-block-group {
    box-sizing: border-box;
    margin: 5% 5% 12% 5%;
}

.wp-block-group p {
  margin-bottom: 6%;
  line-height: 1.5;
}

.wp-block-paragraph br::after {
    content: "";         /* necessario */
    display: block;      /* fa comportare l’after come blocco */
    margin-bottom: 8px;  /* spazio desiderato */
}

.wp-block-group img {
  width: 30%;
  max-width: 30%;
  margin: 0 auto;
  display: block;
}

.wp-block-group a:is(:link, :visited, :hover, :active) {
  color: #3498DB;
  text-decoration: none;
}

.wp-block-group h1, h2, h3, h4, h5, h6 {
  color: rgba(51, 51, 51, 0.6);
  text-transform: uppercase;
  font-weight: 300;
  font-size: 2.5vw;
}

.wp-block-columns {
    box-sizing: border-box;
    margin-top: -5%;
    margin-left: 1%;
}

.wp-block-columns p {
  margin-bottom: 3%;
  }

  .wp-block-columns h2 {
    margin-bottom: 1.5%;
    }

    .linea3 {
      width: 90%;
      margin-top: -10%;
      margin-bottom: 7%;
    }

    .linea4 {
      width: 90%;
      margin-bottom: 7%;
    }
/* FINE CONTENUTI IN CSS SITO */

@media (max-width: 768px) {
  .wp-block-group {
      width: 94%;
      max-width: 94%;
      margin: 0 auto;
  }

  .wp-block-group p {
    margin-bottom: 10%;
  }

  .wp-block-group img {
    width: 90%;
    max-width: 90%;
  }

  .wp-block-group h1, h2, h3, h4, h5, h6 {
    font-size: 4.8vh;
    font-weight: 300;
  }

  .wp-block-group a {
  word-wrap: break-word;       /* compatibilità vecchia */
  overflow-wrap: anywhere;     /* moderno */
  word-break: break-word;      /* fallback */
}

.wp-block-columns {
    box-sizing: border-box;
    margin-top: 5%;
    margin-left: 0 auto;
}

}

/* CONTATTI */
/* Stile generale per il modulo */
.wpcf7 {
    max-width: 80%; /* Imposta una larghezza massima */
    width: 80%;
    margin: 0 auto; /* Centra il modulo */
    padding: 2%;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-color: 2%;
    background-color: #F0F0F0;
}

.linea2 {
  margin-top: 4%;
  margin-bottom: 7%;
}

/* Stile per i campi di input */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%; /* Fa sì che i campi riempiano tutta la larghezza */
    padding: 10px 0 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Stile per il pulsante di invio */
.wpcf7 input[type="submit"] {
    background-color: #92b1ea;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Stile per il pulsante di invio al passaggio del mouse */
.wpcf7 input[type="submit"]:hover {
    background-color: #6495ed;
}

/* Stile per il messaggio di successo */
.wpcf7-mail-sent-ok {
    color: green;
    font-weight: bold;
    margin-top: 15px;
}

/* Stile per il messaggio di errore */
.wpcf7-mail-sent-ng {
    color: red;
    font-weight: bold;
    margin-top: 15px;
}

/* Media query per dispositivi mobili */
@media (max-width: 768px) {
/* Stile generale per il modulo */
.wpcf7 {
    max-width: 98%; /* Limite su desktop */
    width: 98%;       /* Più fluido su mobile */
    margin: 0 auto;
    padding: 2%;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-color: #F0F0F0;
    box-sizing: border-box; /* Evita overflow con padding */
}

.linea2 {
  margin-bottom: 12%;
}


/* Stile per i campi di input */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 15px;
    box-sizing: border-box; /* Importante */
}

/* Stile per il pulsante di invio */
.wpcf7 input[type="submit"] {
    background-color: #92b1ea;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

}
/* Media query per adattamento mobile */

/* FINE CONTATTI */

/* FOOTER */
footer {
    background: transparent;
    color: #333333;
    padding: 20px;
    text-align: center;
    margin-top: 5%;
}

.footer-logo img {
    max-width: 290px;
    margin-bottom: 10px;
}

footer p {
    font-size: 1vw;
    font-weight: 600;
}

.cookie-link {
 font-size: 1vw;
 display: inline-block;
 color: #333333;
 font-weight: 600;
}

.cookie-link a {
 text-decoration: none;
}

 a {
 text-decoration: none;
}

#cookie-link2 {
font-size: 1vw;
display: inline-block;
color: #333333;
text-decoration: none;
font-weight: 600;
}
/* FINE FOOTER */

.footer-site-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-social {
    margin-top: 20px;
}

.footer-social .social-icon {
    margin: 0 10px;
    color: #fff; /* Colore delle icone social */
    font-size: 2.2rem; /* Dimensione delle icone */
    transition: color 0.3s;
}

.footer-social .social-icon:hover {
    color: #000; /* Colore delle icone social al passaggio del mouse */
}
/* FINE FOOTER */
@media (max-width: 768px) {
  .footer-logo img {
      max-width: 50vw;
      margin-bottom: 10px;
  }

  footer p {
      font-size: 3.2vw;
      font-weight: 600;
  }

  .cookie-link {
   font-size: 3.2vw;
   display: inline-block;
   color: #333333;
   font-weight: 600;
  }

  .cookie-link a {
   text-decoration: none;
  }

   a {
   text-decoration: none;
  }

  #cookie-link2 {
  font-size: 3.2vw;
  display: inline-block;
  color: #333333;
  text-decoration: none;
  font-weight: 600;
  }
  /* FINE FOOTER */
}


.phone-icon {
  position: fixed;       /* se vuoi fisso in basso a destra */
  bottom: 15px;
  right: 15px;
  width: 50px;
  height: 50px;
  background-color: #89B0DD; /* colore cerchio */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2vw;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
  z-index: 9999;
}

.fas fa-phone, a {
  color: #ffffff;
}

.phone-icon:hover {
  background-color: #6D9DD4; /* versione più scura al passaggio */
}

.firma {
  margin-top: 1.5%;
}

.firma a {
  color: #333333;
  font-size: 0.9vw;
}

@media (max-width: 768px) {
  .search-desktop { display: none; }
}
@media (min-width: 769px) {
  .search-mobile { display: none; }
}


@media (max-width: 768px) {

  .phone-icon {
    position: fixed;       /* se vuoi fisso in basso a destra */
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background-color: #89B0DD; /* colore cerchio */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8vw;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
    z-index: 9999;
  }

  .firma {
    margin-top: 5.8%;
  }

  .firma a {
    color: #333333;
    font-size: 2.9vw;
  }

}
