/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/
/* Definiamo la variabile */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes drawCircle {
    to {
        --angle: 360deg;
    }
}
html,body{
    overflow-x: hidden;
  }
.hamburger rect{transition:0.1s all linear;}
.hamburger:hover rect{fill:#FF8000 !important}

.cerchiatura:before{
  /* Maschera applicata, ma ancora fissa a 0 gradi */
    -webkit-mask-image: conic-gradient(from 0deg, black var(--angle), transparent 0);
    mask-image: conic-gradient(from 0deg, black var(--angle), transparent 0);
}

.cerchiatura.is-visible::before{
    animation: drawCircle 1.5s ease-out forwards;
}

@keyframes drawCircle {
    to {
        --angle: 360deg;
    }
}

.sottolineatura{
  background-size:0 !important;
  background-position: bottom left !important;
  transition:1s all linear;
}

.sottolineatura.disegnato{
  background-size:100% !important;
}

.evidenziatore:before{transition:0.6s all linear;}
.evidenziatore:not(.disegnato):before{width:0% !important;transition:1s all linear;}

.evidenziatore-rev:before{transition:0.6s all linear;}
.evidenziatore-rev:not(.disegnato):before{width:0% !important;transition:1s all linear;}

/* Fix mobile: nastro ("evidenziatore-hero") e cerchio ("cerchiatura") sconfinano
   sulla parola successiva. Solo su mobile perché su desktop non si presenta:
   gli scostamenti in Elementor sono in px fissi, e col font ridotto da responsive
   diventano proporzionalmente troppo grandi rispetto alla singola parola. */
@media (max-width:767px){
    .evidenziatore-hero:before{
        width: calc(100% + 10px) !important;
        height: calc(100% + 12px) !important;
        transform: rotate(0deg) translateX(-5px) translateY(-6px) !important;
    }

    .cerchiatura:before{
        top: -12px !important;
        left: -8px !important;
        right: -8px !important;
        bottom: -12px !important;
    }

    /* Stesso problema su "strategia," / "il tuo impegno," (pagina metodo autentico
       e altre che usano .evidenziatore): sconfina sulla parola dopo. */
    .evidenziatore:before{
        width: calc(100% + 12px) !important;
        height: calc(100% + 6px) !important;
        transform: rotate(5deg) translateX(-6px) !important;
    }
    .evidenziatore.abitabili:before{
        transform: rotate(-5deg) translateX(-6px) !important;
    }
}


/* Add your custom styles here */
header{
    height:0
}

.shift_up_section{
    transform:translateY(-300px);
}

#servizi-home-slider-section-parent{
    position:relative;
}
/* #servizi-home-slider-section-parent:before{
    content: "";
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    width: 50vw;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0.0) 10%, rgba(255,255,255,0.0) 100%),
        url("/wp-content/uploads/2026/05/filigrana.svg");
    background-repeat: no-repeat;
    background-position: center 300px;
    background-size: cover;
    pointer-events: none;
} */

#servizi-home-slider-section{
    position:relative;
}
#servizi-home-slider-section:before {
    content: "";
    position: absolute;
    left: -15%;
    width: 130%;
    height: 80%;
    background-color: var(--e-global-color-primary);
    transform: rotate(-5.37deg);
    top: -15%;
}

#servizi-home-slider-section-parent,#servizi-home-slider-section{overflow:visible;}


#recensioni-parent-section {
    position: relative;
    padding-bottom: 80px;
    /* margin-bottom: 3%; */
}
#recensioni-parent-section:before {
    content: "";
    position: absolute;
    left: -15%;
    width: 130%;
    height: 100%;
    background-color: #e3edc6;
    transform: rotate(-5.37deg);
    top: -15%;
    z-index:2;
}

#recensioni-parent-section:after {
    content: "";
    position: absolute;
    left: -15%;
    width: 130%;
    height: 70%;
    background-color: #e3edc6;
    bottom: -3%;
    z-index: 1;
}
#recensioni-parent-section .elementor-element{
    z-index:3;
}


/* Transizione logo sticky: fade-out del logo originale e fade-in del logo compatto */
.elementor-widget-theme-site-logo {
    position: relative;
    display: inline-block;
}

.elementor-widget-theme-site-logo img {
    opacity: 1;
    transition: opacity 0.35s linear, transform 0.35s linear;
}

.elementor-widget-theme-site-logo:after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/wp-content/uploads/2026/05/logo-small.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.92);
    transition: opacity 0.35s linear, transform 0.35s linear, visibility 0s linear 0.35s;
    pointer-events: none;
}

