/* ! Font-family from Google, Sezione utilizzata per importare eventuali font da google */
/* ---------------------------------------------------- */

/* ------------------------------------------------------------------- */
/* ! CSS Personalizzato */
/* ------------------------------------------------------------------- */

/* -------------------------------------------------------------------------------- */
/* ! Button CSS i due " -- " servono per indicare che è un modificatore. */
/* -------------------------------------------------------------------------------- */

.gb-button:hover{ transition: 0.3s; transform: scale(1.05); cursor: pointer; }


.button-style a, .button-style span{background-color: var(--button-bg); text-transform: uppercase; color: var(--button-color);padding: 20px; border-radius: 10px;}
.button-style a:hover, .button-style span:hover {background-color: var(--button-bg-hover); transition: 0.3s; transform: scale(1.05); cursor: pointer;}
.button--invert a, .button--invert span{background-color: var(--button-color); color: var(--button-bg) !important;}
.button--invert a:hover, .button--invert span:hover{background-color: var(--button-bg); color: var(--button-color) !important;}

.button-style a:hover,
.prenota-button a:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.prenota-button a {
  color: var(--button-bg) !important;
  background-color: var(--button-color);
  padding: 10px 20px !important;
  border-radius: 5px !important;
  display: inline-flex !important;
  align-items: center;
  font-size: 14px !important;
  box-shadow: 0px 4px 5px 0px black;
  font-weight: bold !important;
  position: relative; /* Serve per posizionare l'icona relativa al bottone */
}

.prenota-button a::after {
  content: "";
  display: inline-block;
  background-image: url('http://fonti.acapulc0.it/wp-content/uploads/2025/05/check-mark.png');
  background-size: contain;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  filter: invert(1);
}
.prenota-button a:hover::after {
  filter: invert(44%) sepia(10%) saturate(3244%) hue-rotate(70deg) brightness(100%) contrast(74%);
}
.prenota-button a:hover {
  color: var(--button-color) !important;
  background-color: var(--button-bg) !important;
  transition: 0.3s;
  transform: scale(1.05);
  cursor: pointer;
}

/* ------------------------------- */
/* Header Desktop + Mobile */
/* ------------------------------- */
.header-container {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
  box-shadow: 0px 5px 5px 0px black;
}

.logged-in .header-container {
  top: 30px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 80px;
}

.header li a {
  font-weight: bold;
  display: block;
  font-size: 14px;
  color: var(--button-text);
  padding: 10px 15px;
  text-transform: uppercase;
}

.header li a:hover {
  color: var(--header-bg);
  background-color: white;
  border-radius: 5px;
  transition: 0.3s;
}

.header__menu {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.header__menu li {
  display: inline-block;
  padding: 0 1.9rem 0 0px;
}

#menu-item-224 {
  padding: 0;
}

.header__logo img {
  height: 100%;
  margin-left: -15px;
  width: 150px;
}

.header__hamburger {
  display: none;
}

@media (min-width: 1024px) and (max-width: 1440px) {
  .header__menu li {
    padding: 0 1rem 0 0;
  }
}

/* ---------- HEADER MOBILE ---------- */
@media (max-width: 768px) {
  .header__hamburger {
    width: 50px;
    height: 27px;
    display: block;
    position: relative;
    z-index: 100;
    margin-right: 20px;
    background: none;
    border: none;
    box-sizing: content-box;
    border-radius: 50%;
    text-indent: 100%;
    color: transparent;
    white-space: nowrap;
    cursor: pointer;
    overflow: hidden;
    outline: 0;
  }

  .hamburger-menu-button-open {
    top: 50%;
    margin-top: -1px;
    left: 50%;
    margin-left: -12px;
  }

  .hamburger-menu-button-open,
  .hamburger-menu-button-open::before,
  .hamburger-menu-button-open::after {
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 4px;
    transition: all 0.3s;
  }

  .hamburger-menu-button-open::before,
  .hamburger-menu-button-open::after {
    left: 0;
    content: "";
  }

  .hamburger-menu-button-open::before {
    top: 6px;
  }

  .hamburger-menu-button-open::after {
    bottom: 6px;
  }

  .menu-open .hamburger-menu-button-close {
    background: transparent;
    transform: rotate(180deg);
  }

  .menu-open .hamburger-menu-button-close::before {
    transform: translateY(-6px) rotate(45deg);
  }

  .menu-open .hamburger-menu-button-close::after {
    transform: translateY(6px) rotate(-45deg);
  }

  .header .header__logo img {
    height: 60% !important;
  }

  .header {
    align-items: center !important;
  }

  .header li a {
    width: 100%;
    text-align: left;
  }

  .header li a:hover {
    border-radius: 0px;
  }

  .header__menu {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 46px;
    left: 0;
    width: 100%;
    background: #254360;
    margin-top: 30px;
    padding: 0;
    z-index: 999;
    transition: max-height 0.5s ease-in-out, padding 0.3s ease;
  }

  .menu-open .header__menu {
    max-height: 100vh;
    height: 100vh;
    padding: 20px;
  }

  .header__menu li {
    display: block;
    border-bottom: 1px solid white;
    padding: 20px;
    width: 100%;
  }

  .prenota-button {
    display: none !important;
  }
}

