*,
body,
html {
  box-sizing: border-box;
  font-size: 19px;
  font-family: 'Afacad';
}

.bg-brown {
  background-color: #8F2F03;
}

/* Responsive */
@media (max-width: 768px) {

  body,
  html {
    font-size: 17px;
  }
}

/* -------------------------------------------------------------- Font ---------------- */

.amatic-sc-regular {
  font-family: "Amatic SC", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.amatic-sc-bold {
  font-family: "Amatic SC", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.hero_home h1,
h1,
h2 {
  font-family: 'Amatic SC';
  font-size: 4em;
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero_home p {
  font-family: 'Afacad';
  font-weight: 400;
  font-size: 1.5em;
}

/* -------------------------------------------------------------- Bottoni ---------------- */
/* ------ Bottone Principale ------ */

.bottone_primary {
  background-color: #979367;
  border-radius: 25px;
  border: 1px #979367 solid;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Afacad';
  font-weight: 400;
  text-decoration: none;
  color: #2b2b2b;
  display: block;
}

.bottone_primary:hover {
  background-color: #646243;
  border: 1px #646243 solid;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #E9EDEE;
}

/* ------ Bottone Card ------ */

.bottone_card {
  background-color: #CA8E43;
  border-radius: 25px;
  border: 1px #CA8E43 solid;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
}

.bottone_card a {
  font-family: 'Afacad';
  font-weight: 400;
  text-decoration: none;
  color: #2b2b2b;
}

.bottone_card:hover {
  background-color: #b17c3b;
  border: 1px #b17c3b solid;
}

.bottone_card a:hover {
  color: #E9EDEE;
}

/* ------ Bottone Pagina Progetti ------ */
.bottone-progetti {
  width: 200px;
}

/* ------ Bottone Back Pagina Progetto Singolo ------ */

.btn-back .bottone_primary {
  background-color: #e9edee03;
  backdrop-filter: blur(6px);
  border: 1px solid #8F2F03;
  border-radius: 25px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  color: #8F2F03;
  text-decoration: none;
  font-size: 14px;
  display: block;
  font-weight: 500;
}

.btn-back .bottone_primary:hover {
  background-color: #8F2F03;
  color: #E9EDEE;
}

/* -------------------------------------------------------------- Header/Barra di Navigazione ---------------- */

#main-menu {
  justify-content: center;
}

.navbar .container {
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  border-radius: 16px;
}

/* Bottone Contattami Barra di Navigazione */

.navbar .bottone_primary_nav {
  background-color: #979367;
  border-radius: 24px;
  border: 1px #979367 solid;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #2b2b2b;
  font-family: 'Afacad';
  font-weight: 400;
  text-decoration: none;
}

.navbar .bottone_primary_nav:hover {
  background-color: #646243;
  border: 1px #646243 solid;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #E9EDEE;
}

/* Lista di Navigazione */

li#menu-item-18 a.nav-link {
  font-family: 'Afacad';
  color: #2b2b2b;
}

li#menu-item-18 a.nav-link:hover {
  font-family: 'Afacad';
  color: #807d59;
}

li#menu-item-18 a.nav-link.active {
  font-family: 'Afacad';
  color: #5d5a44;
}

/* Nav-About */

li#menu-item-19 a.nav-link {
  font-family: 'Afacad';
  color: #000000;
}

li#menu-item-19 a.nav-link:hover {
  font-family: 'Afacad';
  color: #807d59;
}

li#menu-item-19 a.nav-link.active {
  font-family: 'Afacad';
  color: #5d5a44;
}

/* Nav-Contatti */

li#menu-item-20 a.nav-link {
  font-family: 'Afacad';
  color: #000000;
}

li#menu-item-20 a.nav-link:hover {
  font-family: 'Afacad';
  color: #807d59;
}

li#menu-item-20 a.nav-link.active {
  font-family: 'Afacad';
  color: #5d5a44;
}

/* Nav-Progetti */


li#menu-item-21 a.nav-link,
#footer_menu ul li a {
  font-family: 'Afacad';
  color: #000000;
}

