/* 
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
*/

/* Add your custom styles here */

/*font size rem*/
html {
    font-size: 62.5%;
}

p, a {
    font-family: "Aktiv Grotesk", sans-serif;
}
.elementor-button {
    font-family: "Aktiv Grotesk", sans-serif!important;
}

.padding_section_200 {
    padding: 20rem 0;
}
.padding_section_100 {
    padding: 10rem 0;
}

/***** FONT SIZE ******/

.fontsize_20 > p {
    font-size: 2.0rem;
    line-height: 2.5rem;
}
.fontsize_30 > p, .h3_news h3 {
    font-size: 3.0rem;
    line-height: 2.5rem;
    font-family: "Cormorant", serif;
}
.fontsize_40 > p {
    font-size: 4.0rem;
    line-height: 3.5rem;
    font-family: "Cormorant", serif;
}
.fontsize_70 > p {
    font-size: 7.0rem;
    line-height: 8.0rem;
    font-family: "Cormorant", serif;
}
.fontsize_80 > p {
    font-size: 8.0rem;
    line-height: 9.0rem;
    font-family: "Cormorant", serif;
}

/**************ANIMAZIONI******************/

.elementor-kit-8 button:hover, .elementor-kit-8 input[type="button"]:hover, .elementor-kit-8 input[type="submit"]:hover, .elementor-kit-8 .elementor-button:hover {
    background-color: #3E0506;
}

/* Tutti i link nei widget Elementor, **esclusi i bottoni** */
.elementor-widget a:not(.elementor-button, .news_a_color) {
  position: relative;
  text-decoration: none;
  color: inherit;
}

.elementor-widget a:not(.elementor-button, .news_a_color)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: bottom left;
  transition: transform 0.3s ease;
}

.elementor-widget a:not(.elementor-button, .news_a_color):hover::after {
  transform: scaleX(1);
}


/**** DIVIDER ****/
.elementor-widget-divider {
    --divider-border-width: 9.5rem!important;
}

/****/

.img_home_under_banner {
    height: 9.4rem!important;
    width: 14rem;
    vertical-align: middle;
    display: inline-block;
    border-radius: 50%!important;
}

.scroll-radius-img {
  border-radius: 50%;
  transform: scale(0.5);
  transition: border-radius 0.15s linear, transform 0.15s linear;
  overflow: hidden;
  will-change: border-radius, transform;
}


.img-rotante {
    animation: rotazione-infinita 12s linear infinite;
    transform-origin: center center; /* Punto centrale di rotazione */
}

@keyframes rotazione-infinita {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.padding_bott_0 p {
    margin-block-end: 0!important;
}
/*------------------------- ACCORDION GRUPPO -------------------------*/

.accordion_gruppo .accordion-date {
    display: inline-block;
    font-size: 4rem;
    line-height: 2.2rem;
    color: var(--e-global-color-primary);
    width: 20rem;
}
.accordion_gruppo .accordion-title {
    font-size: 3rem;
    line-height: 2.2rem;
    color: var(--e-global-color-primary);
}
.accordion_gruppo .e-opened:after, .accordion_gruppo .e-closed:after {
    font-family: "Aktiv Grotesk", sans-serif;
    font-weight: bold;
    letter-spacing: 1.1px;
    color: var(--e-global-color-primary);
    font-size: 11px;
    line-height: 18px;
    visibility: visible;
}
.accordion_gruppo .e-opened:after {
    content: "CHIUDI";
}
.accordion_gruppo .e-closed:after {
    content: "SCOPRI";
}
.accordion_gruppo .e-opened, .accordion_gruppo .e-closed {
    visibility: hidden;
    position: relative;
}
.accordion_gruppo .e-n-accordion > .e-n-accordion-item:first-child > .e-n-accordion-item-title {
    border:unset!important;
}

/*------------------------- ACCORDION SOSTENIBILITA' -------------------------*/

.accordion_sost .accordion-n {
    display: inline-block;
    font-size: 12px;
    line-height: 2.2rem;
    color: var(--e-global-color-primary);
    border: 1px solid #5F2410;
    border-radius: 50%;
    font-family: "Aktiv Grotesk", sans-serif;
    font-weight: bold;
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
}
.accordion_sost .accordion-title {
    font-size: 2.5rem;
    line-height: 2.2rem;
    color: var(--e-global-color-primary);
}
.accordion_sost .e-opened:after, .accordion_sost .e-closed:after {
    font-family: "Aktiv Grotesk", sans-serif;
    font-weight: bold;
    letter-spacing: 1.1px;
    color: var(--e-global-color-primary);
    font-size: 11px;
    line-height: 18px;
    visibility: visible;
}
.accordion_sost .e-opened:after {
    content: "CHIUDI";
}
.accordion_sost .e-closed:after {
    content: "SCOPRI";
}
.accordion_sost .e-opened, .accordion_sost .e-closed {
    visibility: hidden;
    position: relative;
}
.accordion_sost .e-n-accordion > .e-n-accordion-item:first-child > .e-n-accordion-item-title {
    border:unset!important;
}
.accordion_sost .e-n-accordion-item-title-text {
    display: flex;
}


#form_contatti :is(input, textarea) {
    padding-left: 0!important;
}
/*------------------------- PRODOTTI INDEX -------------------------*/

