/*
 Theme Name:   Industrium Child
 Description:  Industrium Child Theme
 Theme URI:	   https://demo.artureanec.com/themes/industrium
 Author:       Artureanec
 Author URI:   https://demo.artureanec.com
 Template:     industrium
 Version:      1.0.0
 License: GNU  General Public License version 3.0
 License URI:  http://www.gnu.org/licenses/gpl-3.0.html
 Text Domain:  industrium-child
*/

/* Manrope in locale (latin, variabile 400-800): sostituisce Google Fonts. */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../../uploads/fonts/manrope-latin-var.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =Theme customization starts here
------------------------------------------------------- */

/* Tre Esse: logo (immagine + nome azienda). Il file logo è 1020x353. */
.tre-esse-logo .logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
}
.tre-esse-logo img {
    width: auto;
    height: 52px;
    max-width: none;
}
.tre-esse-logo .logo-site-name,
.logo-link .logo-site-name,
.header .tre-esse-logo .logo-link .logo-site-name,
.mobile-header .tre-esse-logo .logo-link .logo-site-name {
    display: block;
    font-weight: 800;
    font-size: 1em; /* size set on .logo-text, so name and tagline scale together */
    line-height: 1.1;
    letter-spacing: 0.055em;
    margin-right: -0.055em; /* drop the tracking after the last letter, so both lines end on the glyph */
    color: #a0a0a4; /* grigio del logo */
    white-space: nowrap;
    text-transform: none;
}
.tre-esse-red {
    color: #ec1f27;
}
.sticky-header .tre-esse-logo img {
    height: 40px;
}
.footer-logo img,
.side-panel-logo img {
    width: auto;
    height: auto;
    max-width: 200px;
}
@media (max-width: 767px) {
    .tre-esse-logo img {
        height: 40px;
    }
}

/* Riquadri prodotto in home (fondo scuro): testo leggibile. */
.industrium-icon-box .icon-box-title,
.industrium-icon-box .icon-box-title a {
    color: inherit;
}

/* Pulsanti affiancati nelle pagine: il tema dà margin-bottom al primo e li sfalsa. */
.wp-block-buttons .wp-block-button {
    margin: 0;
}
.wp-block-buttons {
    gap: 12px;
}

/* Numero del giorno nei box data: rosso su grigio chiaro (contrasto 3,7:1, il grigio logo sul rosso era illeggibile). */
.post-meta-header .post-meta-item.post-meta-item-date .post-meta-item-day {
    color: #ec1f27;
    background-color: #ececed;
}

/* Voci con sottomenu: una piccola freccia al posto del puntino del tema. */
.header .main-menu > li.menu-item-has-children > a::after {
    width: 6px;
    height: 6px;
    background: none !important;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -5px;
    right: 2px; /* dentro il link: il link ha overflow:hidden e tagliava la punta */
}

/* Guide senza immagine in evidenza: il box data non va sovrapposto (veniva tagliato) e l'autore non serve. */
.grid-blog-item-wrapper .blog-item .post-media-wrapper:not(:has(img)) {
    display: none;
}
.grid-blog-item-wrapper .blog-item .post-media-wrapper:not(:has(img)) + .post-meta-header .post-meta-item-date {
    margin-top: 0 !important;
}
.grid-blog-item-wrapper .post-meta-item-author,
.single-post .post-meta-item-author {
    display: none !important;
}

/* Banner cookie (Complianz): colori e misure Tre Esse. "Rifiuta" ha lo stesso peso di "Accetta". */
.cmplz-cookiebanner,
#cmplz-manage-consent {
    --cmplz_text_color: #23272b;
    --cmplz_hyperlink_color: #ec1f27;
    --cmplz_text_font_size: 13px;
    --cmplz_link_font_size: 13px;
    --cmplz_category_body_font_size: 13px;
    --cmplz_banner_border_radius: 4px;
    --cmplz_button_border_radius: 4px;
    --cmplz_button_font_size: 14px;
    --cmplz_button_accept_background_color: #ec1f27;
    --cmplz_button_accept_border_color: #ec1f27;
    --cmplz_button_accept_text_color: #ffffff;
    --cmplz_button_deny_background_color: #ffffff;
    --cmplz_button_deny_border_color: #ec1f27;
    --cmplz_button_deny_text_color: #ec1f27;
    --cmplz_button_settings_background_color: #ffffff;
    --cmplz_button_settings_border_color: #23272b;
    --cmplz_button_settings_text_color: #23272b;
    --cmplz_slider_active_color: #ec1f27;
    --cmplz_slider_inactive_color: #6b6f74;
    --cmplz_category_header_always_active_color: #1e7a34;
}
/* Il tema mette una freccia e un rientro davanti a ogni voce di elenco: non nel banner cookie. */
.cmplz-cookiebanner li {
    padding-left: 0;
}
.cmplz-cookiebanner li::before {
    display: none;
}
/* Menu mobile: gli orari con lo stesso stile di telefono ed email; etichette in grigio più scuro (contrasto 5:1). */
.mobile-header-menu-container .header-mobile-additional-text {
    padding-left: 30px;
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
}
.mobile-header-menu-container .header-mobile-additional-text .additional-text-title {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.8;
    text-transform: uppercase;
}
.mobile-header-menu-container .header-mobile-additional-text .additional-text-title,
.mobile-header-menu-container .header-mobile-contacts .contact-item .contact-item-title {
    color: #6b6f74;
}
/* Briciole di pane su una riga: i titoli lunghi delle guide finiscono con "..." invece di essere tagliati. */
.page-title-container .breadcrumbs {
    text-overflow: ellipsis;
}
/* Link legali nel piè di pagina: area di tocco più comoda da smartphone. */
.footer-copyrights-container a {
    display: inline-block;
    padding: 6px 0;
}
/* Gallerie lavori: griglia uniforme 4:3, anche con foto verticali o righe incomplete. */
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
    flex-grow: 0;
    aspect-ratio: 4 / 3;
}
/* Pulsante "ingrandisci" del lightbox: il tema lo stilizza come un bottone normale (posizione e freccia). */
.body-container .wp-lightbox-container button.lightbox-trigger {
    position: absolute;
    width: 20px;
    height: 20px;
    min-width: 0;
    padding: 0;
    background-image: none;
}
.body-container .wp-lightbox-container button.lightbox-trigger::before,
.body-container .wp-lightbox-container button.lightbox-trigger::after {
    display: none;
}
/* Cookie policy di Complianz: stessa tipografia delle altre pagine (il plugin impone testo a 14px e titoli a 22px). */
#cmplz-document {
    max-width: none;
    font-size: inherit;
}
#cmplz-document p,
#cmplz-document li,
#cmplz-document td {
    font-size: inherit;
}
#cmplz-document a {
    text-decoration: none;
}
#cmplz-document ul {
    list-style: none;
    margin-left: 0;
}
#cmplz-document > h2,
#cmplz-document > h3 {
    padding-bottom: 0;
    margin: 50px 0 0.7143em;
}
#cmplz-document > h2:first-child {
    margin-top: 0;
}
#cmplz-document > h2 {
    font-size: 28px;
    line-height: 1.4737em;
}
#cmplz-document > h3 {
    margin-top: 30px;
    font-size: 22px;
    line-height: 1.4737em;
}
@media only screen and (min-width: 576px) {
    #cmplz-document > h2,
    #cmplz-document > h3 {
        margin-bottom: 0.5em;
    }
}
@media only screen and (min-width: 768px) {
    #cmplz-document > h2 {
        font-size: 35px;
        line-height: 1.2em;
    }
    #cmplz-document > h3 {
        font-size: 30px;
        line-height: 1.3em;
    }
}
@media only screen and (min-width: 992px) {
    #cmplz-document > h2 {
        font-size: 45px;
    }
}
/* Gestione consenso nella cookie policy: niente freccia rossa del tema sui bottoni, chevron di Complianz visibile. */
.body-container #cmplz-manage-consent-container button {
    background-image: none;
}
.body-container #cmplz-manage-consent-container button::before,
.body-container #cmplz-manage-consent-container button::after {
    display: none;
}
#cmplz-manage-consent-container .cmplz-category-toggle svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
/* Dati societari nel footer: righe bilanciate (si va a capo solo tra una voce e l'altra, vedi il plugin). */
.footer-copyrights-container {
    text-wrap: balance;
}
/* Hero della home leggermente ingrandita: lo sfondo passa su un livello zoomato, con lo stesso colore e fusione del tema. */
.home .industrium-content-slider-widget .owl-carousel.owl-theme .slider-item {
    position: relative;
    overflow: hidden;
    background-size: 0 0;
}
.home .industrium-content-slider-widget .owl-carousel.owl-theme .slider-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: inherit;
    background-blend-mode: inherit;
    background-image: inherit;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 1;
    transform: scale(1.15);
    pointer-events: none;
}
.home .industrium-content-slider-widget .owl-carousel.owl-theme .slider-item > * {
    z-index: 1;
}
/* Etichette in grassetto all'inizio delle voci di elenco (es. "Acciaio zincato:"): rosso del marchio su tutte le pagine. */
.content-wrapper .wp-block-list li > strong:first-child {
    color: #ec1f27;
}

