/*
Theme Name: Rosa Edilizia
Author: Publipress
Description: Tema WordPress su misura per Rosa Edilizia, impresa di restauro e costruzioni dell'Aquila.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rosa-edilizia
*/


/* 01. Font di testo */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("assets/fonts/inter-latin-variable.woff2") format("woff2");
}
@font-face {
    font-family: "Libre Baskerville";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("assets/fonts/libre-baskerville-latin-variable.woff2") format("woff2");
}

/* 02. Variabili e base */
:root {
    --alt-font: "Libre Baskerville", serif;
    --primary-font: "Inter", sans-serif;
    --base-color: #1e3a8a;
    --green: #047857;
    --dark-gray: #1f2220;
    --medium-gray: #6b7280;
    --very-light-gray: #f7f7f7;
    --light-blue: #60a5fa;
    --very-light-blue: #dbeafe;
}
body {
    font-size: 16px;
    line-height: 28px;
}

/* 03. Header e pulsanti */
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu {
    width: 300px;
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a {
    font-family: var(--alt-font);
    font-size: 16px;
    color: var(--dark-gray);
    font-weight: 600;
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a:hover,
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li.active:hover > a {
    background-color: var(--base-color);
    color: var(--white);
}
.navbar .navbar-nav .dropdown .dropdown-menu a i,
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a i {
    font-size: 40px;
    margin-right: 10px;
    width: 40px;
}
.navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu li a:hover i {
    color: var(--white);
}
header .navbar-brand img {
    max-height: 65px;
}
.navbar .navbar-nav .nav-link {
    font-family: var(--alt-font);
    font-weight: 600;
    font-size: 18px;
}
.btn {
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0px;
}
.btn.btn-switch-text.btn-extra-large > span {
    padding: 17px 38px;
    font-size: 17px;
}
.btn.btn-switch-text.btn-large > span {
    padding: 13px 32px;
    font-size: 15px;
}
.btn.btn-switch-text.btn-medium > span {
    padding: 12px 26px;
    font-size: 14px;
}

/* 04. Titoli e colori di utilità */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: var(--alt-font);
    margin-bottom: 25px;
}
.text-green {
    color: var(--green);
}
.text-gradient-light-green-white {
    background: linear-gradient(to top, rgba(255, 255, 255, 0) 0%, #dbeafe 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bg-light-green {
    background-color: #93c5fd;
}
.bg-very-light-green {
    background-color: #dbeafe;
}
.bg-gradient-green-transparent {
    background: linear-gradient(to top, rgba(255, 255, 255, 0) 0%, #dbeafe 100%);
}
.right-210px {
    right: 210px;
}
.page-title-large h1 {
    font-size: 4.2rem;
    line-height: 4rem;
}
.page-title-large h2 {
    font-size: 18px;
}
.border-color-dark-green {
    border-color: var(--green);
}
.newsletter-style-02 .btn:hover {
    background-color: var(--green);
}
.newsletter-style-02 .btn {
    height: 85%;
    margin: 4px;
    padding: 5px 20px 5px;
}
.newsletter-style-02 input {
    padding-right: 75px !important;
}
.animation-rotation {
    -webkit-animation: rotation 2.5s infinite linear;
}
.alt-font,
.card-title,
.feature-box-content span.d-block,
.text-uppercase.fw-600,
.text-uppercase.fw-700 {
    font-family: var(--alt-font);
}

/* 05. Footer */
footer .footer-logo img {
    max-height: 43px;
    width: auto;
}
footer a:hover {
    color: var(--white);
}
footer ul li {
    margin-bottom: 2px;
}
footer span.fs-18 {
    font-family: var(--alt-font);
}
.counter-style-04 .vertical-counter:after {
    color: var(--green);
}
.outside-box-top-home {
    margin-top: -163px;
}

/* 06. Subnav */
.subnav {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid var(--green);
    position: sticky;
    top: 80px;
    z-index: 999;
    transition: all 0.3s ease;
}
.subnav.is-sticky {
    background-color: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.subnav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.subnav-container::-webkit-scrollbar {
    display: none;
}
.subnav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.subnav-item {
    margin: 0;
}
.subnav-link {
    display: block;
    padding: 15px 25px;
    color: #232323;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.subnav-link:hover {
    color: var(--base-color, #8bc34a);
    background-color: rgba(139, 195, 74, 0.05);
}
.subnav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--base-color, #8bc34a);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.subnav-link:hover::after,
.subnav-link.active::after {
    width: 100%;
}
.subnav-link.active {
    color: var(--base-color, #8bc34a);
    font-weight: 600;
}

/* 07. Tabelle */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}
.table {
    margin-bottom: 0;
    font-size: 14px;
}
.table thead th {
    background-color: var(--base-color);
    color: #fff;
    border: none;
    padding: 12px 15px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
    border-color: #e9ecef;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(30, 58, 138, 0.03);
}
.table-striped tbody tr:hover {
    background-color: rgba(30, 58, 138, 0.08);
}

/* 08. Lavori */
.lavoro-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 600 / 385;
    object-fit: cover;
}
.lavoro-popup-main {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 520px;
    object-fit: cover;
}
.lavoro-popup-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.services-box-style-06 .image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 385;
    object-fit: cover;
}
.lavori-quote-title {
    font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.35rem);
    line-height: 1.25;
}
.lavori-numeri-title {
    font-size: clamp(1.6rem, 1.1rem + 1vw, 2.1rem);
    line-height: 1.25;
}
.lavori-numeri .vertical-counter {
    font-size: clamp(2.4rem, 1.6rem + 1.6vw, 3.1rem);
    line-height: 1.2;
    letter-spacing: -1px;
}
.lavori-numeri .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

/* 09. Responsive del CSS di progetto */
@media (min-width: 1400px) {
    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1320px;
    }
}
@media (max-width: 1600px) {
    .fs-80 {
        font-size: 4rem;
        line-height: 4rem;
    }
}
@media (max-width: 1199px) {
    .navbar .navbar-nav .nav-link {
        font-size: 16px;
        padding: 10px 10px;
    }
}
@media (max-width: 991px) {
    .md-background-position-top-center {
        background-position: top center !important;
    }
    .navbar .navbar-nav .dropdown.dropdown-with-icon-style02 .dropdown-menu {
        padding-bottom: 15px;
    }
    .outside-box-top-home {
        margin-top: 1.7em;
    }
    .subnav-link {
        padding: 12px 18px;
        font-size: 13px;
    }
}
@media (max-width: 767px) {
    .sm-background-position-top-center {
        background-position: top center !important;
    }
    .table {
        font-size: 12px;
    }
    .table thead th,
    .table tbody td {
        padding: 10px 8px;
    }
    .table thead th {
        font-size: 11px;
    }
    .lavori-numeri .counter-style-04 > .col {
        border: 0 !important;
    }
}
@media (max-width: 575px) {
    .subnav-container {
        justify-content: flex-start;
    }
    .subnav-link {
        padding: 12px 15px;
        font-size: 12px;
    }
    .lavori-numeri > .row {
        margin-left: 0;
        margin-right: 0;
    }
}

/* 10. WordPress: accessibilità e contenuto editoriale */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #fff;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--dark-gray);
    display: block;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--base-color);
    outline-offset: 2px;
}
footer a:focus-visible,
.bg-dark-gray a:focus-visible,
.bg-dark-gray button:focus-visible {
    outline-color: #fff;
}
.alignleft {
    float: left;
    margin: 0 25px 15px 0;
}
.alignright {
    float: right;
    margin: 0 0 15px 25px;
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.wp-caption,
.wp-block-image figure {
    max-width: 100%;
}
.wp-caption-text,
.wp-element-caption,
figcaption.wp-caption-text {
    font-size: 14px;
    line-height: 22px;
    color: var(--medium-gray);
    margin-top: 8px;
}

/* 11. Immagini di copertina */
.cover-background:has(> .th-cover-img) {
    position: relative;
    overflow: hidden;
}
.th-cover-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}
@media (max-width: 991px) {
    .md-background-position-top-center > .th-cover-img {
        object-position: top center;
    }
}
@media (max-width: 767px) {
    .sm-background-position-top-center > .th-cover-img {
        object-position: top center;
    }
}