.elementor-sticky--active.elementor-sticky--effects .elementor-widget-theme-site-logo img {
    opacity: 0;
    /* width:55px; */
    transform: scale(1.05);
}

.elementor-sticky--active.elementor-sticky--effects .elementor-widget-theme-site-logo:after {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 0.35s linear, transform 0.35s linear, visibility 0s;
}



.home .fil-box{top:100px;}


/* IL METODO AUTENTICO */
#servizi-metodo-autentico-section{
    position:relative;
}
#servizi-metodo-autentico-section:before{
    content: none;
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    width: 50vw;
    height: 100%;
    background-image:
        url("/wp-content/uploads/2026/05/filigrana.svg");
    background-repeat: no-repeat;
    background-position: center 300px;
    background-size: cover;
    pointer-events: none;
}

#servizi-metodo-autentico-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 650px;
    background-color: #e3edc6;
    clip-path: polygon(0 18.34%, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
}







/* CONTATTI */
/* ===== CONTENITORE FORM ===== */
.brand-form {
  background: #fff;
  border-radius: 28px;
  padding: 40px;
  max-width: 640px;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
  font-family: inherit;
}

/* ===== HEADER: TITOLO + ICONA ===== */
.brand-form .bf-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 0px;
}

.brand-form .bf-title {
    font-size: 34px;
    font-weight: 500;
    line-height: 50px;
    color: #1a1a1a;
    margin: 0;
}

.brand-form .bf-icon {
    width: 160px;
    height: auto;
    flex-shrink: 0;
    transform: translateY(-30px);
}

/* ===== RIGA A DUE COLONNE (nome/cognome) ===== */
.brand-form .bf-row {
  display: flex;
  gap: 16px;
}
.brand-form .bf-row > span {
  flex: 1;
}

.brand-form p{
    margin: 0;
}


.bf-row p{    display: flex;gap: 10px;}

@media (max-width:1024px){html{overflow-x:hidden;}}

@media (max-width:767px){
  .bf-row p{    display: flex;gap: 10px;flex-direction: column;}
  .bf-row p br{display:none;}
}
/* ===== INPUT E TEXTAREA ===== */
.brand-form input[type="text"],
.brand-form input[type="email"],
.brand-form input[type="tel"],
.brand-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #EA8B3E;
  border-radius: 16px;
  padding: 18px 12px;
  margin-bottom: 16px;
  font-size: 16px;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.brand-form textarea {
  height: 140px;
  resize: none;
}

.brand-form input::placeholder,
.brand-form textarea::placeholder {
  color: #9a9a9a;
}

.brand-form input:focus,
.brand-form textarea:focus {
  border-color: #d97a2a;
  box-shadow: 0 0 0 3px rgba(234,139,62,.15);
}

/* ===== CHECKBOX (privacy + newsletter) ===== */
.brand-form .bf-check {
  margin: 4px 0 10px;
}
.brand-form .bf-check .wpcf7-list-item {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-form .bf-check label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: #1a1a1a;
  cursor: pointer;
}
.brand-form .bf-check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #EA8B3E;
  cursor: pointer;
}
.brand-form .bf-check a {
  color: #1a1a1a;
  text-decoration: underline;
}