/*
 * Header logo: tagline under the company name, both lines the same width (as in the company signature).
 * Sizes live on .logo-text and the two lines use em, so the proportions hold at every size;
 * the tagline ratio matches the name width in Manrope, and justification absorbs the sub-pixel rest.
 */
.tre-esse-logo .logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-size: 22px;
}
.tre-esse-logo .logo-tagline {
    display: block;
    align-self: stretch;
    margin-top: 0.45em;
    font-size: 0.477em;
    font-weight: 800; /* same weight and grey as the company name, so the two lines read as one lockup */
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: justify;
    text-align-last: justify;
    color: #a0a0a4;
}
/* Compact size for the desktop sticky header only: the mobile headers keep the mobile size when scrolling. */
.header.sticky-header .tre-esse-logo .logo-text {
    font-size: 18px;
}
@media (max-width: 767px) {
    .tre-esse-logo .logo-text {
        font-size: 17px;
    }
}
@media (max-width: 420px) {
    .tre-esse-logo .logo-text {
        font-size: 16px;
    }
}

/* Footer bottom: smaller centred logo, company details centred underneath (one line where it fits).
   Scoped under .footer to match the theme's own footer selectors, which otherwise win at desktop width. */
.footer .footer-section-copyright .footer-columns-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.footer .footer-section-copyright .footer-columns-row > .footer-column {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: center;
}
.footer-section-copyright .footer-logo-container img {
    width: auto;
    height: 56px;
    max-width: none;
}
.footer-section-copyright .footer-copyrights-container {
    font-size: 13px;
}