/* 12. Titoli con aspetto diverso dal tag */
h1.h5 {
    font-size: 2rem;
    line-height: 2.2rem;
}
.th-presentazione-titolo {
    font-size: 2.375rem;
    line-height: 2.7rem;
    display: block;
    width: 100%;
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 1px solid #fff;
    overflow-wrap: break-word;
}

/* 13. Segnaposto embed */
.th-embed {
    position: relative;
    background-color: var(--very-light-blue);
}
.th-embed-map {
    width: 100%;
    height: 450px;
}
.th-embed-placeholder {
    background-color: var(--very-light-blue);
    color: var(--dark-gray);
    overflow: auto;
}
.th-embed-placeholder::before,
.th-embed-placeholder::after {
    content: "";
    margin: auto;
}
.th-embed-map .th-embed-placeholder {
    width: 100%;
    height: 100%;
}
.th-embed-note {
    max-width: 560px;
    font-size: 15px;
    line-height: 24px;
    color: var(--dark-gray);
}
.th-embed-load {
    cursor: pointer;
}
.th-embed-link {
    color: var(--base-color);
    font-weight: 600;
    font-size: 15px;
    line-height: 22px;
}
.th-embed-link:hover {
    color: var(--dark-gray);
}
.th-embed-load:focus-visible,
.th-embed-link:focus-visible {
    outline: 3px solid var(--dark-gray);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #fff;
}
.th-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.th-embed-video .th-embed-placeholder {
    padding: 16px !important;
}
.th-embed-video .th-embed-note {
    font-size: 13px;
    line-height: 19px;
    margin-bottom: 10px !important;
}
.th-embed-video .th-embed-load {
    margin-bottom: 10px !important;
}
/* Video: il rapporto 16:9 lo dà aspect-ratio, non il ::before di Bootstrap (incompatibile col wrapper di Complianz) */
.th-embed-video.ratio::before {
    content: none;
    display: none;
}
.th-embed-video {
    aspect-ratio: 16 / 9;
    position: relative;
}
.th-embed-video > *,
.th-embed-video .cmplz-blocked-content-container,
.th-embed-video .cmplz-placeholder-element,
.th-embed-video iframe {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
@media (max-width: 767px) {
    .th-embed-map {
        height: 350px;
    }
}

/* 14. Icone Dashicons dei punti chiave */
.feature-box-icon .dashicons {
    display: inline-block;
    width: 50px;
    height: 50px;
    font-size: 50px;
    line-height: 1;
    vertical-align: top;
    color: var(--base-color);
    transition: color 0.3s ease;
}

/* 15. Filtro dell'archivio lavori */
.portfolio-filter {
    row-gap: 8px;
}
.portfolio-filter li {
    padding: 0 14px;
}
.portfolio-filter li:first-child {
    padding-left: 0;
}
.portfolio-filter li:last-child {
    padding-right: 0;
}
.portfolio-filter li a {
    display: inline-block;
    padding-bottom: 2px;
    font-size: 15px;
    line-height: 24px;
    text-align: center;
}
@media (max-width: 575px) {
    .portfolio-filter li {
        padding: 0 10px;
    }
    .portfolio-filter li a {
        font-size: 14px;
    }
}

/* 16. page.php, ricerca, 404, paginazione */
.page-content {
    overflow-wrap: break-word;
}
.page-content > article > *:first-child {
    margin-top: 0;
}
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: var(--dark-gray);
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
}
.page-content h2 {
    font-size: 2rem;
    line-height: 2.4rem;
}
.page-content h3 {
    font-size: 1.6rem;
    line-height: 2rem;
}
.page-content h4 {
    font-size: 1.35rem;
    line-height: 1.8rem;
}
.page-content h5,
.page-content h6 {
    font-size: 1.15rem;
    line-height: 1.6rem;
}
.page-content p,
.page-content ul,
.page-content ol {
    margin-bottom: 20px;
}
.page-content ul {
    list-style: disc;
    padding-left: 24px;
}
.page-content ol {
    list-style: decimal;
    padding-left: 24px;
}
.page-content li {
    margin-bottom: 6px;
}
.page-content a {
    color: var(--base-color);
    text-decoration: underline;
}
.page-content a:hover {
    color: var(--dark-gray);
}
.page-content img {
    max-width: 100%;
    height: auto;
}
.page-content blockquote {
    margin: 30px 0;
    padding: 5px 0 5px 25px;
    border-left: 4px solid var(--base-color);
    font-family: var(--alt-font);
    color: var(--dark-gray);
}
.page-content table {
    width: 100%;
    margin-bottom: 25px;
}
.page-content::after {
    content: "";
    display: block;
    clear: both;
}
form[role="search"] {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
form[role="search"],
form[role="search"] > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
form[role="search"] label {
    flex: 1 1 220px;
    margin: 0;
}
form[role="search"] input[name="s"] {
    width: 100%;
    min-height: 50px;
    padding: 10px 22px;
    border: 1px solid #c7ccd4;
    border-radius: 40px;
    background-color: #fff;
    color: var(--dark-gray);
    font-size: 16px;
}
form[role="search"] > div input[name="s"] {
    flex: 1 1 220px;
    width: auto;
}
form[role="search"] input[type="submit"] {
    min-height: 50px;
    padding: 10px 28px;
    border: 0;
    border-radius: 40px;
    background-color: var(--base-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
form[role="search"] input[type="submit"]:hover {
    background-color: var(--dark-gray);
}
.pagination.navigation,
.navigation.pagination {
    margin-top: 30px;
}
.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.navigation.pagination .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 8px 14px;
    border: 1px solid #c7ccd4;
    border-radius: 6px;
    color: var(--dark-gray);
    text-align: center;
}
.navigation.pagination .page-numbers.current,
.navigation.pagination a.page-numbers:hover {
    background-color: var(--base-color);
    border-color: var(--base-color);
    color: #fff;
}

/* 17. Contrasto */
footer,
.bg-dark-gray {
    color: #cbd0d8;
}
footer a:not([class]),
.bg-dark-gray a:not([class]) {
    color: #cbd0d8;
}
footer a:not([class]):hover,
footer a:not([class]):focus-visible,
.bg-dark-gray a:not([class]):hover,
.bg-dark-gray a:not([class]):focus-visible {
    color: #fff;
}
.bg-very-light-green p:not([class*="text-"]) {
    color: #374151;
}
.page-title-large h2,
.page-title-large .th-testata-sottotitolo,
.th-testata-sottotitolo {
    opacity: 1;
    color: rgba(255, 255, 255, 0.92);
}
.page-title-large .th-testata-sottotitolo {
    opacity: 1;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--alt-font);
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -0.5px;
}
.page-title-large .th-testata-coda {
    opacity: 1;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--alt-font);
    font-size: 18px;
    line-height: 22px;
    letter-spacing: -0.5px;
    margin-top: 10px;
}