/* ===== BOTTONE INVIA ===== */
.brand-form .wpcf7-submit {
    display: block;
    margin-left: auto;
    margin-top: 20px;
    background: #EA8B3E;
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 10px 40px;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.brand-form .wpcf7-submit:hover {
  background: #d97a2a;
}
.brand-form .wpcf7-submit:active {
  transform: translateY(1px);
}

/* ===== RESPONSIVE (mobile) ===== */
@media (max-width: 560px) {
  .brand-form {
    padding: 24px;
    border-radius: 20px;
  }

  .brand-form .bf-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .brand-form .bf-title {
    font-size: 32px;
  }
  .brand-form .bf-icon {
    width: 90px;
    align-self: flex-end;
    transform: none;
  }

  .brand-form .bf-row {
    flex-direction: column;
    gap: 0;
  }
}


/* #formazione-slider-section-parent{
    position:relative;
}
#formazione-slider-section-parent:before {
    content: "";
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    width: 100vw;
    height: 100%;
    background-image: url("/wp-content/uploads/2026/08/filigrana-alyx_verde_chiaro.svg");
    background-position: center 300px;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
}
#formazione-slider-section-parent:after {
    content: "";
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    width: 100vw;
    height: 100%;
    background-image: url("/wp-content/uploads/2026/08/filigrana_alyx_piccoli_verde_chiaro.svg");
    background-position: center 300px;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
} */










.wpcf7 .cf7-lavora{
  background:#fff;
  border-radius:24px;
  padding:40px;
  max-width:900px;
  margin:0 auto;
  box-sizing:border-box;
}
.cf7-lavora p{margin:0;}
.cf7-lavora br{display:none;}

.cf7-row{display:flex;gap:28px;margin-bottom:24px;}
.cf7-col{flex:1 1 0;min-width:0;}
.cf7-row-upload{align-items:stretch;}
.cf7-lavora .wpcf7-form-control-wrap{display:block;width:100%;}

.cf7-lavora input[type=text],
.cf7-lavora input[type=tel],
.cf7-lavora input[type=email],
.cf7-lavora input[type=url],
.cf7-lavora input[type=date],
.cf7-lavora textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid #dcdcdc;
  border-radius:12px;
  padding:18px 20px;
  font-size:17px;
  line-height:1.3;
  color:#2b2b2b;
  background:#fff;
  box-shadow:none;
  -webkit-appearance:none;
}
.cf7-lavora textarea{min-height:140px;resize:vertical;margin-bottom:24px;}
.cf7-lavora ::placeholder{color:#6f6f6f;opacity:1;}
.cf7-lavora input:focus,
.cf7-lavora textarea:focus{border-color:#e8893c;outline:none;}

/* area upload */
.cf7-upload{
  position:relative;
  height:100%;
  min-height:145px;
  border:2px dashed #cfcfcf;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:20px;
  box-sizing:border-box;
}
.cf7-upload .wpcf7-form-control-wrap{position:absolute;top:0;left:0;right:0;bottom:0;}
.cf7-upload input[type=file]{
  width:100%;height:100%;
  opacity:0;cursor:pointer;
  border:0;padding:0;
}
.cf7-upload-text{pointer-events:none;color:#555;font-size:16px;}
.cf7-upload-text:before{
  content:"";
  display:block;
  width:26px;height:26px;
  margin:0 auto 12px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23444'%3E%3Cpath d='M12 2.5l5 5h-3.2v5.5h-3.6V7.5H7l5-5z'/%3E%3Cpath d='M3.5 14h17v4.5a2 2 0 0 1-2 2h-13a2 2 0 0 1-2-2V14z'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* privacy */
.cf7-privacy{margin:8px 0 28px;}
.cf7-privacy .wpcf7-list-item{margin:0;}
.cf7-privacy label{display:flex;align-items:center;gap:12px;font-size:17px;color:#2b2b2b;cursor:pointer;}
.cf7-privacy input[type=checkbox]{width:18px;height:18px;accent-color:#e8893c;margin:0;}
.cf7-privacy a{color:inherit;text-decoration:underline;}

/* bottone */
.cf7-lavora input[type=submit]{
  width:100%;
  background:#e8893c;
  color:#fff;
  border:0;
  border-radius:14px;
  padding:22px;
  font-size:18px;
  cursor:pointer;
  transition:background .2s;
}
.cf7-lavora input[type=submit]:hover{background:#d87a2c;}
.wpcf7-spinner{display:block;margin:12px auto 0;}


.cf7-lavora select {
    width: 100%;
    padding: 18px 20px; /* Adatta questo valore per matchare esattamente l'altezza dei tuoi input */
    border: 1px solid #dcdcdc; /* Colore del bordo grigio chiaro degli altri campi */
    border-radius: 12px; /* Curvatura degli angoli uguale agli altri campi */
    background-color: #ffffff;
    color: #666666; /* Colore del testo (placeholder) */
    font-family: inherit;
    font-size: inherit;
    box-sizing: border-box;
    /* Le regole seguenti rimuovono lo stile di default del browser e aggiungono una freccina personalizzata pulita */
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px top 50%;
    background-size: 12px auto;
    margin-bottom:20px !important;
}

/* Opzionale: per dare l'effetto focus uguale agli altri campi quando ci clicchi */
.cf7-lavora select:focus {
    outline: none;
    border-color: #999999; /* Inserisci il colore di focus che hai per gli input */
}

@media (max-width:640px){
  .wpcf7 .cf7-lavora{padding:24px;border-radius:18px;}
  .cf7-row{flex-direction:column;gap:0;margin-bottom:0;}
  .cf7-col{margin-bottom:20px;}
}

@media(max-width:767px){
  html,body{
    overflow-x: hidden;
  }
  #servizi-home-slider-section:before {
    top: -10%;
  }
  #recensioni-parent-section:before {
    top: -5%;
  }

  .elementor-sticky--active.elementor-sticky--effects .elementor-widget-theme-site-logo:after {
    transform: scale(0.9);
  }
}