/* Footer contacts: icon before each heading (decorative, red mask so it follows the brand colour). */
.tre-esse-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tre-esse-icon::before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background-color: #ec1f27;
    -webkit-mask: var(--tre-esse-icon) center / contain no-repeat;
    mask: var(--tre-esse-icon) center / contain no-repeat;
}
.tre-esse-icon--pin {
    --tre-esse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.tre-esse-icon--phone {
    --tre-esse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}
.tre-esse-icon--mail {
    --tre-esse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}
.tre-esse-icon--clock {
    --tre-esse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
}

/* Home icons. Font Awesome Free 5.15.4 solid icons (road, grip-lines, mountain, bicycle, tools, plus, minus): CC BY 4.0, https://fontawesome.com/license/free.
   Helmet, drill, bricks and laptop: Industrium theme icons, as on the previous home. Used as masks, so the colour comes from CSS. */
.tre-esse-icon--road {
    --tre-esse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M573.19 402.67l-139.79-320C428.43 71.29 417.6 64 405.68 64h-97.59l2.45 23.16c.5 4.72-3.21 8.84-7.96 8.84h-29.16c-4.75 0-8.46-4.12-7.96-8.84L267.91 64h-97.59c-11.93 0-22.76 7.29-27.73 18.67L2.8 402.67C-6.45 423.86 8.31 448 30.54 448h196.84l10.31-97.68c.86-8.14 7.72-14.32 15.91-14.32h68.8c8.19 0 15.05 6.18 15.91 14.32L348.62 448h196.84c22.23 0 36.99-24.14 27.73-45.33zM260.4 135.16a8 8 0 0 1 7.96-7.16h39.29c4.09 0 7.53 3.09 7.96 7.16l4.6 43.58c.75 7.09-4.81 13.26-11.93 13.26h-40.54c-7.13 0-12.68-6.17-11.93-13.26l4.59-43.58zM315.64 304h-55.29c-9.5 0-16.91-8.23-15.91-17.68l5.07-48c.86-8.14 7.72-14.32 15.91-14.32h45.15c8.19 0 15.05 6.18 15.91 14.32l5.07 48c1 9.45-6.41 17.68-15.91 17.68z'/%3E%3C/svg%3E");
}
.tre-esse-icon--grip-lines {
    --tre-esse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M496 288H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-128H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z'/%3E%3C/svg%3E");
}
.tre-esse-icon--mountain {
    --tre-esse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath d='M634.92 462.7l-288-448C341.03 5.54 330.89 0 320 0s-21.03 5.54-26.92 14.7l-288 448a32.001 32.001 0 0 0-1.17 32.64A32.004 32.004 0 0 0 32 512h576c11.71 0 22.48-6.39 28.09-16.67a31.983 31.983 0 0 0-1.17-32.63zM320 91.18L405.39 224H320l-64 64-38.06-38.06L320 91.18z'/%3E%3C/svg%3E");
}
.tre-esse-icon--bicycle {
    --tre-esse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath d='M512.509 192.001c-16.373-.064-32.03 2.955-46.436 8.495l-77.68-125.153A24 24 0 0 0 368.001 64h-64c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h50.649l14.896 24H256.002v-16c0-8.837-7.163-16-16-16h-87.459c-13.441 0-24.777 10.999-24.536 24.437.232 13.044 10.876 23.563 23.995 23.563h48.726l-29.417 47.52c-13.433-4.83-27.904-7.483-42.992-7.52C58.094 191.83.412 249.012.002 319.236-.413 390.279 57.055 448 128.002 448c59.642 0 109.758-40.793 123.967-96h52.033a24 24 0 0 0 20.406-11.367L410.37 201.77l14.938 24.067c-25.455 23.448-41.385 57.081-41.307 94.437.145 68.833 57.899 127.051 126.729 127.719 70.606.685 128.181-55.803 129.255-125.996 1.086-70.941-56.526-129.72-127.476-129.996zM186.75 265.772c9.727 10.529 16.673 23.661 19.642 38.228h-43.306l23.664-38.228zM128.002 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c5.869 0 11.586.653 17.099 1.859l-45.505 73.509C89.715 331.327 101.213 352 120.002 352h81.3c-12.37 28.225-40.562 48-73.3 48zm162.63-96h-35.624c-3.96-31.756-19.556-59.894-42.383-80.026L237.371 184h127.547l-74.286 120zm217.057 95.886c-41.036-2.165-74.049-35.692-75.627-76.755-.812-21.121 6.633-40.518 19.335-55.263l44.433 71.586c4.66 7.508 14.524 9.816 22.032 5.156l13.594-8.437c7.508-4.66 9.817-14.524 5.156-22.032l-44.468-71.643a79.901 79.901 0 0 1 19.858-2.497c44.112 0 80 35.888 80 80-.001 45.54-38.252 82.316-84.313 79.885z'/%3E%3C/svg%3E");
}
.tre-esse-icon--tools {
    --tre-esse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z'/%3E%3C/svg%3E");
}
.tre-esse-icon--helmet {
    --tre-esse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80.1 117.3'%3E%3Cpath d='M40.1,90.9c-16.2,0-29.3-13.2-29.3-29.3c0-3,0.5-6,1.4-8.9l3.8,1.2c-0.8,2.5-1.2,5.1-1.2,7.7 c0,14,11.4,25.3,25.3,25.3s25.3-11.4,25.3-25.3c0-2.6-0.4-5.2-1.2-7.7l3.8-1.2c0.9,2.9,1.4,5.9,1.4,8.9 C69.4,77.7,56.2,90.9,40.1,90.9z'/%3E%3Cpath d='M4,117.3H0c0-9.9,8-17.9,17.9-17.9h22.2v4H17.9C10.2,103.4,4,109.7,4,117.3z'/%3E%3Cpath d='M80.1,117.3h-4c0-7.7-6.2-13.9-13.9-13.9H40.1v-4h22.2C72.1,99.4,80.1,107.5,80.1,117.3z'/%3E%3Cpath d='M78.1,55.3H2c-1.1,0-2-0.9-2-2v-9.7c0-0.8,0.5-1.5,1.2-1.8l4.2-1.9C4.9,34,4.9,12.9,24.7,6.7 c0.2-0.1,0.4-0.1,0.6-0.1h4.6v4h-4.3C6.2,16.9,9.4,40.5,9.4,40.8c0.1,0.9-0.3,1.7-1.1,2.1l-4.3,2v6.4h72.1v-6.4l-4.3-2 c-0.8-0.4-1.3-1.2-1.1-2.1c0.1-1,3.2-23.9-16.1-30.2h-4.3v-4h4.6c0.2,0,0.4,0,0.6,0.1C75.2,12.9,75.2,34,74.8,39.8l4.2,1.9 c0.7,0.3,1.2,1,1.2,1.8v9.7C80.1,54.4,79.2,55.3,78.1,55.3z'/%3E%3Cpath d='M52.2,19.2h-4V4H31.9v15.2h-4V2c0-1.1,0.9-2,2-2h20.3c1.1,0,2,0.9,2,2V19.2z'/%3E%3C/svg%3E");
}
.tre-esse-icon--drill {
    --tre-esse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 113 111.7'%3E%3Cpath d='M70.2,56.4H42.8c-3.2,0-5.9-2.2-6.2-5l-2.4-19.9h-8.4c-1.1,0-2-0.9-2-2V2c0-1.1,0.9-2,2-2h61.4 c1.1,0,2,0.9,2,2v27.5c0,1.1-0.9,2-2,2h-8.4l-2.4,19.9C76.1,54.2,73.4,56.4,70.2,56.4z M27.8,27.5H36c1,0,1.9,0.8,2,1.8 l2.6,21.6c0.1,0.8,1.1,1.5,2.2,1.5h27.5c1.1,0,2.1-0.7,2.2-1.5L75,29.3c0.1-1,1-1.8,2-1.8h8.2V4H27.8V27.5z'/%3E%3Cpath d='M61.7,74.2H51.3c-3.2,0-5.8-2.4-5.8-5.2V54.4h4v14.5c0,0.6,0.8,1.2,1.8,1.2h10.4c1.1,0,1.8-0.7,1.8-1.2 V54.4h4v14.5C67.5,71.8,64.9,74.2,61.7,74.2z'/%3E%3Cpath d='M56.5,111.7L56.5,111.7c-0.6,0-1.2-0.3-1.6-0.8l-5.6-7.3c-0.3-0.3-0.4-0.8-0.4-1.2V72.2c0-1.1,0.9-2,2-2 h11.2c1.1,0,2,0.9,2,2v30.2c0,0.4-0.1,0.9-0.4,1.2l-5.6,7.3C57.7,111.4,57.1,111.7,56.5,111.7z M52.9,101.7l3.6,4.7l3.6-4.7 V74.2h-7.2V101.7z'/%3E%3Cpath d='M25.8,20.9H2c-1.1,0-2-0.9-2-2V8.4c0-1.1,0.9-2,2-2h23.8c1.1,0,2,0.9,2,2v10.5C27.8,20,26.9,20.9,25.8,20.9z M4,16.9h19.8v-6.5H4V16.9z'/%3E%3Cpath d='M111,20.9H87.2c-1.1,0-2-0.9-2-2V8.4c0-1.1,0.9-2,2-2H111c1.1,0,2,0.9,2,2v10.5C113,20,112.1,20.9,111,20.9z M89.2,16.9H109v-6.5H89.2V16.9z'/%3E%3Crect x='36' y='27.5' width='27.3' height='4'/%3E%3Crect x='31.6' y='86.3' transform='matrix(0.7071 -0.7071 0.7071 0.7071 -56.7067 51.294)' width='4' height='15.7'/%3E%3Crect x='24.1' y='101.4' transform='matrix(0.3812 -0.9245 0.9245 0.3812 -81.6118 89.5167)' width='4' height='8.7'/%3E%3Crect x='72.1' y='92.1' transform='matrix(0.7071 -0.7071 0.7071 0.7071 -43.1105 84.1156)' width='15.7' height='4'/%3E%3Crect x='83.1' y='103.7' transform='matrix(0.9244 -0.3814 0.3814 0.9244 -33.7096 41.3574)' width='8.7' height='4'/%3E%3C/svg%3E");
}
.tre-esse-icon--bricks {
    --tre-esse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 116.8 86.3'%3E%3Cpath d='M86.6,86.3H85c-0.5,0-1-0.2-1.4-0.6c-0.4-0.4-0.6-0.9-0.6-1.4c0-2.2-7.2-12.9-15.8-18.9 c-0.7-0.5-1-1.4-0.8-2.2c0.3-0.8,1-1.4,1.9-1.4h18.2c1.1,0,2,0.9,2,2v20.6C88.6,85.4,87.7,86.3,86.6,86.3z M74,65.7 c4.1,3.8,8.1,8.6,10.6,12.6V65.7H74z'/%3E%3Cpath d='M114.8,86.3H86.6c-1.1,0-2-0.9-2-2V63.7c0-1.1,0.9-2,2-2h28.2c1.1,0,2,0.9,2,2v20.6 C116.8,85.4,115.9,86.3,114.8,86.3z M88.6,82.3h24.2V65.7H88.6V82.3z'/%3E%3Cpath d='M30.2,45.2H2c-1.1,0-2-0.9-2-2V22.6c0-1.1,0.9-2,2-2h28.2c1.1,0,2,0.9,2,2v20.6 C32.2,44.3,31.3,45.2,30.2,45.2z M4,41.2h24.2V24.6H4V41.2z'/%3E%3Cpath d='M58.4,45.2H30.2c-1.1,0-2-0.9-2-2V22.6c0-1.1,0.9-2,2-2h28.2c1.1,0,2,0.9,2,2v20.6 C60.4,44.3,59.5,45.2,58.4,45.2z M32.2,41.2h24.2V24.6H32.2V41.2z'/%3E%3Cpath d='M86.6,45.2H58.4c-1.1,0-2-0.9-2-2V22.6c0-1.1,0.9-2,2-2h28.2c1.1,0,2,0.9,2,2v20.6 C88.6,44.3,87.7,45.2,86.6,45.2z M60.4,41.2h24.2V24.6H60.4V41.2z'/%3E%3Cpath d='M114.8,45.2H86.6c-1.1,0-2-0.9-2-2V22.6c0-1.1,0.9-2,2-2h28.2c1.1,0,2,0.9,2,2v20.6 C116.8,44.3,115.9,45.2,114.8,45.2z M88.6,41.2h24.2V24.6H88.6V41.2z'/%3E%3Cpath d='M100.7,65.7H72.5c-1.1,0-2-0.9-2-2V43.2c0-1.1,0.9-2,2-2h28.2c1.1,0,2,0.9,2,2v20.6 C102.7,64.8,101.8,65.7,100.7,65.7z M74.5,61.7h24.2V45.2H74.5V61.7z'/%3E%3Cpath d='M72.5,65.7h-4.1c-0.4,0-0.8-0.1-1.1-0.4c-3.4-2.3-6.4-3.5-8.6-3.2c-5.4,0.5-10.4-0.3-15.1-2.6 c-0.7-0.3-1.1-1-1.1-1.8V43.1c0-1.1,0.9-2,2-2h28.2c1.1,0,2,0.9,2,2v20.6C74.5,64.8,73.6,65.7,72.5,65.7z M69,61.7h1.5V45.1H46.3 v11.3c3.8,1.6,7.6,2.1,11.9,1.7C61.3,57.8,65,59.1,69,61.7z'/%3E%3Cpath d='M86.6,24.6H58.4c-1.1,0-2-0.9-2-2V2c0-1.1,0.9-2,2-2h28.2c1.1,0,2,0.9,2,2v20.6 C88.6,23.7,87.7,24.6,86.6,24.6z M60.4,20.6h24.2V4H60.4V20.6z'/%3E%3Cpath d='M58.4,24.6H30.2c-1.1,0-2-0.9-2-2V2c0-1.1,0.9-2,2-2h28.2c1.1,0,2,0.9,2,2v20.6 C60.4,23.7,59.5,24.6,58.4,24.6z M32.2,20.6h24.2V4H32.2V20.6z'/%3E%3Cpath d='M44.3,59.7c-0.3,0-0.6-0.1-0.9-0.2c-4.5-2.1-8.4-5.3-11.4-7.9c-6.7-5.8-16-6.5-16.1-6.5 c-1.1-0.1-1.9-1-1.9-2.1c0-1.1,0.9-1.9,2-1.9h28.2c1.1,0,2,0.9,2,2v14.6c0,0.7-0.4,1.3-0.9,1.7C45,59.6,44.7,59.7,44.3,59.7z M29.6,45.1c1.7,0.9,3.5,2.1,5.1,3.5c2.1,1.8,4.7,4,7.6,5.7v-9.2H29.6z'/%3E%3Cpath d='M85,86.3H2c-1.1,0-2-0.9-2-2V63.7c0-1.1,0.9-2,2-2h12.1V43.1c0-0.6,0.2-1.1,0.6-1.5c0.4-0.4,0.9-0.6,1.5-0.5 c0.4,0,10.8,0.8,18.5,7.5c2.7,2.4,6.4,5.4,10.5,7.3c4.2,2,8.3,2.7,13.1,2.2c3.3-0.3,7.1,1,11.3,3.9c8,5.6,17.5,17.6,17.5,22.2 C86.9,85.4,86,86.3,85,86.3z M4,82.3h78.3c-2-4-8-12.1-15.1-16.9c-3.4-2.3-6.4-3.5-8.6-3.2c-5.4,0.5-10.4-0.3-15.1-2.6 c-4.5-2.1-8.4-5.3-11.4-7.9c-4.7-4.1-10.8-5.7-14-6.2v18.3c0,1.1-0.9,2-2,2H4V82.3z'/%3E%3C/svg%3E");
}
.tre-esse-icon--laptop {
    --tre-esse-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 129 87.3'%3E%3Cpath d='M89.1,58.6l-3.4-2.1c1.3-2.2,2.3-4.6,2.9-7.1c0.2-0.9,1-1.5,1.9-1.5h5.1v-8.6h-5.1c-0.9,0-1.7-0.6-1.9-1.5 c-0.6-2.5-1.6-4.9-2.9-7.1c-0.5-0.8-0.4-1.8,0.3-2.5l3.6-3.6l-6.1-6.1l-3.6,3.6c-0.7,0.7-1.7,0.8-2.5,0.3 c-2.2-1.3-4.6-2.3-7.1-2.9c-0.9-0.2-1.5-1-1.5-1.9v-5.1h-8.6v5.1c0,0.9-0.6,1.7-1.5,1.9c-2.5,0.6-4.9,1.6-7.1,2.9 c-0.8,0.5-1.8,0.4-2.5-0.3l-3.6-3.6l-6.1,6.1l3.6,3.6c0.7,0.7,0.8,1.7,0.3,2.5c-1.3,2.2-2.3,4.6-2.9,7.1c-0.2,0.9-1,1.5-1.9,1.5 h-5.1V48h5.1c0.9,0,1.7,0.6,1.9,1.5c0.6,2.5,1.6,4.9,2.9,7.1l-3.4,2.1c-1.3-2.1-2.3-4.3-3-6.7h-5.6c-1.1,0-2-0.9-2-2V37.4 c0-1.1,0.9-2,2-2H37c0.6-1.8,1.3-3.6,2.2-5.3l-4-4c-0.8-0.8-0.8-2,0-2.8l8.9-8.9c0.7-0.8,2.1-0.8,2.8,0l4,4 c1.7-0.9,3.5-1.6,5.3-2.2v-5.6c0-1.1,0.9-2,2-2h12.6c1.1,0,2,0.9,2,2v5.6c1.8,0.6,3.6,1.3,5.3,2.2l4-4c0.4-0.4,0.9-0.6,1.4-0.6 l0,0c0.5,0,1,0.2,1.4,0.6l8.9,8.9c0.8,0.8,0.8,2,0,2.8l-4,4c0.9,1.7,1.6,3.5,2.2,5.3h5.6c1.1,0,2,0.9,2,2V50c0,1.1-0.9,2-2,2 h-5.6C91.3,54.3,90.3,56.6,89.1,58.6z'/%3E%3Cpath d='M64.5,58c-7.9,0-14.3-6.4-14.3-14.3c0-7.9,6.4-14.3,14.3-14.3c7.9,0,14.3,6.4,14.3,14.3 C78.8,51.6,72.4,58,64.5,58z M64.5,33.3c-5.7,0-10.3,4.6-10.3,10.3c0,5.7,4.6,10.3,10.3,10.3c5.7,0,10.3-4.6,10.3-10.3 C74.8,38,70.2,33.3,64.5,33.3z'/%3E%3Cpath d='M110.3,57.6h-4V7c0-1.7-1.3-3-3-3H25.8c-1.7,0-3,1.3-3,3v50.6h-4V7c0-3.9,3.1-7,7-7h77.5c3.9,0,7,3.1,7,7 V57.6z'/%3E%3Cpath d='M127,87.3H2c-0.8,0-1.5-0.4-1.8-1.1C-0.1,85.5,0,84.6,0.5,84l18.8-22.7c0.4-0.5,0.9-0.7,1.5-0.7h87.5 c0.6,0,1.2,0.3,1.5,0.7L128.5,84c0.5,0.6,0.6,1.4,0.3,2.1C128.5,86.9,127.8,87.3,127,87.3z M6.3,83.3h116.5l-15.4-18.7H21.7 L6.3,83.3z'/%3E%3Cpath d='M110.3,57.6h-4V7c0-1.7-1.3-3-3-3H25.8c-1.7,0-3,1.3-3,3v50.6h-4V7c0-3.9,3.1-7,7-7h77.5c3.9,0,7,3.1,7,7 V57.6z'/%3E%3Cpath d='M127,87.3H2c-0.8,0-1.5-0.4-1.8-1.1C-0.1,85.5,0,84.6,0.5,84l18.8-22.7c0.4-0.5,0.9-0.7,1.5-0.7h87.5 c0.6,0,1.2,0.3,1.5,0.7L128.5,84c0.5,0.6,0.6,1.4,0.3,2.1C128.5,86.9,127.8,87.3,127,87.3z M6.3,83.3h116.5l-15.4-18.7H21.7 L6.3,83.3z'/%3E%3C/svg%3E");
}
.tre-home-clients {
    --tre-home-icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/%3E%3C/svg%3E");
    --tre-home-icon-minus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Home page built with core blocks (replaces the Elementor home).
   Every section is a Group with the "tre-home" class; text, links and images
   stay editable in the block editor, the look comes from here.
   Colours and sizes match the previous Industrium/Elementor home.
   Selectors start with :root to outrank the theme's generic content rules
   (e.g. ".content-wrapper a", "p", "ul > li") without !important.
   ========================================================================== */

/* Full-width page: the theme content wrapper is a centred 1420px box, the home sections span the viewport. */
.content-wrapper:has(.tre-home) {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
.content-wrapper:has(.tre-home) .content,
.content-wrapper:has(.tre-home) .content-inner {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

:root .tre-home {
    --tre-home-dark: #23272b;
    --tre-home-red: #ec1f27;
    --tre-home-text: #4a5257;
    --tre-home-muted: #8a8f94;
    --tre-home-light: #eceeef;
    --tre-home-gutter: max(40px, calc((100% - 1140px) / 2));
    position: relative;
    margin: 0;
    color: var(--tre-home-text);
}
:root .tre-home.tre-home-reasons-section,
:root .tre-home.tre-home-clients,
:root .tre-home.tre-home-process {
    margin-top: 150px;
}
:root .tre-home__inner {
    padding-left: var(--tre-home-gutter);
    padding-right: var(--tre-home-gutter);
}
:root .tre-home :where(p, figure, li) {
    margin: 0;
}
/* Headings: the theme adds margins with "body .content-wrapper h3:not(:first-child)"; reset them here. */
:root .tre-home :is(.wp-block-heading, .wp-block-post-title, .wp-block-accordion-heading) {
    margin-top: 0;
    margin-bottom: 0;
}
/* Classic themes wrap Group content in an inner container: let the children join the group's grid or flow. */
:root .tre-home .wp-block-group__inner-container {
    display: contents;
}
:root .tre-home .wp-block-group {
    margin-bottom: 0;
}
:root .tre-home :where(h1, h2, h3) {
    font-weight: 700;
    color: var(--tre-home-dark);
}

/* Section label above the headings (". Chi siamo"). */
:root .tre-home .tre-home-eyebrow {
    font-size: 16px;
    line-height: 30px;
    color: var(--tre-home-muted);
}
:root .tre-home .tre-home-eyebrow::before {
    content: ". ";
}
:root .tre-home h2.tre-home-title {
    margin-top: 9px;
    font-size: 45px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}
:root .tre-home .has-text-align-center {
    text-align: center;
}

/* Button styles: "Link con freccia" (tre-link) is the theme text link, "Pulsante con freccia" (tre-cta) the bordered hero button. */
:root .tre-home .wp-block-buttons {
    gap: 20px;
}
:root .tre-home .wp-block-button.is-style-tre-link .wp-block-button__link {
    position: relative;
    display: inline-flex;
    padding: 0 30px 3px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 2.1429em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--tre-home-red);
    background: linear-gradient(currentColor, currentColor) 100% 100% / 100% 1px no-repeat;
    border: 0;
    border-radius: 0;
    transition: color 0.3s, background-size 0.2s linear 0.15s;
}
:root .tre-home .wp-block-button.is-style-tre-link .wp-block-button__link::after {
    content: "\e82d";
    position: absolute;
    top: 50%;
    right: 0;
    margin-top: -2px;
    font-family: "fontello";
    font-size: 85.7%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}
:root .tre-home .wp-block-button.is-style-tre-link .wp-block-button__link:hover,
:root .tre-home .wp-block-button.is-style-tre-link .wp-block-button__link:focus-visible {
    background-size: 0 1px;
    transition-delay: 0s;
}
:root .tre-home .wp-block-button.is-style-tre-link .wp-block-button__link:hover::after,
:root .tre-home .wp-block-button.is-style-tre-link .wp-block-button__link:focus-visible::after {
    transform: translate(3px, calc(-50% + 3px));
}
:root .tre-home .wp-block-button.is-style-tre-cta .wp-block-button__link {
    display: inline-flex;
    align-items: stretch;
    padding: 13px 0 13px 38px;
    font-size: 14px;
    font-weight: 500;
    line-height: 30px;
    text-transform: none;
    text-decoration: none;
    color: #fff;
    background: transparent;
    border: 2px solid var(--tre-home-red);
    border-radius: 0;
    transition: background-color 0.3s;
}
/* Red square with the arrow, inside the border. */
:root .tre-home .wp-block-button.is-style-tre-cta .wp-block-button__link::after {
    content: "\e839";
    display: flex;
    flex: 0 0 55px;
    align-items: center;
    justify-content: center;
    margin: -13px 0 -13px 28px;
    font-family: "fontello";
    font-size: 17px;
    font-weight: 400;
    color: #fff;
    background-color: var(--tre-home-red);
    transition: transform 0.3s;
}
:root .tre-home .wp-block-button.is-style-tre-cta .wp-block-button__link:hover,
:root .tre-home .wp-block-button.is-style-tre-cta .wp-block-button__link:focus-visible {
    background-color: rgba(236, 31, 39, 0.15);
}

/* Outline numbers ("40+ anni", counters, steps). */
:root .tre-home .tre-home-outline {
    font-family: "Manrope Alt", sans-serif;
    font-weight: 700;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px var(--tre-home-red);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Hero (Cover block): photo darkened like the theme slider, slightly zoomed.
   -------------------------------------------------------------------------- */
:root .tre-home-hero.wp-block-cover {
    min-height: 810px;
    padding: 0;
    overflow: hidden;
}
:root .tre-home-hero .wp-block-cover__image-background {
    transform: scale(1.15);
}
:root .tre-home-hero .wp-block-cover__background {
    mix-blend-mode: multiply;
    opacity: 1;
}
:root .tre-home-hero .wp-block-cover__inner-container {
    position: static;
    width: 100%;
    color: #fff;
}
/* The inner container is static so the scroll button can sit in the hero corner; content stays above the photo. */
:root .tre-home-hero__content {
    position: relative;
    z-index: 1;
    width: min(789px, calc(100% - 80px));
    margin: 0 auto;
}
:root .tre-home-hero h1 {
    font-size: 68px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #fff;
}
:root .tre-home-hero p.tre-home-hero__text {
    max-width: 481px;
    margin-top: 53px;
    margin-bottom: 0;
    font-size: 18px;
    line-height: 30px;
    color: #fff;
}
:root .tre-home-hero .wp-block-buttons {
    margin-top: 44px;
}
:root .tre-home-hero .tre-home-hero__scroll {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    margin: 0;
}
:root .tre-home-hero .tre-home-hero__scroll a {
    display: block;
    width: 85px;
    height: 85px;
    font-size: 0;
    text-decoration: none;
    color: #fff;
    background-color: var(--tre-home-dark);
    transition: color 0.3s;
}
:root .tre-home-hero .tre-home-hero__scroll a::before {
    content: "\e83a";
    display: block;
    font: 400 30px/85px "fontello";
    text-align: center;
}
:root .tre-home-hero .tre-home-hero__scroll a:hover,
:root .tre-home-hero .tre-home-hero__scroll a:focus-visible {
    color: var(--tre-home-red);
}

/* --------------------------------------------------------------------------
   Chi siamo (grey band): text left, tall photo right, "40+ anni" outline text.
   -------------------------------------------------------------------------- */
:root .tre-home.tre-home-about {
    margin-top: 70px;
    padding-top: 140px;
    background-color: var(--tre-home-light);
}
:root .tre-home-about .wp-block-columns {
    display: grid;
    grid-template-columns: minmax(0, 550fr) minmax(0, 480fr);
    column-gap: 110px;
    margin: 0;
}
:root .tre-home-about .wp-block-column {
    min-width: 0;
}
:root .tre-home-about .wp-block-column:first-child {
    position: relative;
    z-index: 1;
}
:root .tre-home-about .tre-home-lead {
    margin-top: 30px;
    font-weight: 700;
    color: var(--tre-home-dark);
}
:root .tre-home-about .tre-home-lead + p {
    margin-top: 50px;
}
:root .tre-home-about .wp-block-buttons {
    margin-top: 55px;
}
:root .tre-home-about .tre-home-outline {
    margin-top: 65px;
    font-size: 200px;
    line-height: 0.8;
    letter-spacing: -0.042em;
}
:root .tre-home-about .wp-block-image {
    position: relative;
    margin-top: 10px;
}
:root .tre-home-about .wp-block-image img {
    display: block;
    width: 100%;
    height: 782px;
    object-fit: cover;
}
/* White notch on the photo edge, as on the previous home. */
/* Theme decoration on the photo edge: a grey square over the photo and a white one next to it. */
:root .tre-home-about .wp-block-image::before,
:root .tre-home-about .wp-block-image::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 70px;
    width: 70px;
    height: 70px;
}
:root .tre-home-about .wp-block-image::before {
    right: 0;
    background-color: var(--tre-home-light);
    transform-origin: right top;
}
:root .tre-home-about .wp-block-image::after {
    right: -70px;
    background-color: #fff;
    transform-origin: left top;
}

/* --------------------------------------------------------------------------
   Prodotti (dark band): intro, five product links, counters.
   -------------------------------------------------------------------------- */
:root .tre-home.tre-home-products {
    margin-top: 70px;
    padding-top: 145px;
    padding-bottom: 140px;
    color: #fff;
    background-color: var(--tre-home-dark);
}
/* Theme decoration on the bottom edge: a white square inside the band and a dark one just below it. */
:root .tre-home-products::before,
:root .tre-home-products::after {
    content: "";
    position: absolute;
    left: var(--tre-home-gutter);
    width: 70px;
    height: 70px;
    z-index: 1;
}
:root .tre-home-products::before {
    bottom: 0;
    background-color: #fff;
    transform-origin: left bottom;
}
:root .tre-home-products::after {
    bottom: -70px;
    background-color: var(--tre-home-dark);
    transform-origin: left top;
}
:root .tre-home-products h2.tre-home-title {
    line-height: 1.111;
    color: #fff;
}
:root .tre-home-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "head text" "cta text";
    grid-template-rows: auto 1fr;
    column-gap: 40px;
}
:root .tre-home-split__head {
    grid-area: head;
}
:root .tre-home-split__text {
    grid-area: text;
    padding-top: 40px;
}
:root .tre-home-split .wp-block-buttons {
    grid-area: cta;
    align-self: start;
    margin-top: 57px;
}
:root .tre-home-products .tre-home-split__text p {
    color: #fff;
}
:root .tre-home-products .tre-home-split__text p:first-child {
    font-weight: 600;
}
:root .tre-home-products .tre-home-split__text p + p {
    margin-top: 50px;
}

:root .tre-home-features {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin-top: 100px;
}
:root .tre-home-feature {
    padding: 10px;
}
:root .tre-home-feature h3 {
    position: relative;
    padding: 52px 30px 30px 0;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -0.03em;
    color: #fff;
    border-bottom: 2px solid #fff;
}
:root .tre-home-feature h3::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 11px;
    width: 20px;
    height: 18px;
    background-color: var(--tre-home-red);
    -webkit-mask: var(--tre-esse-icon) center / contain no-repeat;
    mask: var(--tre-esse-icon) center / contain no-repeat;
}
:root .tre-home-feature h3::after {
    content: "\e82d";
    position: absolute;
    right: 1px;
    bottom: 30px;
    font-family: "fontello";
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: rgba(171, 175, 181, 0.6);
    transition: color 0.3s, transform 0.3s;
}
:root .tre-home-feature h3 a {
    color: inherit;
    text-decoration: none;
}
/* The whole header is the link. */
:root .tre-home-feature h3 a::before {
    content: "";
    position: absolute;
    inset: 0;
}
:root .tre-home-feature h3:hover::after,
:root .tre-home-feature h3:focus-within::after {
    color: var(--tre-home-red);
    transform: translate(3px, 3px);
}
:root .tre-home-feature p {
    margin-top: 20px;
    color: #c9cdd0;
}

:root .tre-home-counters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 100px;
}
:root .tre-home-counters .tre-home-outline {
    font-size: 150px;
    line-height: 1;
    letter-spacing: -0.03em;
}
:root .tre-home-counters .tre-home-counter__label {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 35.556px;
    letter-spacing: -0.03em;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Perché sceglierci: four reasons with line icons.
   -------------------------------------------------------------------------- */
:root .tre-home-reasons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    margin-top: 50px;
}
:root .tre-home-reason h3 {
    position: relative;
    min-height: 52px;
    padding: 0 0 30px 77px;
    font-size: 20px;
    line-height: 28px;
    letter-spacing: -0.03em;
    border-bottom: 2px solid var(--tre-home-dark);
    box-sizing: content-box;
}
:root .tre-home-reason h3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 52px;
    height: 52px;
    background-color: var(--tre-home-dark);
    -webkit-mask: var(--tre-esse-icon) center / contain no-repeat;
    mask: var(--tre-esse-icon) center / contain no-repeat;
}
:root .tre-home-reason p {
    margin-top: 20px;
}
:root .tre-home-reasons + .wp-block-buttons {
    margin-top: 40px;
}