li#menu-item-21 a.nav-link:hover {
  font-family: 'Afacad';
  color: #807d59;
}

li#menu-item-21 a.nav-link.active {
  font-family: 'Afacad';
  color: #5d5a44;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar .bottone_primary_nav {
    display: none;
  }

}

/* -------------------------------------------------------------- Footer ---------------- */

#footer_menu {
  background-size: cover;
  height: 380px;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo_footer {
  margin-bottom: 10px;
}

.logo_footer img {
  max-width: 100px;
  height: auto;
}

#menu-main-menu-1,
#footer_menu ul li {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 20px 0 30px 0;
}

#menu-main-menu-1,
#footer_menu ul li a {
  display: flex;
  flex-direction: row;
  text-decoration: none;
  color: #2b2b2b;
  letter-spacing: 0.5px;
  gap: 25px;
}

#footer_menu ul li a:hover {
  font-family: 'Afacad';
  color: #E9EDEE;
}

#footer_menu ul li a:active {
  font-family: 'Afacad';
  color: #8F2F03;
}

.social {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
}

.social figure {
  margin: 0;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social svg {
  width: 30px;
  height: 30px;
}

.social a:hover svg {
  opacity: 0.7;
}

#footer_menu p {
  margin: 0;
  font-size: 0.5em;
  color: #2b2b2b;
}

/* ---------------------------------------------------------------------------- Home ---------------------------------------------------------------------------- */
/* -------------------------------------------------------------- Hero section ---------------- */

.hero_home {
  height: 950px;
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #E9EDEE;
  text-align: center;
  position: relative;
}

.hero_home .homeHeroTest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
}

/* Overlay scuro semi-trasparente */
.hero_home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Contenuto sopra l'overlay */
.hero_home>* {
  position: relative;
  z-index: 2;
}

.homeHeroTest {
  width: 60vw;
}

/* Responsive */
@media (max-width: 768px) {

  .hero_home {
    height: 90vh;
  }

  .hero_home .homeHeroTest {
    padding-top: 20%;
    gap: 0;
    font-size: 12px;
  }
}

/* -------------------------------------------------------------- Animazione ---------------- */

/* Animazione dal basso verso l'alto */
/* Stato iniziale: invisibile e spostato in basso */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Stato finale: visibile e in posizione */
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ritardi per animare elementi in sequenza */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.80s; }

/* Animazione da sinistra */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Animazione card Home*/
.colCardProgetto, .colCardProgetto:nth-of-type(2) {
    transition: transform 0.3s ease;
}

.colCardProgetto:hover {
    transform: scale(1.03);
}

.container-cards .colCardProgetto:nth-of-type(2) .card {
  transition: transform 0.3s ease;
}

.container-cards .colCardProgetto:nth-of-type(2) .card:hover {
  transform: scale(1.06);
}


/* -------------------------------------------------------------- Section Intro-About ---------------- */
.intro_about_home {
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 50px 0;
}

.intro_about_home .the-content {
  display: flex;
  flex-direction: row;
  padding: 5%;
  gap: 5%;
}

.colonna_dx {
  display: flex;
  align-items: start;
  justify-content: center;
  order: 2;
  flex-direction: column;
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 50%;
  gap: 30px;
}

.intro_about_text {
  display: block;
  display: flex;
  flex-direction: column;
  width: 50vw;
}

.intro_about_img {
  display: block;
  display: flex;
  justify-self: flex-start;
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 400px;
}

/* Responsive */
@media (max-width: 768px) {
  .intro_about_text {
    padding-top: 15%;
    width: 100%;
  }

  .intro_about_home {
    background: none;
    background-color: #8F2F03;
  }
}

/* -------------------------------------------------------------- Section Progetti in Evidenza ---------------- */

.progetti_home {
  background-size: cover;
  background-position: center;
  padding: 60px 20px 80px 20px;
  position: relative;
  overflow: hidden;
  background-color: #8F2F03;
}

.progetti_home .the-content {
  text-align: center;
  margin-bottom: 40px;
}