/* ---------- DROPDOWN DESKTOP ---------- */
@media (min-width: 769px) {
  .header__menu li {
    position: relative;
  }

  .header__menu li ul.sub-menu {
    position: absolute;
    top: 100%;
    background-color: var(--header-bg);
    width: 250px;
    padding: 0;
    margin: 0;
    list-style: none;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    text-align: left;
  }

  .header__menu li:hover > ul.sub-menu {
    display: block;
  }

  .header__menu li ul.sub-menu li {
    display: block;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header__menu li ul.sub-menu li a {
    padding: 20px 15px;
    font-size: 14px;
    color: var(--button-text);
    background-color: var(--header-bg);
  }

  .header__menu li ul.sub-menu li a:hover {
    background-color: white;
    color: var(--header-bg);
    border-radius: 0;
  }

  .header__menu li.servizi-dropdown > a::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 8px;
    font-size: 10px;
  }
}

/* ---------- DROPDOWN MOBILE ---------- */
@media (max-width: 768px) {
  .header__menu li ul.sub-menu {
    display: none;
    padding-left: 15px;
    background: #254360;
  }

  .header__menu li.menu-item-has-children > a::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    float: right;
    margin-left: 10px;
    transition: transform 0.3s ease;
  }

  .header__menu li.open > a::after {
    transform: rotate(180deg);
  }
}

/* -------------------------------------------------------------------------------- */
/* ! Sezione 0 - Slide   */
/* -------------------------------------------------------------------------------- */
.slide-text h2, .slide-text span{position: relative; z-index: 1;}

/* ------ Form all'interno della slide -------*/


/* -------------------------------------------------------------------------------- */
/* ! Sezione 1 - Card sotto lo slide home */
/* -------------------------------------------------------------------------------- */
.card-banner{ box-shadow: 0px 7px 10px 2px darkgray; border-radius: 10px; margin: 0 20px; }
.card-banner .card-banner-column{padding: 20px 30px; min-height: 180px; }

/* -------------------------------------------------------------------------------- */
/* ! Sezione 2 - banner blu */
/* -------------------------------------------------------------------------------- */
.padd-pers{padding: 3rem 3rem 0 3rem;}

/* -------------------------------------------------------------------------------- */
/* ! Sezione 3 - Media / Text Autorizzazioni */
/* -------------------------------------------------------------------------------- */
.media-text{max-width: 1000px;}
.media-text img{border-radius: 25px; box-shadow: 2px 3px 5px 2px darkgray;}

/* -------------------------------------------------------------------------------- */
/* ! Sezione form header */
/* -------------------------------------------------------------------------------- */

.form-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 50px 20px;
  width: 100%;
  height:100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  margin: auto;
}

/* Testo form */
.form-title{font-weight: bold; color: black; font-size: 1.2rem;}

/* Stile per ogni label (rende il radio cliccabile come una card) */
.wpcf7-list-item {
  margin: 0;
}

/*Personalizzazione select*/
.container-select{ text-align:center; }
.form-select{
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-color: rgba(141, 175, 188, 0.29); border: none; border-radius: 10px;
  padding: 15px; width: 90%; margin-left: -10px; font-weight: bold;
  text-transform: uppercase; text-align:center; font-size: 14px;
  background-image: url('http://fonti.acapulc0.it/wp-content/uploads/2025/05/arrow-down-sign-to-navigate.png'); /* tua freccia */
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; color: #000; cursor: pointer;
}	

/* Nasconde i radio originali di tutta la pagina, quindi viene applicato al form footer, 
   se un giorno metti un radio ma non si vede ricordati perhce è disattivato su tutta la pagina */
input[type="radio"] {
  display: none;
}

/* Margini sopra e sotto a Casa e Azienda */
.luogo-radio{margin: 20px 0; display: flex; justify-content: center;}

/* Modifica stile ai campi Radio, aggiunge quadrato intorno ai radio, Utilizzato anche per il form-footer */
.wpcf7-list-item-label {
  display: flex; flex-direction: column; align-items: center; color: black;text-align: center; font-weight: bold;
  justify-content: center; padding: 15px; background-color: #e8edf1; border: 2px solid transparent;
  margin: 5px; border-radius: 10px; width: 150px; cursor: pointer; transition: border 0.3s ease, background 0.3s ease;
}