/* --------------------------------------------------------------------------
   Per chi lavoriamo: photo left, accordion right.
   -------------------------------------------------------------------------- */
:root .tre-home-clients .wp-block-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    margin: 0;
}
:root .tre-home-clients .wp-block-column {
    min-width: 0;
}
:root .tre-home-clients .wp-block-image {
    position: relative;
    margin: 5px 115px 0 0;
}
:root .tre-home-clients .wp-block-image img {
    display: block;
    width: 100%;
    height: 680px;
    object-fit: cover;
}
:root .tre-home-clients .wp-block-image::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 148px;
    height: 87px;
    background-color: #fff;
}
:root .tre-home-clients h2.tre-home-title {
    padding-right: 11%;
}
:root .tre-home-clients .wp-block-accordion {
    margin-top: 40px;
    border-bottom: 2px solid var(--tre-home-dark);
}
:root .tre-home-clients .wp-block-accordion-item {
    border-top: 2px solid var(--tre-home-dark);
}
:root .tre-home-clients .wp-block-accordion-heading {
    margin: 0;
    font-size: 25px;
    line-height: 40px;
    letter-spacing: -0.03em;
}
/* Reset the theme button look (underline, arrow, padding) on the accordion toggles. */
:root .tre-home-clients .wp-block-accordion-heading__toggle {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 18px 0;
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
    color: var(--tre-home-dark);
    background: none;
    border: 0;
    transition: color 0.3s;
}
:root .tre-home-clients .wp-block-accordion-heading__toggle::after {
    content: none;
}
:root .tre-home-clients .wp-block-accordion-heading__toggle:hover,
:root .tre-home-clients .wp-block-accordion-heading__toggle:focus-visible,
:root .tre-home-clients .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle {
    color: var(--tre-home-red);
}
:root .tre-home-clients .wp-block-accordion-heading__toggle-title {
    text-decoration: none;
}
:root .tre-home-clients .wp-block-accordion-heading__toggle-icon {
    flex: 0 0 26px;
    order: -1;
    width: 26px;
    height: 16px;
    font-size: 0;
    background-color: #b5babe;
    -webkit-mask: var(--tre-esse-icon) center / contain no-repeat;
    mask: var(--tre-esse-icon) center / contain no-repeat;
    transform: none;
}
:root .tre-home-clients .wp-block-accordion-heading__toggle-icon {
    --tre-esse-icon: var(--tre-home-icon-plus);
}
:root .tre-home-clients .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon {
    --tre-esse-icon: var(--tre-home-icon-minus);
    background-color: var(--tre-home-red);
    transform: none;
}
:root .tre-home-clients .wp-block-accordion-panel p {
    padding-bottom: 20px;
}
:root .tre-home-clients .wp-block-accordion + .wp-block-buttons {
    margin-top: 60px;
}