/*------------------------- GRID IMMAGINI PRODOTTO -----------------------------*/

.index-prodotti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 4rem;
    column-gap: 2rem;
    padding: 10px;
}

.img-item {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.index-prodotti-item div {
    height: 100%;
    width: 100%;
}
.index-prodotti-item .index-prodotti-title {
    letter-spacing: 1.2px;
    color: var(--e-global-color-primary);
    font-size: 12px;
    line-height: 18px;
    font-family: "Aktiv Grotesk", sans-serif;
    text-transform: uppercase;
    margin-top: 10px;
    font-weight: bold;
}

/* Layout tipo collage (personalizzabile) */
.index-prodotti-item:nth-child(1)  { grid-area: 1 / 1 / 3 / 3; min-height: 34rem; }
.index-prodotti-item:nth-child(2)  { grid-area: 1 / 3 / 2 / 4; min-height: 16rem; }
.index-prodotti-item:nth-child(3)  { grid-area: 1 / 4 / 2 / 5; min-height: 16rem; }
.index-prodotti-item:nth-child(4)  { grid-area: 3 / 1 / 4 / 2; min-height: 16rem; }
.index-prodotti-item:nth-child(5)  { grid-area: 3 / 2 / 4 / 3; min-height: 16rem; }
.index-prodotti-item:nth-child(6)  { grid-area: 2 / 3 / 4 / 5; min-height: 34rem; }
.index-prodotti-item:nth-child(7)  { grid-area: 4 / 1 / 6 / 3; min-height: 34rem; }
.index-prodotti-item:nth-child(8)  { grid-area: 4 / 3 / 5 / 4; min-height: 16rem; }
.index-prodotti-item:nth-child(9)  { grid-area: 4 / 4 / 5 / 5; min-height: 16rem; }
.index-prodotti-item:nth-child(10) { grid-area: 6 / 1 / 7 / 2; min-height: 16rem; }
.index-prodotti-item:nth-child(11) { grid-area: 6 / 2 / 7 / 3; min-height: 16rem; }
.index-prodotti-item:nth-child(12) { grid-area: 5 / 3 / 7 / 5; min-height: 34rem; }


/*------------------------- Index Articoli -------------------------*/
.news_a_color {
    color: var(--e-global-color-primary)!important;
}
.news_a_color:hover {
    filter: grayscale(1);
}
.tag_news span {
    font-size: 11px;
    line-height: 18px;
    letter-spacing: 1.1px;
}
.tag_news a {
    font-size: 20px;
}
.tag_news span, .tag_news a {
    color: var(--e-global-color-primary);
    font-family: "Aktiv Grotesk", sans-serif!important;
    font-weight: bold!important;
    text-transform: uppercase;
}
/*
.griglia_loop_news .elementor-button-text {
    color: var(--e-global-color-secondary);
}*/

/*--------------------------Singola NEws-------------------------*/
.page-header {
    display:none;
}
.dot_data_news {
    font-size: 11px;
    color: var(--e-global-color-primary);
    font-family: "Aktiv Grotesk", sans-serif!important;
}
.dot_data_news:after, .dot_data_news:before {
    content: "•";
    color: var(--e-global-color-primary);
}

.single-post .post-tags {
    display: none;
}


/*---------------FOOTER -----------------*/
footer a {
    color: white;
}
footer a:hover {
    color: rgb(185, 185, 185)!important;
    text-decoration: none;
}

/*-------------FORM---------------*/

/* Stile campi CF7 */
.wpcf7 input, 
.wpcf7 textarea {
    background: transparent;         /* sfondo trasparente */ 
    border-color: var(--e-global-color-primary);
    border-width: 0px 0px 1px 0px;
    border-radius: 0px 0px 0px 0px;   /* solo bordo inferiore, colore di base */
    color: inherit;                   /* usa il colore del tema */
    font-family: "Roboto", Sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;                /* dimensione testo */
    padding: 8px 0;                   /* spazio interno verticale */
    box-sizing: border-box;
    line-height: 1.4;
    min-height: 40px;
    margin-bottom: 20px;
}

.wpcf7 input:not([type="submit"]), 
.wpcf7 textarea {
    width: 100%;                      /* larghezza completa per input e textarea */
}


/* Placeholder in maiuscolo */
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    text-transform: uppercase;
    color: inherit;                   /* colore tema */
    opacity: 0.7;
}