.progetti_home h2 {
  text-align: center;
  letter-spacing: 0.2em;
  position: relative;
  z-index: 2;
  padding-bottom: 160px;
}

.container-cards {
  max-width: 1400px;
  margin: 0 auto 60px;
}

.container-cards .row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.container-cards .card {
  border-radius: 16px;
  flex: 1;
  background-color: #E9EDEE;
  border-color: #E9EDEE;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.container-cards .card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 20px;
  padding-top: 15px;
  border-radius: 16px 16px 0 0;
}

.container-cards .card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.container-cards .colCardProgetto:nth-of-type(2) {
  transform: translateY(-55px);
}

.container-cards .colCardProgetto:nth-of-type(2) .card {
  outline: 8px dotted #ABC1C9;
}

.container-cards .card p small {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 25px;
  margin: 5px;
  background-color: #CA8E43;
  color: #E9EDEE;
  font-weight: 500;
}

.container-cards .card .content-card {
  padding: 20px;
}

.container-cards .card .content-card p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.progetti_home .bottone_primary {
  display: block;
  margin: 0 auto;
  width: fit-content;
  position: relative;
  z-index: 2;
}


/* Responsive Tablet - 2 card sopra, 1 sotto centrata */
@media (max-width: 992px) {
  .container-cards .row {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .container-cards .col:nth-of-type(2) {
    transform: translateY(0);
  }

  .progetti_home h2 {
    padding-bottom: 60px;
  }
}

/* Responsive Mobile - tutte le card una sotto l'altra centrate */
@media (max-width: 768px) {
  .container-cards .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
  }

  .container-cards .col, 
  .container-cards [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    margin-bottom: 40px !important; 
    /* RESET totale di ogni trasformazione desktop */
    margin-top: 0 !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    padding: 0 0;
  }

  .container-cards .col:last-child {
    margin-bottom: 0 !important;
  }

  .container-cards .card {
    margin: 0 auto !important;
    display: block !important;
  }
}
/* -------------------------------------------------------------- Section Contatti ---------------- */

.contatti_home {
  background-color: #ABC1C9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 10px;
  text-align: center;
  overflow: hidden;
}

.contatti_home h2 {
  text-align: center;
}


.contatti_home h2 {
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 120px;
  margin-top: 60px;
}

.contatti_home .row {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.contatti_home .col-6 {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 20px;
  text-align: left;
}

.contatti-sx {
  height: 400px;
  font-size: 0.9rem;
  margin-right: 100px;
}

.contatti-sx p {
  line-height: 1.6;
  padding-bottom: 40px;
}

.contenuto {
  margin: 0;
  padding: 0;
}

/* Colonna Info Contatti */
.contatti_home .col-6 h4 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 20px;
  text-align: center;
}

.contatti_home .col-6 p {
  font-size: 0.9rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.info-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.info-item span {
  font-size: 1.1rem;
  color: #333;
}

/* Colonna Form */

.form {
  margin: 0;
  padding: 0;
}

/* Stili per i campi del form Contact Form 7 */
.contatti_home input[type="text"],
.contatti_home input[type="email"],
.contatti_home textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #2b2b2b;
  background-color: transparent;
  border-radius: 24px;
}

.contatti_home input[type="text"]:focus,
.contatti_home input[type="email"]:focus,
.contatti_home textarea:focus {
  outline: none;
  background-color: transparent;
  border-color: #979367;
}

.contatti_home textarea {
  min-height: 120px;
  resize: vertical;
}

#wpcf7-f175-o1 > form > div.col-12.privacy-check.w-100 > p > span > span > span > label > span {
  font-size: 0.8rem;
}

/* Label del form */
.contatti_home label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 5px;
  font-weight: 300;
}

/* Bottone Invia */
.contatti_home input[type="submit"],
.contatti_home .wpcf7-submit {
  background-color: #979367;
  border-radius: 24px;
  border: 1px #979367 solid;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  padding: 10px 24px;
}