/* --------------------------------------------------------------------------
   Come lavoriamo: four steps.
   -------------------------------------------------------------------------- */
:root .tre-home-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 72px;
}
:root .tre-home-step {
    padding: 0 15px 20px 40px;
    border-left: 2px solid var(--tre-home-text);
}
:root .tre-home-step:first-child {
    padding-left: 0;
    border-left: 0;
}
:root .tre-home-step__number {
    display: flex;
    align-items: flex-end;
    gap: 13px;
}
:root .tre-home-step .tre-home-outline {
    margin-left: -7px;
    font-size: 100px;
    line-height: 1;
    letter-spacing: -0.03em;
}
:root .tre-home-step .tre-home-step__label {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--tre-home-red);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
:root .tre-home-step .wp-block-heading {
    margin-top: 145px;
    margin-bottom: 20px;
    font-size: 30px;
    line-height: 35px;
    letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------------
   Guide: latest four guides (Query Loop).
   -------------------------------------------------------------------------- */
:root .tre-home.tre-home-guides {
    margin-top: 240px;
}
:root .tre-home-guides h2.tre-home-title {
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
:root .tre-home-guides .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    margin: 50px 0 0;
    padding: 0;
    list-style: none;
}
:root .tre-home-guides .wp-block-post {
    padding: 0;
}
/* No theme list arrow on the guide cards. */
:root .tre-home-guides .wp-block-post::before {
    content: none;
}
:root .tre-home-guides .tre-home-post__date {
    display: inline-flex;
    flex-direction: column;
    text-align: center;
}
:root .tre-home-guides .tre-home-post__day {
    padding: 12px 12px 9px;
    font-size: 35px;
    font-weight: 700;
    line-height: 35px;
    letter-spacing: -0.03em;
    color: var(--tre-home-red);
    background-color: #ececed;
}
:root .tre-home-guides .tre-home-post__month {
    padding: 0 7px;
    font-size: 12px;
    font-weight: 500;
    line-height: 24px;
    color: #fff;
    background-color: var(--tre-home-dark);
}
:root .tre-home-guides .tre-home-post__cat {
    margin-top: 10px;
    padding: 3px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
}
:root .tre-home-guides .tre-home-post__cat a {
    text-decoration: none;
    color: var(--tre-home-red);
}
:root .tre-home-guides .tre-home-post__cat a::before {
    content: ". ";
}
:root .tre-home-guides .wp-block-post-title {
    margin-top: 5px;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: -0.03em;
}
:root .tre-home-guides .wp-block-post-title a {
    text-decoration: none;
    color: var(--tre-home-dark);
    transition: color 0.3s;
}
:root .tre-home-guides .wp-block-post-title a:hover,
:root .tre-home-guides .wp-block-post-title a:focus-visible {
    color: var(--tre-home-red);
}
:root .tre-home-guides .wp-block-query + .wp-block-buttons {
    margin-top: 45px;
}

/* --------------------------------------------------------------------------
   Responsive.
   -------------------------------------------------------------------------- */
@media (max-width: 1366px) {
    :root .tre-home.tre-home-reasons-section,
    :root .tre-home.tre-home-clients,
    :root .tre-home.tre-home-process {
        margin-top: 120px;
    }
    :root .tre-home-products::before,
    :root .tre-home-products::after {
        display: none;
    }
}
@media (max-width: 1200px) {
    :root .tre-home.tre-home-about {
        padding-top: 120px;
    }
    :root .tre-home.tre-home-products {
        padding-top: 115px;
        padding-bottom: 120px;
    }
    :root .tre-home-counters .tre-home-outline {
        font-size: 120px;
    }
}
@media (max-width: 1024px) {
    :root .tre-home-hero h1 {
        font-size: 46px;
    }
    :root .tre-home-hero p.tre-home-hero__text {
        max-width: none;
    }
    :root .tre-home-hero__content {
        width: calc(100% - 80px);
    }
    :root .tre-home-hero .tre-home-hero__scroll {
        display: none;
    }
    :root .tre-home-about .wp-block-columns {
        column-gap: 40px;
    }
    :root .tre-home-about .wp-block-image::before,
    :root .tre-home-about .wp-block-image::after,
    :root .tre-home-clients .wp-block-image::after {
        display: none;
    }
    :root .tre-home-about .tre-home-outline {
        font-size: 150px;
    }
    :root .tre-home.tre-home-products {
        margin-top: 0;
    }
    :root .tre-home-counters .tre-home-outline {
        font-size: 80px;
    }
    :root .tre-home-clients .wp-block-image {
        margin-right: 0;
    }
    :root .tre-home-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 60px;
    }
    :root .tre-home-step:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }
}
@media (max-width: 880px) {
    :root .tre-home-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 40px;
    }
    :root .tre-home-reasons,
    :root .tre-home-guides .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    :root .tre-home {
        --tre-home-gutter: 30px;
    }
    :root .tre-home-hero__content {
        width: calc(100% - 60px);
    }
    :root .tre-home h2.tre-home-title {
        font-size: 35px;
    }
    :root .tre-home.tre-home-about {
        padding-top: 80px;
    }
    :root .tre-home.tre-home-products {
        padding-top: 75px;
        padding-bottom: 80px;
    }
    :root .tre-home-about .wp-block-columns,
    :root .tre-home-clients .wp-block-columns {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 40px;
    }
    :root .tre-home-about .wp-block-columns {
        row-gap: 60px;
    }
    :root .tre-home-about .wp-block-image {
        max-width: 640px;
    }
}
@media (max-width: 767px) {
    :root .tre-home {
        --tre-home-gutter: 20px;
    }
    :root .tre-home.tre-home-reasons-section,
    :root .tre-home.tre-home-clients,
    :root .tre-home.tre-home-process {
        margin-top: 80px;
    }
    :root .tre-home-hero__content {
        width: calc(100% - 40px);
        padding-top: 43px;
    }
    :root .tre-home-hero h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }
    :root .tre-home-hero .wp-block-buttons {
        margin-top: 41px;
    }
    :root .tre-home-hero p.tre-home-hero__text {
        margin-top: 29px;
        font-size: 16px;
        line-height: 26.67px;
    }
    :root .tre-home h2.tre-home-title {
        margin-top: 5.6px;
        font-size: 28px;
        line-height: 1.474;
    }
    :root .tre-home-products h2.tre-home-title {
        line-height: 1.111;
    }
    :root .tre-home.tre-home-about {
        padding-top: 140px;
        padding-bottom: 20px;
    }
    :root .tre-home-about .wp-block-columns {
        row-gap: 70px;
    }
    :root .tre-home.tre-home-products {
        padding-top: 145px;
        padding-bottom: 140px;
    }
    :root .tre-home-about .wp-block-image img {
        height: 500px;
    }
    :root .tre-home-about .tre-home-outline {
        margin-top: 65px;
        font-size: 67px;
        letter-spacing: -0.075em;
    }
    :root .tre-home-split {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "head" "text" "cta";
    }
    :root .tre-home-features,
    :root .tre-home-counters,
    :root .tre-home-reasons,
    :root .tre-home-guides .wp-block-post-template {
        grid-template-columns: minmax(0, 1fr);
    }
    :root .tre-home-features {
        row-gap: 12px;
    }
    /* On phones the icon sits left of the title, as in the previous home. */
    :root .tre-home-feature h3 {
        min-height: 52px;
        padding: 0 30px 30px 77px;
        font-size: 18px;
        line-height: 26.5px;
        box-sizing: content-box;
    }
    :root .tre-home-feature h3::before {
        top: 17px;
    }
    :root .tre-home-counters {
        row-gap: 20px;
    }
    :root .tre-home-reason h3 {
        font-size: 18px;
        line-height: 26.5px;
    }
    :root .tre-home-clients .wp-block-image img {
        height: 500px;
    }
    :root .tre-home-clients .wp-block-accordion-heading {
        font-size: 20px;
        line-height: 30px;
    }
    :root .tre-home-clients .wp-block-accordion-heading__toggle {
        padding: 18px 0;
    }
    /* Steps become a swipeable row, like the previous carousel. */
    :root .tre-home-steps {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 88%;
        margin-left: calc(-1 * var(--tre-home-gutter));
        margin-right: calc(-1 * var(--tre-home-gutter));
        padding: 0 var(--tre-home-gutter);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: var(--tre-home-gutter);
    }
    :root .tre-home-step {
        scroll-snap-align: start;
    }
    :root .tre-home-step:nth-child(3) {
        padding-left: 40px;
        border-left: 2px solid var(--tre-home-text);
    }
    :root .tre-home-step .wp-block-heading {
        font-size: 22px;
        line-height: 25.67px;
    }
    :root .tre-home-step p:last-child {
        font-size: 16px;
        line-height: 24px;
    }
    :root .tre-home-guides h2.tre-home-title {
        max-width: none;
    }
    :root .tre-home-guides .wp-block-post-template {
        row-gap: 50px;
    }
    :root .tre-home-guides .wp-block-post-title {
        font-size: 18px;
        line-height: 27px;
    }
}
/* --------------------------------------------------------------------------
   Steps carousel (theme Owl Carousel, started by the home script): three steps
   per view on desktop, two on tablet, one on phones, dots as on the previous home.
   Without JavaScript the steps stay in the grid above.
   -------------------------------------------------------------------------- */