/* 18. Gerarchia titoli: .h4 senza fs-* ha le misure del vecchio tag h4 */
.h4 {
    line-height: 2.7rem;
}
.h4:not([class*="fs-"]) {
    font-size: 2.375rem;
}

/* 19. Accordion con h3 e pulsante */
.accordion .accordion-item .accordion-header {
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
    color: inherit;
}
.accordion-style-02 .accordion-item .accordion-header {
    padding: 15px 0;
}
.th-accordion-trigger {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-align: left;
    cursor: pointer;
}
.th-accordion-trigger:focus-visible {
    outline: 3px solid var(--base-color);
    outline-offset: 4px;
}

/* 20. Slider: frecce, pausa, bullet come pulsanti */
button.swiper-button-prev,
button.swiper-button-next {
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    border: 0;
    font: inherit;
}
.slider-navigation-style-04.swiper-button-prev,
.slider-navigation-style-04.swiper-button-next {
    flex-shrink: 0;
}
button.swiper-button-prev:focus-visible,
button.swiper-button-next:focus-visible {
    outline: 3px solid var(--base-color);
    outline-offset: 3px;
}
button.swiper-pagination-bullet {
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    border: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.swiper-pagination button.swiper-pagination-bullet:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}
.th-slider-toggle {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.th-slider-toggle:hover {
    opacity: 0.8;
}
.th-slider-toggle-icon {
    position: relative;
    display: block;
    width: 14px;
    height: 16px;
}
.th-slider-toggle-icon::before,
.th-slider-toggle-icon::after {
    content: "";
    position: absolute;
    top: 0;
    width: 4px;
    height: 16px;
    background-color: currentColor;
}
.th-slider-toggle-icon::before {
    left: 1px;
}
.th-slider-toggle-icon::after {
    right: 1px;
}
.th-slider-toggle[aria-pressed="true"] .th-slider-toggle-icon::before {
    left: 2px;
    width: 0;
    height: 0;
    background: transparent;
    border-style: solid;
    border-width: 8px 0 8px 13px;
    border-color: transparent transparent transparent currentColor;
}
.th-slider-toggle[aria-pressed="true"] .th-slider-toggle-icon::after {
    display: none;
}
.slider-navigation-style-04 ~ .th-slider-toggle {
    margin-left: 5px;
    border: 0;
    background-color: #fff;
    color: var(--dark-gray);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.slider-navigation-style-04 ~ .th-slider-toggle:focus-visible {
    outline: 3px solid var(--base-color);
    outline-offset: 3px;
}
.swiper-number-pagination .th-slider-toggle {
    position: absolute;
    bottom: 63px;
    right: 15px;
    z-index: 2;
    border: 2px solid #fff;
    background-color: rgba(31, 34, 32, 0.6);
    color: #fff;
}
.swiper-number-pagination .th-slider-toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--dark-gray);
}
@media (min-width: 992px) {
    .swiper-number-pagination .th-slider-toggle {
        right: auto;
        left: calc(6% + 210px);
    }
}