.contatti_home input[type="submit"]:hover,
.contatti_home .wpcf7-submit:hover {
  color: #fff;
  background-color: #646243;
  border: 1px #646243 solid;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .contatti-sx {
    order: 1;
    margin-top: 40px;
    min-width: 100%;
  }

  .contatti_home .col-6 {
    padding: 20px;
  }

  .contatti-sx p {
    padding-bottom: 15px;
  }
}

/* ---------------------------------------------------------------------------- Pagina About ---------------------------------------------------------------------------- */
/* ------ Section 1 ----- */

.sec1_about,
.sec2_about {
  padding: 120px 5% 80px 5%;
}

.sec1_about .img_sect_about {
  display: flex;
  align-items: center;
}

.sezione1_about .decorazione_sec1 {
  margin-left: 15%;
  margin-bottom: 5%;
}

/* ------ Section 2 ----- */

.sezione2_about {
  background-color: #F5C175;
}

.sec2_about .testo_sec2_about {
  display: flex;
  flex-direction: column;
  align-self: center;
}

/* ------ Section 3 ----- */

.sec3_about {
  padding: 80px 5% 40px 5%;
}

.sec3_about .testo_sec3_about {
  display: flex;
  flex-direction: column;
  align-self: center;
}

.sezione3_about .decorazione_sec3 {
  margin-left: 20%;
  margin-bottom: 5%;
}

/* ------ CTA finale ----- */