/* Icona immagine dentro la label per i radio */
.form-box .wpcf7-list-item-label::before {
  content: ""; display: block;width: 100px;height: 80px; margin-bottom: 10px;
  background-size: contain;background-repeat: no-repeat; background-position: center;
}

/* Icona specifica per Casa */
input[value="Casa"] + .wpcf7-list-item-label::before {
  background-image: url('http://fonti.acapulc0.it/wp-content/uploads/2025/05/house-icon.svg');
}

/* Icona specifica per Azienda */
input[value="Azienda"] + .wpcf7-list-item-label::before {
  background-image: url('http://fonti.acapulc0.it/wp-content/uploads/2025/05/store-icon.svg');
}

/* Bordo blu se selezionato in tutti i radio della pagina */
.wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label {
  border: 2px solid #254360; /* tuo colore personalizzato */
  outline: none; /* rimuove il bordo predefinito */
  box-shadow: 0 0 5px rgba(37, 67, 97, 0.5); /* effetto glow opzionale */
  background-color: #f0f8ff;
} 
/* ------ Bottone invia ------ */
.button-form{text-align:center;}
.form-box input[type=submit]{width: 90%;background: #F7A503; color: white; border: 3px solid #F7A503; cursor:pointer; transition: 0.3s; font-weight: bold;font-size: 16px;}
.form-box input[type=submit]:hover{background: white; color:#F7A503; }

/* Messaggio di dati mancanti */
.wpcf7 form.invalid .wpcf7-response-output{padding: 20px; background: #ffb90060; text-align: center; font-weight: bold; color: red; border-radius: 10px; }
/* Messaggio di invio dati riuscito */
.wpcf7 form.sent .wpcf7-response-output{padding: 20px; background: #46b45060; text-align: center; font-weight: bold; color: white; border-radius: 10px;}

/* -------------------------------------------------------------------------------- */
/* ! Sezione form footer */
/* -------------------------------------------------------------------------------- */
.form-container {
  background-color: rgba(29 ,78 ,107, 0.5);
  padding: 30px;
  border-radius: 15px;
  color: #fff;
  max-width: 600px;
  margin: 0 auto;
}

.row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.col {
  flex: 1;
  min-width: 48%;
}


input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  background-color: #f2f2f2;
  color: #333;
  box-sizing: border-box;
}

textarea {
  height: 100px;
  resize: vertical;
}

label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
}

input[type="radio"] {
  margin-right: 6px;
}

textarea::placeholder {
  	font-family: 'Lato', sans-serif;
	opacity: 0.6;
	letter-spacing: 1.3px;
}

.form-container .wpcf7-list-item-label{padding: 5px !important; border-radius: 5px !important;}

.wpcf7-list-item {
  margin-right: 10px;
  display: inline-block;
  color: #fff;
}

.wpcf7-acceptance {
  margin: 15px 0;
}

.disclaimer {
  font-size: 12px;
  margin-top: 10px;
  color: #ccc;
}


.submit-button {
  background-color: #F7A602 !important; color: #fff; font-weight: bold; padding: 10px !important;
  font-size: 16px; border: 2px solid #F7A602 !important; border-radius: 10px; cursor: pointer; margin-top: 20px;
  display: block; width: 100%; text-align: center; transition: background-color 0.3s ease;
}

.submit-button:hover {
  background-color: white !important; border: 2px solid #F7A602 !important; color: #F7A602 !important; transition: 0.3s;
}

.form-arrow{position: absolute; top:-100px; right: -20px;}

@media (max-width: 768px) {
  /* Forza i radio affiancati anche su mobile */
  .wpcf7-list-item-label {
    width: 125px !important;
  }
}

/* -------------------------------------------------------------------------------- */
/* ! Sezione 5 - mappa */
/* -------------------------------------------------------------------------------- */
.mappa{border-radius: 25px; border: 2px solid yellow; box-shadow: 2px 3px 10px 2px darkgray;}


/* ---------------- PAGINA DEI RATTI -----------------*/

/* --------- Sezione media text ---------- */
.container {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
      max-width: 1000px;
      margin: 0 auto;
    }

    .card {
      background-color: #43637e;
      padding: 20px 20px 20px 60px;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      position: relative;
      transition: transform 0.2s ease;
    }

    .card:hover {
      transform: translateY(-5px);
    }

    .check-icon {
      position: absolute;
      top: 20px;
      left: 20px;
      width: 28px;
      height: 28px;
      background-color: #7ac740;
      color: white !important;
      font-size: 18px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
    }

    .text {
      font-size: 1.2rem;
      line-height: 1.5;
	  color: white;
    }

@media(max-width: 767px){
  .check-icon{color: white !important;}
}
/* ---------- Sezione banner arancione -------------  */
.cont-1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonne fisse */
  max-width: 1000px;
  height: 100%;
  margin: 0 auto;
  padding: 20px 0;
  border-radius: 12px;
  box-shadow: 0px 7px 10px 2px darkgray;
}

.cont--pers{grid-template-columns: repeat(1, 1fr); max-width: 1200px; box-shadow: none; height: auto;}


    .card-x {
      padding: 20px 20px 0px 60px;
      border-radius: 12px;
      position: relative;
      transition: transform 0.2s ease;
    }

    .card-x:hover {
      transform: translateY(-5px);
    }

    .x-icon {
      position: absolute;
      top: 20px;
      left: 20px;
      width: 28px;
      height: 28px;
      background-color: #e53935; /* rosso */
      color: white;
      font-size: 18px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
    }

    .cont-1 .text{font-weight: bold; font-size: 1.2rem; }

	.cont--black .text{color: black; font-weight: normal !important;}

@media (max-width: 600px) {
  .cont-1 {
    grid-template-columns: 1fr; /* una sola colonna sotto i 600px */
  }
}

/* ---------- Timeline ------------ */
.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 20px 0 20px;
  position: relative;
}