/* 21. Galleria scheda lavoro: gutter dimezzato (da 30px a 16px tra le foto) */
.grid.gallery-wrapper.gutter-extra-large li {
    padding: 8px;
}
@media (max-width: 767px) {
    .grid.gallery-wrapper.gutter-extra-large {
        margin: 0 -8px;
    }
}

/* 22. Video e presentazione estesa (scheda lavoro) */
.th-estesa-video {
    background-color: #eceff1;
    border-radius: 6px;
    padding: 10px;
}
.th-estesa-video .th-embed {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.th-estesa-video .th-embed + .th-embed {
    margin-top: 20px;
}
@media (min-width: 992px) {
    .th-estesa-testo {
        padding-left: 40px;
    }
}
@media (max-width: 991px) {
    .th-estesa-testo {
        margin-top: 40px;
    }
}

/* 23. Gallerie scheda lavoro: ogni galleria ha il suo titolo e una griglia a tutta larghezza */
.th-gallerie .container-fluid {
    padding-left: 24px;
    padding-right: 24px;
}
.th-gallerie .th-galleria-blocco + .th-galleria-blocco {
    margin-top: 70px;
}
.th-galleria-titolo {
    padding-left: 8px;
}
@media (max-width: 767px) {
    .th-gallerie .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
    .th-gallerie .th-galleria-blocco + .th-galleria-blocco {
        margin-top: 50px;
    }
    .th-galleria-titolo {
        padding-left: 0;
    }
}

/* 24. Liste nella presentazione estesa e negli accordion degli approfondimenti (scheda lavoro)
   ul: cerchio azzurro con spunta verde, come i punti elenco del sito; ul annidata: pallino blu.
   ol: numero in cerchio blu. Il carattere \200B nei ::before mantiene la semantica di lista in Safari/VoiceOver. */
.th-estesa .page-content ul,
.bg-very-light-green .accordion-body ul,
.th-estesa .page-content ol,
.bg-very-light-green .accordion-body ol {
    list-style: none;
    padding-left: 0;
    margin: 0 0 24px;
}
.th-estesa .page-content ul > li,
.bg-very-light-green .accordion-body ul > li,
.th-estesa .page-content ol > li,
.bg-very-light-green .accordion-body ol > li {
    position: relative;
    margin-bottom: 12px;
}
.th-estesa .page-content ul > li:last-child,
.bg-very-light-green .accordion-body ul > li:last-child,
.th-estesa .page-content ol > li:last-child,
.bg-very-light-green .accordion-body ol > li:last-child {
    margin-bottom: 0;
}
.th-estesa .page-content ul > li,
.bg-very-light-green .accordion-body ul > li {
    padding-left: 36px;
}
.th-estesa .page-content ul > li::before,
.bg-very-light-green .accordion-body ul > li::before {
    content: "\200B";
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--very-light-blue);
}
.th-estesa .page-content ul > li::after,
.bg-very-light-green .accordion-body ul > li::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    width: 5px;
    height: 9px;
    border: solid var(--green);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.th-estesa .page-content ol,