/* Rimuove outline focus e aggiunge effetto sul bordo inferiore */
.wpcf7 input:focus, 
.wpcf7 textarea:focus {
    outline: none;
    border-bottom-color: inherit;     /* colore tema in focus */
}

.wpcf7 textarea {
    height: 40px;
}

.wpcf7 input[type="submit"] {
    display: block;
    margin-left: auto;   /* spinge il pulsante a destra */
}

.wpcf7 .wpcf7-list-item {
    margin:0;
}
.wpcf7 input[type='checkbox'], .wpcf7 input[type="checkbox"]:checked {
    border: 2px solid #CCE3ED;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 4px;
    padding: 0;
    background-color: transparent;
    margin-bottom: 0;
}

.wpcf7 .priv_invia label {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wpcf7 .priv_invia label input {
    min-height: 20px!important;;
}



.img_home_under_banner,
.img-rotante {
    display: none;
}

/*-------MOBILE-------*/
@media (max-width: 767px) {

    .padding_section_100 {
        padding: 3rem 0;
    }
    .elementor-kit-8 h1 { 
        font-size: 4.5rem;
        line-height: 4.3rem;
    }
    .fontsize_20 > p {
        font-size: 1.5rem;
        line-height: 1.8rem;
    }
    .fontsize_30 > p, .h3_news h3 {
        font-size: 2.5rem;
        line-height: 2.4rem;
        font-family: "Cormorant", serif;
    }
    .fontsize_40 > p {
        font-size: 3.0rem;
        line-height: 3.0rem;
        font-family: "Cormorant", serif;
    }
    .fontsize_70 > p {
        font-size: 3.5rem;
        line-height: 3.5rem;
        font-family: "Cormorant", serif;
    }
    .fontsize_80 > p {
        font-size: 3rem;
        line-height: 3.8rem;
        font-family: "Cormorant", serif;
    }
    .img_home_under_banner {
        height: 3.3rem!important;
        width: 4.9rem;
    }

    .elementor-widget-divider {
        --divider-border-width: 4.5rem!important;
    }

    /*------------------------- GRID IMMAGINI PRODOTTO -----------------------------*/

    .index-prodotti-grid {
        padding: 20px;
    }
    .index-prodotti-grid {
        row-gap: 6rem;
        letter-spacing: 1px;

    }
    .index-prodotti-item .index-prodotti-title {
        font-size: 10px;
    }
    .index-prodotti-item:nth-child(3n+1) { grid-area: span 2 / 1 / auto / span 4; min-height: 24rem; }
    .index-prodotti-item:nth-child(3n+2) { grid-area: auto / 1 / auto / span 2; min-height: 12rem; }
    .index-prodotti-item:nth-child(3n+3) { grid-area: auto / 3 / auto / span 2; min-height: 12rem; }

    /*------------------------- ACCORDION GRUPPO -------------------------*/

    .accordion_gruppo .e-n-accordion-item-title-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .accordion_gruppo .accordion-date {
        width: auto;
        font-size: 35px;
    }
    .accordion_gruppo .accordion-title {
        text-align: center;
        font-size: 25px;
    }

    .accordion_gruppo .e-n-accordion-item-title {
        flex-direction: column;
        gap: 1rem;
    }
    .accordion_gruppo .e-n-accordion > .e-n-accordion-item:first-child > .e-n-accordion-item-title {
        border:unset!important;
    }
    .accordion_gruppo .e-opened:after, .accordion_gruppo .e-closed:after {
        letter-spacing: 1px;
        font-size: 10px;
    }

    /*------------------------- ACCORDION SOSTENIBILITA' -------------------------*/


    .accordion_sost .e-n-accordion-item-title-icon {
        width: 100%;
    }
    .accordion_sost .e-opened:after, .accordion_sost .e-closed:after {
        letter-spacing: 1px;
        font-size: 10px;
        margin-left: 70px;
        margin-top: 14px;
    }

    .accordion_sost .e-n-accordion-item-title {
        flex-direction: column;
    }

    /*------------------------- Index Articoli -------------------------*/

    .tag_news span {
        letter-spacing: 1px;
    }

    .tag_news a {
        font-size: 10px;
    }
}