.timeline {
  position: relative;
  margin: 0 auto;
  padding: 20px 0 100px 0;
}

/* Nuova linea animabile */
.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: white;
  height: 0; /* Animato da JS */
  z-index: 0;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 50px 20px 20px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.left::after {
  right: -15px;
}

.timeline-item.left .content {
  margin-left: auto;
  position: relative;
  transform: translate(-20px, -15px);
}

.timeline-item.left .content h3 {
  text-align: right;
}

.timeline-item.left .content::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 15px solid #f5f5f5;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-item.right::after {
  left: -15px;
}

.timeline-item.right .content {
  margin-right: auto;
  position: relative;
  transform: translate(20px, -15px);
}

.timeline-item.right .content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 15px solid #f5f5f5;
}

.content {
  background: #f5f5f5;
  color: #000;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  max-width: 90%;
}

.content h3 {
  margin-top: 0;
  font-size: 20px;
  color: #0c3c5c;
  text-align: left;
}

.content p {
  text-align: left; font-size: 1.2rem;
}

.step {
  font-size: 32px;
  color: #f7a503;
  text-align: right;
}

@media screen and (max-width: 768px) {
  .timeline-line {
    left: 8px;
  }
  /*REGOLE CSS per i contenitori di sinistra per renderli responsive su telefono, Quando si mettono in colonna --------*/
  .timeline-item.left .content {
    margin-right: auto;
    margin-left: 0 !important;
    position: relative;
    transform: translate(20px, -15px);
  }
  
  .timeline-item.left .content::before {
    content: '';
    border-right: 15px solid #f5f5f5;
    border-left: 0 !important;
  }
 
  .timeline-item.left .content h3 {
    text-align: left;
  }
  /* ---------------------------------------------------------------------------------------------------------------- */
  .timeline-item {
    width: 100%;
    padding-left: 30px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }

  .timeline-item::after {
    left: -7px !important;
  }

  .timeline-item .content {
    margin: 0;
    transform: none;
  }

  .timeline-item .content::before {
    left: -15px;
    border-left: none;
    border-right: 15px solid #f5f5f5;
    transform: translateY(-50%);
  }
}

/* -------------------------------------------------------------------------------- */
/* ! PAGINA CONTATTI */
/* -------------------------------------------------------------------------------- */

.copertina-contatti{min-height: 200px;}



/* -------------------------------------------------------------------------------- */
/* ! PAGINA BLOG */
/* -------------------------------------------------------------------------------- */


.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
}

@media (min-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-post {
  text-align: center;
}

.post-thumbnail {
  width: 100%;
  height: 400px; /* altezza fissa */
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 20px 0;
}

.post-meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.meta-item {
  background-color: #f1f1f1;
  padding: 4px 8px;
  margin: 0 4px;
  display: inline-block;
  border-radius: 5px;
  font-size: 0.75rem;
}

.post-title {
  font-size: 1.5rem;
  color: #042e5c;
  font-weight: 700;
  line-height: 1.3;
  margin: 10px 0;
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-excerpt {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 10px;
  color: #444;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #0073aa;
  font-weight: bold;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* CSS Barra di ricerca*/
.form-search-wrapper {
  display: flex;
  justify-content: flex-start;
  padding: 20px 20px 0; /* top-right-left padding */
}

.form-search {
  max-width: 300px;
  width: 100%;
  display: flex;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 25px;
  padding: 5px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-search input[type="text"] {
  border: none;
  outline: none;
  padding: 8px;
  font-size: 14px;
  border-radius: 25px;
  width: 100%;
  color: #333;
  background: transparent;
}

.form-search button {
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
}

.form-search button img {
  width: 20px;
  height: 20px;
  filter: invert(47%) sepia(94%) saturate(2127%) hue-rotate(2deg) brightness(99%) contrast(98%);
}