.bg-very-light-green .accordion-body ol {
    counter-reset: th-ol;
}
.th-estesa .page-content ol > li,
.bg-very-light-green .accordion-body ol > li {
    counter-increment: th-ol;
    padding-left: 44px;
}
.th-estesa .page-content ol > li::before,
.bg-very-light-green .accordion-body ol > li::before {
    content: counter(th-ol);
    position: absolute;
    left: 0;
    top: 1px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--base-color);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 26px;
    text-align: center;
}
.th-estesa .page-content li > ul,
.bg-very-light-green .accordion-body li > ul,
.th-estesa .page-content li > ol,
.bg-very-light-green .accordion-body li > ol {
    margin: 12px 0 0;
}
.th-estesa .page-content ul ul > li::before,
.bg-very-light-green .accordion-body ul ul > li::before {
    top: 9px;
    left: 5px;
    width: 10px;
    height: 10px;
    background-color: var(--base-color);
}
.th-estesa .page-content ul ul > li::after,
.bg-very-light-green .accordion-body ul ul > li::after {
    display: none;
}
.th-estesa .page-content ul ul > li,
.bg-very-light-green .accordion-body ul ul > li {
    padding-left: 30px;
}

/* Accordion degli approfondimenti: fondo azzurro, quindi cerchio bianco; testo scuro come i paragrafi (#374151) */
.bg-very-light-green .accordion-body {
    color: #374151;
}
.bg-very-light-green .accordion-body ul > li::before {
    background-color: #fff;
}
.bg-very-light-green .accordion-body > :last-child {
    margin-bottom: 0;
}