:root .tre-home-steps.is-carousel {
    display: block;
    margin-left: -40px;
    margin-right: 0;
    padding: 0;
    overflow: visible;
}
/* The track must be a real box before Owl measures it (the inner container is otherwise display: contents). */
:root .tre-home .tre-home-steps.is-carousel .owl-carousel {
    display: block;
}
:root .tre-home-steps.is-carousel .owl-stage {
    align-items: stretch;
}
:root .tre-home-steps.is-carousel .owl-item {
    display: flex;
}
:root .tre-home-steps.is-carousel .tre-home-step {
    width: 100%;
    padding: 0 15px 20px 40px;
    border-left: 0;
}
:root .tre-home-steps.is-carousel .owl-item.active + .owl-item.active .tre-home-step {
    border-left: 2px solid var(--tre-home-text);
}
:root .tre-home-process .tre-home-steps__dots--desktop {
    display: flex;
    justify-content: flex-end;
    margin: -38px -20px 0 0;
}
:root .tre-home-process .tre-home-steps__dots--mobile {
    display: none;
    margin: 20px -20px 0;
    padding-bottom: 30px; /* padding, not margin: a bottom margin would collapse into the next section's gap */
    text-align: center;
}
@media (max-width: 991px) {
    :root .tre-home-process .tre-home-steps__dots--desktop {
        display: none;
    }
    :root .tre-home-process .tre-home-steps__dots--mobile {
        display: block;
    }
}