.cta_finaleAbout {
  background-color: #F5C175;
  background-repeat: no-repeat;
  background-position-x: right;
  background-position-y: bottom;
  padding: 60px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.testo_ctaAbout {
  text-align: center;
  max-width: 600px;
}

.testo_ctaAbout p:first-child {
  font-size: 2.5rem;
  margin-bottom: 32px;
}

.testo_ctaAbout p:nth-child(2) {
  font-size: 2rem;
  margin-bottom: 32px;
}

.btn_ctaAbout {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

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

@media (max-width: 768px) {

  .sec1_about .img_sect_about,
  .sec2_about .testo_sec2_about {
    padding-top: 40px;
  }

  .sec1_about,
  .sec2_about {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .cta_finaleAbout {
    background-position-x: right;
    background-position-y: bottom;
    background-size: 200px;
  }

}

/* ---------------------------------------------------------------------------- Pagina Progetti ---------------------------------------------------------------------------- */
/* Container progetti */
.container-progetti {
  padding: 0 0 100px 0;
}

.container-progetti article.row {
  margin: 0;
  padding: 60px 0 60px 0;
  position: relative;
  min-height: 500px;
}

/* Colonne immagine e contenuto */
.img_progetto,
.contenuto_progetto {
  padding: 60px 40px;
}

.contenuto_progetto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.img_progetto img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Progetti pari - fascia colorata + testo bianco */
.container-progetti article.row:nth-child(even) {
  background-color: #8F2F03;
  border-radius: 16px;
  padding: 0;
}

.container-progetti article.row:nth-child(even) .contenuto_progetto h2,
.container-progetti article.row:nth-child(even) .contenuto_progetto p {
  color: #E9EDEE;
}

/* Responsive */
@media (max-width: 991px) {
  .container-progetti article.row:nth-child(odd)::after {
    width: 120px;
    height: 120px;
    right: 20px;
    bottom: 20px;
  }

  .img_progetto,
  .contenuto_progetto {
    padding: 40px 20px;
  }

  .container-progetti article.row {
    min-height: auto;
  }
}

/* ---------------------------------------------------------------------------- Pagina Progetto Singolo ---------------------------------------------------------------------------- */
/* ------------- Hero ------------- */
.progetto-singolo {
  min-height: 96.6vh;
  background-size: cover;
  background-position: top right;
  background-attachment: fixed;
  display: flex;
  align-items: flex-end;
  color: #2b2b2b;
}

.hero-ps {
  width: 100%;
  padding: 80px 60px;
}

.hero-ps h1 {
  font-size: 72px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-ps .the-content {
  max-width: 600px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.divisore-ps-hero {
  border: 0;
  height: 5px;
  background: #8F2F03;
  width: 50%;
  margin: 40px 0 25px 0;
  border-radius: 50px;
  opacity: 0.9;
}

.etichette-hero-ps {
  display: flex;
  gap: 120px;
}

.etichette-hero-ps p:first-child {
  font-size: 14px;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.etichette-hero-ps p:last-child {
  font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-ps h1 {
    padding-top: 60px;
  }
  
  .hero-ps .the-content {
    width: 100%;
    margin-bottom: 20px;
  }

  .hero-ps {
    padding: 40px 30px;
  }

  .progetto-singolo {
    align-items: center;
  }

  .btn-back .bottone_primary {
    display: none;
  }
}

/* ------------- Sezione 1 - Il Contesto ------------- */

.contesto-section>* {
  box-sizing: border-box;
}

.contesto-section {
  padding: 80px 20px;
}

.contesto-section>p {
  color: #2b2b2b;
  margin-bottom: 40px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.h2-contesto-ps {
  color: #8F2F03;
  margin-bottom: 60px;
  font-size: 48px;
  font-family: 'Afacad';
  font-weight: 500;
  text-transform: capitalize;
}

.contesto-cards {
  display: flex;
  gap: 24px;
  margin-top: 80px;
}

.contesto-cards .col {
  flex: 1;
}

/* Card Contesto */
.card-contesto {
  background-color: #F5C175;
  border-radius: 16px;
  padding: 30px 20px;
  height: 100%;
  min-height: 300px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.card-contesto h3 {
  color: #8F2F03;
  margin-bottom: 28px;
  font-size: 32px;
}

.card-contesto p {
  color: #2b2b2b;
  line-height: 1.6;
  font-size: 18px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  padding: 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .contesto-cards {
    flex-direction: column;
  }

  .h2-contesto-ps {
    font-size: 36px;
    margin-bottom: 40px;
    margin-top: 0;
  }

  .contesto-section,
  .processo-section,
  .gallery-section,
  .tool-section,
  .cta-contatti-ps {
    padding: 40px 20px;
  }
}

/* ------------- Sezione 2 - Il Processo ------------- */
.processo-section {
  padding: 40px 20px;
  position: relative;
}

.processo-section>* {
  box-sizing: border-box;
}

.h2-processo-ps {
  color: #979367;
  margin-bottom: 40px;
  font-size: 48px;
  font-family: 'Afacad';
  font-weight: 500;
  text-transform: capitalize;
}

.processo-section>p {
  margin-bottom: 60px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.cards-processo {
  position: relative;
  margin-bottom: 100px;
}

/* Divisore centrale verticale */
.cards-processo>.linea-centrale-y {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1em;
  background-color: #979367;
  transform: translateX(-50%);
  z-index: 1;
  border: 0;
  border-radius: 50px;
}

/* Card Processo */
.cards-processo .row {
  display: flex;

  position: relative;
  z-index: 2;
}

.cards-processo .col-processo {
  flex: 0 0 calc(50% - 20px);
  max-width: calc(50% - 20px);
}


.cards-processo .col-processo:has(img) {
  background-color: #ABC1C9;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.cards-processo .col-processo img {
  width: 60px;
  height: 60px;
}

.processo1 .col-processo:first-child img {
  position: absolute;
  top: 10px;
  left: 30px;
}

.processo2 .col-processo:last-child img {
  position: absolute;
  top: 10px;
  right: 30px;
}

.cards-processo .col-processo h3 {
  color: #8F2F03;
  margin-bottom: 20px;
  font-size: 32px;
}

/* Card sinistra - numero a sinistra */
.processo1 .col-processo:first-child h3 {
  margin-left: 80px;
}

/* Card destra - numero a destra */
.processo2 .col-processo:last-child h3 {
  margin-right: 80px;
  text-align: right
}

/* Testo card */
.cards-processo .col-processo p {
  color: #2b2b2b;
  line-height: 1.6;
  font-size: 18px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Card sinistra - testo con margine dal numero */
.processo1 .col-processo:first-child p {
  margin-left: 0;
}

/* Card destra - testo allineato */
.processo2 .col-processo:last-child p {
  margin-right: 0;
}

/* Posizionamento card destra */
.processo2 {
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
  .cards-processo>img {
    display: none;
  }

    .cards-processo .row {
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .cards-processo .col-processo,
  .cards-processo .col-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  
  .processo2 {
    justify-content: flex-start !important;
  }
  
  .processo1 .col-processo:first-child h3,
  .processo2 .col-processo:last-child h3 {
    margin-left: 80px !important;
    margin-right: 0 !important;
    text-align: left !important;
  }
  
  .processo2 .col-processo:last-child img {
    position: absolute;
    top: 10px;
    left: 30px !important;
    right: auto !important;
  }
  
  .cards-processo .col-processo:has(img) {
    padding: 30px;
  }
}

/* ------------- Sezione 3 - Gallery ------------- */
.gallery-section {
  padding: 40px 20px;
}

.gallery-section>* {
  box-sizing: border-box;
}

.h2-gallery-ps {
  color: #8F2F03;
  margin-bottom: 80px;
  font-size: 48px;
  font-family: 'Afacad';
  font-weight: 500;
  text-transform: capitalize;
}

.foto-gallery {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

/* Gallery sinistra */
.gallery-sx {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.img-gallery-sx1,
.img-gallery-sx2 {
  width: 100%;
  height: 100%;
  padding-bottom: 56.25%;
  /* Proporzione 16:9 circa */
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow:
    8px 8px 20px rgba(150, 150, 150, 0.8),
    12px 12px 30px rgba(220, 220, 220, 0.3);
}

.img-gallery-sx1 img,
.img-gallery-sx2 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery destra */
.gallery-dx {
  flex: 0 0 calc(60% - 30px);
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow:
    8px 8px 20px rgba(150, 150, 150, 0.8),
    12px 12px 30px rgba(220, 220, 220, 0.3);
  padding: 0;
  margin: 0;
  line-height: 0;  
}

.gallery-dx img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;  
  border: none;
}

@media (max-width: 768px) {
  .foto-gallery {
    flex-direction: column;
  }

  .gallery-dx img {
    height: 100%;
  }
}

/* ------------- Sezione 3 - Tools ------------- */
.tool-section {
  padding: 100px 20px 140px 20px;
}

.h2-tool-ps {
  color: #979367;
  margin-bottom: 80px;
  font-size: 48px;
  font-family: 'Afacad';
  font-weight: 500;
  text-transform: capitalize;
}

.tools {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.tool-1 {
  background-color: #ABC1C9;
  color: #2b2b2b;
  padding: 20px 40px;
  border-radius: 16px;
  font-size: 1.5rem;
  text-align: center;
  flex: 0 0 auto;
  width: 300px;
}

/* ------------- Sezione 4 - Link esterno ------------- */

.cta-esterna-ps {
  padding: 20px 0 80px 0;
}

/* ------------- Sezione 5 - CTA Finale - Contatti ------------- */
.cta-contatti-ps {
  background-color: #F5C175;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0 80px 0;
  position: relative;
  margin: 0;
}

.text-cta-contatti-ps {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.text-cta-contatti-ps h3 {
  color: #2b2b2b;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  font-family: 'Afacad';
}

.text-cta-contatti-ps p {
  color: #2b2b2b;
  font-size: 1.2rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

.btn-cta-contatti-ps {
  display: flex;
  justify-content: center;
}

.btn-cta-contatti-ps a {
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .cta-contatti-ps {
    background-size: 400px;
    background-position-y: bottom;
  }
}

/* ---------------------------------------------------------------------------- Pagina Contatti ---------------------------------------------------------------------------- */

.section1-pg-contatti {
  margin: 80px 20px;
}

.section-forms {
  background-color: #ABC1C9;
  padding: 60px 20px 80px;
  position: relative;
}

.section-forms h3 {
  font-size: 2rem;
  font-weight: 600;
  color: #2b2b2b;
  margin-bottom: 100px;
  text-align: center;
  font-family: 'Afacad';
}

.decorazione-form1 img {
  position: absolute;
  top: -150px;
  left: -150px;
  min-height: 250px;
}

/* Form contatti */
.form-pg-contatti {
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 120px;
}

.form-pg-contatti .wpcf7-form p {
  
  flex-direction: column;
}

.form-pg-contatti .wpcf7-form p:first-of-type,
.form-pg-contatti .wpcf7-form p:nth-of-type(2) {
  flex-direction: row;
  gap: 16px;
  margin-bottom: 16px;
}

.form-pg-contatti .wpcf7-form p:first-of-type span,
.form-pg-contatti .wpcf7-form p:nth-of-type(2) span {
  width: 50%;
}

.form-pg-contatti label {
  width: 100%;
}

.form-pg-contatti input[type="text"]:focus,
.form-pg-contatti input[type="email"]:focus,
.form-pg-contatti textarea:focus {
  outline: none;
  background-color: transparent;
  border-color: #6e6b4c;
}

.form-pg-contatti input[type="text"]:active,
.form-pg-contatti input[type="email"]:active,
.form-pg-contatti textarea:active {
  outline: none;
  background-color: #fff;
  border-color: #6e6b4c;
}

.form-pg-contatti input[type="text"] {
  width: 100%;
  background: transparent;
  border: 1px solid #1a1a1a;
  border-radius: 24px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #2b2b2b;
}

.form-pg-contatti input[type="email"],
.form-pg-contatti textarea {
  width: 100%;
  background: transparent;
  border: 1px solid #1a1a1a;
  border-radius: 24px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #2b2b2b;
  margin-bottom: 16px;
}

.form-pg-contatti label {
  font-size: 0.85rem;
  font-weight: 300;
  color: #2b2b2b;
  display: block;
  margin-bottom: 4px;
}

/* Checkbox privacy */
.privacy-check {
  margin-top: 20px;
  margin-bottom: 20px;
}

.privacy-check .wpcf7-list-item {
  margin: 0;
  display: flex;
  align-items: flex-start;
  width: 100%;
}

#wpcf7-f175-o1 > form > div.col-12.privacy-check.w-100 > p > span > span > span {
  min-width: 100%;
}

.privacy-check input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 1px solid #1a1a1a;
  border-radius: 8px;
  background-color: transparent;
  cursor: pointer;
  margin-right: 10px;
  margin-top: 2px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.privacy-check input[type="checkbox"]:checked {
  background-color: #979367;
  border-color: #979367;
}

.privacy-check input[type="checkbox"]:checked::after {
  content: "✓";
  display: block;
  text-align: center;
  color: #E9EDEE;
  font-size: 16px;
}

.privacy-check label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  width: 100%;
}

.privacy-check .wpcf7-list-item-label {
  flex: 1;
}

/* Bottone form */
.form-pg-contatti input[type="submit"] {
  background-color: #979367;
  border-radius: 24px;
  border: 1px #979367 solid;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  padding: 8px 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Afacad';
  font-weight: 400;
  text-decoration: none;
  color: #2b2b2b;
  font-size: 1rem;
  width: 100px;
}

.form-pg-contatti input[type="submit"]:hover {
  background-color: #807d59;
  color: #E9EDEE;
}

/* Messaggio d'errore e di successo */
.wpcf7-not-valid-tip {
  color: #9E0000;
}

.wpcf7-response-output {
  background-color: transparent;
  border-radius: 24px;
}

/* Decorazione in basso */
.decorazione-form2 {
  position: absolute;
  bottom: -380px;
  right: 0px;
  min-height: 350px;
}

/* Sezione altri contatti */
.section-finale-pg-contatti {
  padding: 60px 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .form-pg-contatti .wpcf7-form>p:first-of-type {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .form-pg-contatti .wpcf7-form p:first-of-type,
  .form-pg-contatti .wpcf7-form p:nth-of-type(2) {
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .decorazione-form2 img,
  .decorazione-form1 img {
    min-height: auto;
    opacity: 0.2;
  }

  .decorazione-form2 {
    bottom: -610px;
    right: 0;
  }

  .decorazione-form2 img {
    height: 200px;
  }
}