/* 25. Download (files): blocco grigio sotto il testo esteso, card in riga (flex) */
.th-estesa .page-content > :last-child {
    margin-bottom: 0;
}
.th-estesa-files {
    padding: 10px;
    border-radius: 6px;
    background-color: #eceff1;
}
.page-content + .th-estesa-files {
    margin-top: 30px;
}
.th-estesa-video + .th-estesa-files {
    margin-top: 10px;
}
.th-estesa-files-titolo {
    margin: 0 0 10px;
    font-family: var(--alt-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: var(--dark-gray);
}
.th-estesa-files-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.th-estesa-files-lista > li {
    display: flex;
    flex: 1 1 260px;
    max-width: 380px;
    margin: 0;
}
.th-file-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: var(--dark-gray);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.th-file-icona {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--very-light-blue);
    color: var(--base-color);
    font-size: 14px;
    transition: background-color 0.3s ease;
}
.th-file-testo {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.th-file-nome {
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.th-file-meta {
    font-size: 13px;
    line-height: 18px;
    color: var(--medium-gray);
    transition: color 0.3s ease;
}
.th-file-link:hover,
.th-file-link:focus-visible {
    background-color: var(--base-color);
    color: #fff;
}
.th-file-link:hover .th-file-icona,
.th-file-link:focus-visible .th-file-icona {
    background-color: #fff;
}
.th-file-link:hover .th-file-meta,
.th-file-link:focus-visible .th-file-meta {
    color: rgba(255, 255, 255, 0.85);
}
.th-file-link:focus-visible {
    outline-color: var(--dark-gray);
    outline-offset: 3px;
}

/* 26. Dati progetto: valori allineati a sinistra (anche su mobile, dove la colonna e' centrata) e font leggermente ridotto */
.th-dati-lista .th-dati-valore {
    min-width: 0;
    text-align: left;
    font-size: 15px;
    line-height: 24px;
    overflow-wrap: anywhere;
}

/* 27. Gallerie aperte separatamente: card nella scheda, popup con griglia a blocchi, visore a schermo intero */
.th-galleria-card {
    display: block;
    color: var(--dark-gray);
    text-decoration: none;
}
.th-galleria-card-img {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
    background-color: var(--dark-gray);
}
.th-galleria-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.th-galleria-card:hover .th-galleria-card-img img,
.th-galleria-card:focus-visible .th-galleria-card-img img {
    transform: scale(1.05);
}
.th-galleria-card-icona {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--dark-gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.th-galleria-card-titolo {
    display: block;
    margin-top: 12px;
    font-family: var(--alt-font);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}
.th-galleria-card:hover .th-galleria-card-titolo,
.th-galleria-card:focus-visible .th-galleria-card-titolo {
    color: var(--base-color);
}
.th-galleria-card-meta {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    line-height: 20px;
    color: #374151;
}

/* Griglia di miniature (popup e pagina intera) */
.th-galleria-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.th-galleria-lista > li {
    margin: 0;
}
.th-galleria-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
    background-color: var(--dark-gray);
}
.th-galleria-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.th-galleria-thumb:hover img,
.th-galleria-thumb:focus-visible img {
    transform: scale(1.06);
}
.th-galleria-altre-wrap {
    margin: 24px 0 0;
    text-align: center;
}
.th-galleria-altre[aria-disabled="true"] {
    opacity: 0.6;
    pointer-events: none;
}
.th-galleria-pagina .th-galleria-lista {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.th-galleria-torna {
    margin: 30px 0 0;
    text-align: center;
}

/* Popup della galleria */
html.th-dialog-aperto {
    overflow: hidden;
}
.th-dialog::backdrop,
.th-visore::backdrop {
    background-color: rgba(31, 34, 32, 0.82);
}
.th-dialog {
    width: min(1200px, 94vw);
    height: 90vh;
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background-color: #fff;
    color: var(--dark-gray);
    overflow: hidden;
}
.th-dialog-in {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.th-dialog-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 12px 12px 20px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #fff;
}
.th-dialog-titolo {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}
.th-dialog-corpo {
    flex: 1 1 auto;
    padding: 20px;
    overflow: auto;
    background-color: #eceff1;
}
.th-dialog-attesa,
.th-dialog-errore {
    margin: 0;
    text-align: center;
}
.th-dialog-chiudi,
.th-visore-chiudi,
.th-visore-prec,
.th-visore-succ {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    transition: background-color 0.3s ease;
}
.th-dialog-chiudi {
    background-color: #eceff1;
    color: var(--dark-gray);
}
.th-dialog-chiudi:hover {
    background-color: #dfe3e6;
}
@media (max-width: 767px) {
    .th-dialog {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    .th-dialog-corpo {
        padding: 12px;
    }
    .th-galleria-lista {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }
}

/* Visore a schermo intero */
.th-visore {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background-color: rgba(15, 17, 16, 0.97);
    color: #fff;
    overflow: hidden;
}
.th-visore-in {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.th-visore-fig {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: calc(100vw - 160px);
    margin: 0;
    padding: 56px 0 16px;
}
.th-visore-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 130px);
    object-fit: contain;
}
.th-visore-didascalia {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-top: 10px;
    font-size: 14px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.9);
}
.th-visore-chiudi,
.th-visore-prec,
.th-visore-succ {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.th-visore-chiudi:hover,
.th-visore-prec:hover,
.th-visore-succ:hover {
    background-color: rgba(255, 255, 255, 0.28);
}
.th-visore-chiudi {
    top: 12px;
    right: 12px;
}
.th-visore-prec,
.th-visore-succ {
    top: 50%;
    transform: translateY(-50%);
}
.th-visore-prec {
    left: 16px;
}
.th-visore-succ {
    right: 16px;
}
.th-visore button:focus-visible {
    outline-color: #fff;
}
@media (max-width: 767px) {
    .th-visore-fig {
        max-width: 100vw;
        padding: 56px 12px 90px;
    }
    .th-visore-img {
        max-height: calc(100vh - 170px);
    }
    .th-visore-prec,
    .th-visore-succ {
        top: auto;
        bottom: 18px;
        transform: none;
    }
    .th-visore-prec {
        left: 20px;
    }
    .th-visore-succ {
        right: 20px;
    }
}

/* 28. Attrezzature (pagina Azienda): tabelle per categoria su due colonne, una sola colonna sotto i 992px */
.th-attrezzature-colonne {
    column-count: 2;
    column-gap: 30px;
}
.th-attrezzature-gruppo {
    break-inside: avoid;
    margin-bottom: 30px;
}
.th-attrezzature .table-responsive {
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.th-attrezzature-tabella caption {
    caption-side: top;
    padding: 14px 15px;
    background-color: var(--dark-gray);
    color: #fff;
    font-family: var(--alt-font);
    font-size: 17px;
    font-weight: 600;
    line-height: 24px;
}
.th-attrezzature-tabella .th-attr-qta {
    width: 1%;
    white-space: nowrap;
    text-align: right;
    font-weight: 600;
    color: var(--dark-gray);
}
@media (max-width: 991px) {
    .th-attrezzature-colonne {
        column-count: 1;
    }
}
@media (max-width: 575px) {
    .th-attrezzature-tabella caption {
        font-size: 15px;
    }
}

/* 29. Pulsanti .btn-switch-text: il template applica padding e display a ogni span figlio, compreso lo
   span .screen-reader-text, che restava in flusso e allargava il pulsante a destra (testo non centrato). */
.btn.btn-switch-text > span.screen-reader-text {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
}

/* 30. Footer: colonna Trasparenza con pallino a sinistra, senza margini laterali (il rientro serve solo al pallino) */
footer ul.th-footer-puntato {
    margin: 0;
    padding: 0 0 0 1.1em;
    list-style: disc outside;
}
footer ul.th-footer-puntato > li {
    display: list-item;
    list-style: disc outside;
    margin-right: 0;
    padding: 0;
    color: #cbd0d8;
    overflow-wrap: anywhere;
}
footer ul.th-footer-puntato > li::marker {
    color: #cbd0d8;
}

/* 31. Titolo delle slide della Home: 3/4 di fs-75 (74,7px -> 56px) e di lg-fs-55 (55px -> 41px) */
.th-slide-titolo {
    font-size: 3.5rem;
    line-height: 3.5rem;
}
@media (max-width: 1199px) {
    .th-slide-titolo {
        font-size: 2.575rem;
        line-height: 2.6rem;
    }
}

/* 32. Contatti: blocchi sede operativa e sede legale */
.th-sede-titolo {
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 2rem;
    color: var(--dark-gray);
}
.th-sede-lista {
    margin: 0;
    padding: 0;
    list-style: none;
}
.th-sede-lista > li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0 0 20px;
}
.th-sede-lista > li:last-child {
    margin-bottom: 0;
}
.th-sede-lista > li > i {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--very-light-blue);
    color: var(--base-color);
    font-size: 17px;
    line-height: 36px;
    text-align: center;
}
.th-sede-lista > li > div {
    min-width: 0;
}
.th-sede-etichetta {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 20px;
    text-transform: uppercase;
    color: var(--base-color);
}
.th-sede-valore {
    display: block;
    margin: 0;
    font-style: normal;
    color: var(--dark-gray);
    overflow-wrap: anywhere;
}
a.th-sede-valore:hover {
    color: var(--base-color);
}
.th-sede-mappa {
    display: inline-block;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-gray);
}