/* --------------------------------------------------------------------------
   Entrance animations, as on the previous home: hero text rising in, photos
   revealed and theme squares growing when they scroll into view (desktop only).
   Scroll effects need the home script (html.tre-home-js); nothing moves for
   users who prefer reduced motion.
   -------------------------------------------------------------------------- */
@keyframes tre-home-rise {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
}
@keyframes tre-home-clip-down {
    from {
        clip-path: inset(0 0 100% 0);
    }
    to {
        clip-path: inset(0);
    }
}
@keyframes tre-home-clip-right {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0);
    }
}
@keyframes tre-home-grow-x {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}
@keyframes tre-home-grow-y {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}
@media (prefers-reduced-motion: no-preference) {
    :root .tre-home-hero h1 {
        animation: tre-home-rise 0.6s ease 0.3s both;
    }
    :root .tre-home-hero p.tre-home-hero__text {
        animation: tre-home-rise 0.6s ease 0.6s both;
    }
    :root .tre-home-hero .wp-block-buttons {
        animation: tre-home-rise 0.6s ease 0.9s both;
    }
}
@media (min-width: 1201px) and (prefers-reduced-motion: no-preference) {
    /* Hidden until the element scrolls into view; the animation then plays from that hidden state. */
    :root.tre-home-js .tre-home-about .wp-block-image:not(.is-inview) img {
        clip-path: inset(0 0 100% 0);
    }
    :root.tre-home-js .tre-home-about .wp-block-image.is-inview img {
        animation: tre-home-clip-down 0.75s ease-out 0.5s backwards;
    }
    :root.tre-home-js .tre-home-clients .wp-block-image:not(.is-inview) img {
        clip-path: inset(0 100% 0 0);
    }
    :root.tre-home-js .tre-home-clients .wp-block-image.is-inview img {
        animation: tre-home-clip-right 0.75s ease-out 0.4s backwards;
    }
    :root.tre-home-js .tre-home-about .wp-block-image:not(.is-inview)::before,
    :root.tre-home-js .tre-home-about .wp-block-image:not(.is-inview)::after {
        transform: scaleX(0);
    }
    :root.tre-home-js .tre-home-about .wp-block-image.is-inview::before {
        animation: tre-home-grow-x 0.5s cubic-bezier(0, 0, 0.15, 0.96) 0.8s backwards;
    }
    :root.tre-home-js .tre-home-about .wp-block-image.is-inview::after {
        animation: tre-home-grow-x 0.5s cubic-bezier(0, 0, 0.15, 0.96) 1.2s backwards;
    }
    :root.tre-home-js .tre-home-products:not(.is-inview)::before,
    :root.tre-home-js .tre-home-products:not(.is-inview)::after {
        transform: scaleY(0);
    }
    :root.tre-home-js .tre-home-products.is-inview::before {
        animation: tre-home-grow-y 0.5s cubic-bezier(0, 0, 0.15, 0.96) 0.3s backwards;
    }
    :root.tre-home-js .tre-home-products.is-inview::after {
        animation: tre-home-grow-y 0.5s cubic-bezier(0, 0, 0.15, 0.96) 0.7s backwards;
    }
}

@media (prefers-reduced-motion: reduce) {
    :root .tre-home *,
    :root .tre-home *::before,
    :root .tre-home *::after {
        transition: none !important;
    }
}
