/* =========================================================
   COSTRUZIONI GUGLIETTA ABRAMO - STYLE.CSS (CLEAN)
   Basato su Bootstrap, personalizzato per il brand CGA
   ========================================================= */

/* ---------- RESET MINIMO / UTILI ---------- */

html, body {
    height: 100%;
}

body {
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

/* Link */

a {
    color: #f46b2a;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover,
a:focus {
    color: #4a2b1f;
    text-decoration: underline;
}

/* Titoli */

h1, h2, h3, h4, h5, h6 {
    font-family: "Oswald", Arial, sans-serif;
    font-weight: 500;
    color: #4a2b1f;
    margin-top: 0;
    margin-bottom: 15px;
}

h1 span,
h2 span,
h3 span {
    color: #f46b2a;
}

/* Helpers */

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Focus accessibilità */

button:focus,
.button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #f47b34;
    outline-offset: 2px;
}

/* =========================================================
   PALETTE & BRAND
   ========================================================= */

:root {
    --cga-brown: #4a2b1f;
    --cga-orange: #f46b2a;
    --cga-cream: #fff7ec;
    --cga-dark-text: #333333;
}

/* Bottoni generici */

.button,
a.button,
.quote-btn a,
.readmore a,
button,
input[type="submit"] {
    display: inline-block;
    background: var(--cga-orange);
    border: none;
    color: #ffffff;
    padding: 10px 25px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 2px;
    font-size: 13px;
}

.button:hover,
a.button:hover,
.quote-btn a:hover,
.readmore a:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--cga-brown);
    color: #ffffff;
}

/* =========================================================
   TOP BAR (PAYOFF + SOCIAL)
   ========================================================= */

.top-bar {
    background: var(--cga-brown);
    color: #ffffff;
    font-size: 13px;
    padding: 8px 0;
}

.top-text {
    color: #ffffff;
}

.topbar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

.topbar-links li {
    display: inline-block;
}

.topbar-links li span {
    color: #ffffff;
    font-size: 12px;
    vertical-align: middle;
    margin-right: 10px;
}

.topbar-links a {
    color: #ffffff;
    margin-left: 8px;
}

.topbar-links a i {
    vertical-align: middle;
    font-size: 20px;
    color: #fbb040;
}

.topbar-links a:hover i {
    color: var(--cga-orange);
}

/* =========================================================
   HEADER & NAVBAR
   ========================================================= */

.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
    position: relative;
    z-index: 50; /* sopra slider */
}

.header .logo img {
    max-height: 55px;
    width: auto;
}

/* Navigazione */

.navigationwrape {
    position: relative;
    z-index: 51;
}

.navigationwrape .navbar {
    margin: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    position: relative;
    z-index: 51;
}

.navigationwrape .navbar-nav > li {
    position: relative;
}

.navigationwrape .navbar-nav > li > a {
    padding: 25px 15px;
    color: var(--cga-brown);
    font-weight: 600;
    font-size: 14px;
    text-transform: none;
}

.navigationwrape .navbar-nav > li > a:hover,
.navigationwrape .navbar-nav > li > a:focus,
.navigationwrape .navbar-nav > li > a.active,
.navigationwrape .navbar-nav > .open > a,
.navigationwrape .navbar-nav > .open > a:focus,
.navigationwrape .navbar-nav > .open > a:hover {
    color: var(--cga-orange);
    background: transparent;
}

/* Dropdown Servizi */

.navigationwrape .dropdown-menu {
    display: none; /* default nascosto */
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 52;
    border-radius: 0;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0;
    background: #ffffff;
    min-width: 180px;
}

.navigationwrape .navbar-nav > li.open > .dropdown-menu,
.navigationwrape .navbar-nav > li.dropdown:hover > .dropdown-menu {
    display: block;
}

.navigationwrape .dropdown-menu > li > a {
    padding: 10px 15px;
    color: var(--cga-brown);
    font-size: 14px;
    white-space: nowrap;
}

.navigationwrape .dropdown-menu > li > a:hover {
    background: var(--cga-orange);
    color: #ffffff;
}

/* Navbar mobile */

.navbar-toggle {
    margin-top: 20px;
}

.navbar-toggle .icon-bar {
    background-color: var(--cga-brown);
}

/* =========================================================
   SLIDER / HERO (Revolution slider)
   ========================================================= */

.sliderWraper,
.tp-banner-container,
.tp-banner {
    position: relative;
    z-index: 1; /* sotto header/menu */
}

/* Titolo principale (BONIFICA / EDILIZIA) */
.slidertext1 span {
    color: #ffffff !important;
    font-family: "Oswald", sans-serif;
    font-size: 62px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 10px rgba(0,0,0,0.7);
}

/* Testi descrittivi */
.slidertext2,
.slidertext4 {
    color: #ffffff !important;
    font-size: 20px !important;
    line-height: 1.6;
    text-align: center;
    max-width: 900px;
    margin: 20px auto 0 auto;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

/* Bottone CONTATTACI */
.slidertext3 {
    margin-top: 40px !important;
}

.slidertext3 a {
    display: inline-block;
    background: #DB6A34 !important;
    color: #ffffff !important;
    padding: 14px 36px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
    transition: all 0.25s ease-in-out;
}

.slidertext3 a:hover {
    background: #4B2E19 !important;
    color: #ffffff !important;
}

/* Frecce dello slider */

.tp-leftarrow.default,
.tp-rightarrow.default {
    opacity: 1 !important;
    visibility: visible !important;
    width: 55px !important;
    height: 55px !important;
    border-radius: 50%;
    background: rgba(0,0,0,0.4) !important;
    z-index: 9999 !important;
    transition: background 0.25s ease-in-out;
    position: absolute;
}

/* Icone frecce */
.tp-leftarrow.default:before,
.tp-rightarrow.default:before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff !important;
    font-size: 26px;
    font-weight: 700;
}

.tp-leftarrow.default:before {
    content: '\2039'; /* ‹ */
}

.tp-rightarrow.default:before {
    content: '\203A'; /* › */
}

.tp-leftarrow.default:hover,
.tp-rightarrow.default:hover {
    background: rgba(0,0,0,0.65) !important;
}

/* =========================================================
   QUOTE (BARRA SOTTO SLIDER)
   ========================================================= */

.quote-wrap {
    background: var(--cga-orange);
    color: #ffffff;
    padding: 20px 0;
}

.quote-wrap h2 {
    color: #ffffff;
    font-size: 22px;
    margin: 5px 0;
}

.quote-btn {
    text-align: right;
}

.quote-btn a {
    background: #ffffff;
    color: var(--cga-brown) !important;
    border-radius: 2px;
}

.quote-btn a:hover {
    background: var(--cga-brown);
    color: #ffffff !important;
}

/* =========================================================
   SEZIONI GENERALI
   ========================================================= */

.about-wrap,
.service-wrap,
.porfolio-wrap,
.testimonials-wrap,
.team_wrap,
.inner-content {
    padding: 60px 0;
}

/* Barra titolo pagina */

.inner-heading {
    background: #2c1a12;
    padding: 40px 0;
    text-align: center;
}

.inner-heading h3 {
    font-family: "Oswald", "Open Sans", sans-serif;
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

/* =========================================================
   ABOUT
   ========================================================= */

.about-wrap.inner-about {
    background: #ffffff;
}

.about-wrap p {
    margin-bottom: 15px;
}

.about-service {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 15px;
}

.about-service li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
}

.about-service li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--cga-orange);
}

.about-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   SERVIZI (BOX HOME e PAGINE)
   ========================================================= */

.service-wrap {
    background: #ffffff;
}

.service-wrap h1 {
    text-align: left;
    margin-bottom: 30px;
}

.serviceList {
    list-style: none;
    padding: 0;
    margin: 0 -15px;
}

.serviceList > li {
    margin-bottom: 30px;
}

/* Uniforma le immagini nella sezione Servizi */
.service-image {
    width: 100%;
    height: 260px; /* puoi regolarla a 240 / 260 / 280 a piacere */
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.hoverlink {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image:hover .hoverlink {
    opacity: 1;
}

.hoverlink .icon a {
    display: inline-block;
    background: #ffffff;
    color: var(--cga-brown);
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
}

.service-details {
    padding-top: 10px;
}

.service-details h3 a {
    color: var(--cga-brown);
}
/* ================================
   SERVIZI - CARD MODERNE CLICCABILI
   ================================ */

/* il container UL */
.serviceList {
    list-style: none;
    padding: 0;
    margin: 40px -15px 80px;
}

/* ogni LI si comporta da colonna bootstrap ma con card full-height */
.serviceList > li {
    margin-bottom: 40px;
}

/* link che avvolge tutta la card */
.service-card {
    display: block;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

/* effetto hover “premium” */
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.14);
}

/* immagine della card */
.service-image {
    width: 100%;
    height: 260px;              /* altezza uniforme per tutte */
    overflow: hidden;
    position: relative;
}

/* immagine dentro la card */
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

/* zoom leggero sull'immagine al passaggio */
.service-card:hover .service-image img {
    transform: scale(1.06);
}

/* testo sotto l'immagine */
.service-details {
    padding: 18px 20px 22px;
}

.service-details h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
    color: var(--cga-brown);
}

.service-details p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
}

/* colore link sui titoli al hover */
.service-card:hover .service-details h3 {
    color: var(--cga-orange);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 991px) {
    .service-image {
        height: 220px;
    }
}

@media (max-width: 767px) {
    .serviceList {
        margin: 30px 0 50px;
    }

    .serviceList > li {
        margin-bottom: 30px;
    }

    .service-details {
        padding: 14px 16px 18px;
    }

    .service-details h3 {
        font-size: 18px;
        text-align: center;
    }

    .service-details p {
        text-align: center;
    }
}
/* Immagine in pagina singolo servizio */

.serviceWraper .service img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* =========================================================
   PORTFOLIO (ALCUNI LAVORI)
   ========================================================= */

.porfolio-wrap {
    background: var(--cga-cream);
}

.porfolio-wrap h1 {
    text-align: left;
    margin-bottom: 30px;
}

.portfolio-service {
    list-style: none;
    padding: 0;
    margin: 0 -15px;
}

.project-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-overley {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.project-image:hover .portfolio-overley {
    opacity: 1;
}

.portfolio-overley .content h3 a {
    color: #ffffff;
    font-size: 16px;
    text-transform: uppercase;
}

.portfolio-tags span {
    color: #f1f1f1;
    font-size: 13px;
}

/* =========================================================
   GALLERY
   ========================================================= */

.imgGallery {
    width: 100%;
    height: auto;
    display: block;
}

.boxImg {
    position: relative;
}

.boxImg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boxImg:hover .overlay {
    opacity: 1;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonials-wrap {
    background: #ffffff;
}

.heading-wrap h1 {
    text-align: left;
    margin-bottom: 30px;
}

.testi-info {
    background: var(--cga-cream);
    padding: 25px;
    border-radius: 4px;
    min-height: 200px;
}

.testi-info p {
    margin-bottom: 15px;
}

.testi-info .name {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

/* =========================================================
   TEAM
   ========================================================= */

.team_wrap {
    background: #ffffff;
}

.team_wrap h1 {
    text-align: left;
    margin-bottom: 10px;
}

.team_wrap p {
    margin-bottom: 30px;
}

.team {
    text-align: center;
    margin-bottom: 30px;
}

.team-image {
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: auto;
    display: block;
}

.team-info {
    background: var(--cga-cream);
    padding: 15px 10px 20px;
}

.team-info h5 a {
    color: var(--cga-brown);
    font-size: 16px;
    text-transform: uppercase;
}

.team-info span {
    display: block;
    font-size: 13px;
    color: #555555;
    margin-bottom: 10px;
}

.experts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experts li {
    display: inline-block;
    margin: 0 5px;
}

.experts li a {
    display: inline-block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 50%;
    background: var(--cga-orange);
    color: #ffffff;
}

.experts li a:hover {
    background: var(--cga-brown);
}

/* Modal team */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 4px;
    max-width: 400px;
}

.modal .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* =========================================================
   FORM / CONTATTI / PREVENTIVI
   ========================================================= */

.contact-wrap {
    margin-top: 30px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    border: 1px solid #dddddd;
    padding: 8px 10px;
    border-radius: 2px;
    font-size: 14px;
    margin-bottom: 15px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-now .contact {
    margin-bottom: 20px;
}

.contact-now .contact span {
    display: inline-block;
    margin-right: 10px;
    font-size: 18px;
    color: var(--cga-orange);
}
.contact-sidebar a {
    color: #4a2b1f !important;  /* marrone brand */
    font-weight: 600;
}

.contact-sidebar a:hover {
    color: #f46b2a !important;  /* arancione brand */
}

/* Checkbox privacy nei form */
.privacy-checkbox {
    margin-top: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.5;
}

.privacy-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.privacy-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.privacy-checkbox a {
    color: var(--cga-orange);
    text-decoration: underline;
    font-weight: 600;
}
/* =========================================================
   BLOG / TESTI LUNGHI
   ========================================================= */

.blogWraper {
    margin-top: 30px;
}

.blogdetail p {
    margin-bottom: 15px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer-wrap {
    background: var(--cga-brown);
    color: #ffffff;
    padding: 40px 0 20px;
}

.footer-wrap h3 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links li a {
    color: #f3e3d0;
    font-size: 14px;
}

.footer-links li a:hover {
    color: #ffffff;
}

.footer-address {
    margin-bottom: 10px;
}

.call-us a,
.email a {
    color: #ffffff;
}

.social a {
    margin-right: 8px;
    font-size: 18px;
}

.social a i {
    color: #ffffff;
}

.social a:hover i {
    color: var(--cga-orange);
}

.footerWrp {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 20px;
    padding-top: 10px;
    font-size: 13px;
}

.copyright {
    color: #f3e3d0;
}

.foot {
    text-align: right;
}

/* =========================================================
   SCROLL TO TOP
   ========================================================= */

.page-scroll a i {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    background: var(--cga-orange);
    color: #ffffff;
    font-size: 18px;
    z-index: 999;
}

.page-scroll a i:hover {
    background: var(--cga-brown);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .topbar-links {
        text-align: left;
        margin-top: 5px;
    }

    .navigationwrape .navbar-nav > li > a {
        padding: 10px 12px;
        font-size: 14px;
    }

    .quote-wrap {
        text-align: center;
    }

    .quote-btn {
        text-align: center;
        margin-top: 10px;
    }

    .header .logo {
        text-align: left;
        margin-bottom: 10px;
    }

    .header .logo img {
        max-height: 70px;
    }

    /* Slider */
    .slidertext1 span {
        font-size: 42px !important;
        line-height: 1.15;
    }

    .slidertext2,
    .slidertext4 {
        font-size: 18px !important;
        max-width: 80%;
    }

    .slidertext3 a {
        font-size: 14px;
        padding: 12px 30px;
    }
}

@media (max-width: 767px) {

    .header {
        padding: 10px 0;
    }

    .logo {
        text-align: center;
        margin-bottom: 10px;
    }

    .header .logo img {
        max-height: 60px;
    }

    .navigationwrape .navbar-nav > li > a {
        padding: 8px 10px;
        font-size: 13px;
    }

    .quote-wrap h2 {
        font-size: 18px;
    }

    .footerWrp .foot {
        text-align: left;
        margin-top: 10px;
    }

    /* Slider */
    .slidertext1 span {
        font-size: 32px !important;
        line-height: 1.1;
    }

    .slidertext2,
    .slidertext4 {
        font-size: 16px !important;
        padding: 0 20px;
        max-width: 90%;
    }

    .slidertext3 a {
        font-size: 13px;
        padding: 10px 26px;
    }

    .tp-leftarrow.default,
    .tp-rightarrow.default {
        width: 40px !important;
        height: 40px !important;
    }

    .inner-heading {
        padding: 28px 0;
    }

    .inner-heading h3 {
        font-size: 28px;
        letter-spacing: 0.06em;
    }
}

@media (max-width: 480px) {

    .slidertext1 span {
        font-size: 24px !important;
    }

    .slidertext2,
    .slidertext4 {
        font-size: 14px !important;
    }

    .slidertext3 a {
        font-size: 12px;
        padding: 8px 22px;
    }
}
/* ==========================================
   SUPER FIX LOGO + MENU + DROPDOWN
   ========================================== */

/* Logo ancora più piccolo */
.header .logo img {
    max-height: 60px !important;
    height: auto !important;
}

/* Menu più compatto */
.navigationwrape .navbar-nav > li > a {
    font-size: 16px !important;
    font-weight: 600;
    padding: 14px 18px !important;
    line-height: 1 !important;
}

/* Contenitore della voce Servizi */
.navigationwrape .navbar-nav > li.dropdown {
    position: relative !important;
}

/* Dropdown AGGANCIATO senza spazio */
.navigationwrape .navbar-nav > li.dropdown .dropdown-menu {
    position: absolute !important;
    top: calc(100% - 2px) !important;   /* CHIUDE il gap definitivamente */
    left: 0 !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    z-index: 9999 !important;
    border-radius: 0 0 6px 6px !important;
    border-top: none !important;        /* nessun bordo sopra */
}

/* Ombra moderna */
.navigationwrape .dropdown-menu {
    box-shadow: 0 10px 20px rgba(0,0,0,0.18) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
}

/* Voci interne del dropdown */
.navigationwrape .dropdown-menu > li > a {
    padding: 12px 20px !important;
    font-size: 15px !important;
    white-space: nowrap !important;
}

/* Hover dropdown */
.navigationwrape .dropdown-menu > li > a:hover {
    background: #f46b2a !important;
    color: #fff !important;
}
/* ===========================================
   CGA – FIX LOGO, MENU, DROPDOWN, CTA SLIDER
   =========================================== */

/* Logo un po’ più piccolo */
.header .logo img {
    max-height: 60px;
    width: auto;
}

@media (max-width: 767px) {
    .header .logo img {
        max-height: 50px;
    }
}

/* Menu leggermente più grande e compatto */
.navigationwrape .navbar-nav > li > a {
    font-size: 15px;
    padding: 24px 16px;
}

/* Dropdown “Servizi” attaccato al menu, senza buco */
.navigationwrape .navbar-nav > li.dropdown .dropdown-menu,
.navigationwrape .navbar-nav > .open > .dropdown-menu {
    margin-top: 0 !important;
}

/* Più respiro tra testo e bottone nello slider */
.slidertext3,
.tp-caption.slidertext3 {
    margin-top: 40px !important;
}
/* ===========================================
   FIX HEADER + LOGO + MENU + SLIDER GAP
   =========================================== */

/* Logo più piccolo ovunque */
.logo img {
    max-height: 46px !important;
    height: auto !important;
    width: auto !important;
}

/* Header più compatto */
.header {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    border-bottom: 1px solid #e5e5e5;
}

/* Menu un filo più grande e leggibile */
.navigationwrape .navbar-nav > li > a {
    padding: 18px 14px !important;
    font-size: 15px !important;
    font-weight: 600;
}

/* Slider attaccato all’header (niente “stacco”) */
.tp-banner-container.sliderWraper,
.sliderWraper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Frecce sempre sopra */
.tp-leftarrow.default,
.tp-rightarrow.default {
    z-index: 9999 !important;
}
/* =========================================
   HOMEPAGE 2.0 – LAYOUT & CARDS
========================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.home-main {
    background-color: #ffffff;
}

/* Sezioni generiche homepage */

.home-section {
    padding: 60px 0;
}

.home-section-header {
    text-align: left;
    max-width: 760px;
    margin-bottom: 35px;
}

.home-section-header h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.home-section-header span {
    color: var(--cga-orange);
}

.home-section-header p {
    margin: 0;
    color: #555555;
}

/* GRID SERVIZI MODERNA */

.service-grid {
    margin-top: 10px;
}

.service-card {
    display: block;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.service-card__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card__body {
    padding: 18px 20px 20px;
}

.service-card__body h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.service-card__body p {
    font-size: 14px;
    color: #555555;
    margin: 0;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.service-card:hover h3 {
    color: var(--cga-orange);
}

/* Portfolio home – un filo di respiro in più */

.home-project-grid .project-image {
    margin-bottom: 25px;
}

/* Footer sezione lavori */

.home-section-footer {
    margin-top: 10px;
}

/* CTA Button riutilizzo .button esistente */
.home-section-footer .button {
    text-transform: uppercase;
    font-weight: 700;
}

/* Testimonials – un po' più ariose */

.testimonials-wrap .testi-info {
    min-height: 0; /* lasciamo gestire al contenuto */
}

/* Team */

.team_wrap .home-section-header {
    margin-bottom: 25px;
}

/* Responsive */

@media (max-width: 991px) {
    .home-section {
        padding: 40px 0;
    }

    .service-card__image {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .home-section-header {
        text-align: center;
    }

    .home-section-header h2 {
        font-size: 24px;
    }

    .service-card__image {
        height: 190px;
    }
}
/* =========================================
   TESTIMONIANZE – CARD LAYOUT
========================================= */

.home-testimonials {
    background-color: #fffaf2; /* leggero crema, coerente col brand */
}

.home-testimonials .home-section-header {
    margin-bottom: 30px;
}

.testimonial-card {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 4px;
    padding: 22px 22px 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.testimonial-card__icon {
    flex: 0 0 auto;
    margin-right: 14px;
    font-size: 34px;
    line-height: 1;
    color: var(--cga-orange);
    font-family: "Oswald", "Open Sans", sans-serif;
}

.testimonial-card__icon span {
    display: block;
    transform: translateY(-4px);
}

.testimonial-card__body p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.7;
    color: #444444;
}

.testimonial-card__name {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--cga-brown);
}

/* Mobile: card in colonna, più morbida */
@media (max-width: 767px) {
    .testimonial-card {
        padding: 18px 18px 16px;
    }

    .testimonials-wrap .testi-info {
        min-height: 0;
    }
}
/* Correzione allineamento testimonianze */
.testimonial-card {
    margin-bottom: 25px; /* abbassato da 40/60 se presente */
}

.row .col-md-6:last-child .testimonial-card {
    margin-top: 0 !important; /* elimina lo spazio che la spinge giù */
}

/* Migliora anche la resa su mobile */
@media (max-width: 991px) {
    .testimonial-card {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
}
/* ================================
   DICONO DI NOI – GRID CARDS
   ================================ */

.testimonials-grid-section {
    background: #fff7ec; /* crema brand */
    padding: 70px 0;
}

.section-title {
    font-family: "Oswald", Arial, sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--cga-brown);
    margin: 0 0 10px;
}

.section-subtitle {
    max-width: 760px;
    font-size: 15px;
    color: #555555;
    margin: 0 0 30px;
}

/* griglia */
.testimonials-grid {
    margin-top: 10px;
}

/* card singola */
.testimonial-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 26px 26px 22px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* icona virgolette */
.testimonial-icon {
    color: var(--cga-orange);
    font-size: 20px;
    margin-bottom: 10px;
}

/* testo recensione */
.testimonial-text {
    font-size: 14px;
    line-height: 1.7;
    color: #444444;
    margin-bottom: 18px;
}

/* meta: nome + ruolo */
.testimonial-meta {
    margin-top: auto;
}

.testimonial-name {
    display: block;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cga-brown);
}

.testimonial-role {
    display: block;
    font-size: 12px;
    color: #777777;
}

/* responsive */
@media (max-width: 991px) {
    .testimonials-grid-section {
        padding: 50px 0;
    }
}

@media (max-width: 767px) {
    .section-title {
        text-align: left;
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .testimonial-card {
        padding: 22px 20px 18px;
        margin-bottom: 18px;
    }
}
/* Sezione numeri homepage */
.cga-stats {
  position: relative;
  background: url('../images/stats-background.jpg') center center/cover no-repeat;
  color: #ffffff;
}

.cga-stats-overlay {
  background: rgba(0, 0, 0, 0.55);
  padding: 70px 0;
}

.cga-stats-title {
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.cga-stats-subtitle {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
  font-size: 15px;
}

.cga-stats-row {
  text-align: center;
  margin-bottom: 25px;
}

.cga-stat-item {
  margin-bottom: 25px;
}

.cga-stat-number {
  font-family: "Oswald", sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.cga-stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

.cga-stats-claim {
  text-align: center;
  max-width: 840px;
  margin: 10px auto 0;
  font-size: 14px;
}

/* Mobile tweaks */
@media (max-width: 767px) {
  .cga-stats-overlay {
    padding: 50px 0 45px;
  }
  .cga-stats-title {
    font-size: 22px;
    line-height: 1.3;
  }
  .cga-stats-subtitle,
  .cga-stats-claim {
    font-size: 13px;
    padding: 0 15px;
  }
}
/* =========================================================
   SEZIONE SPONSOR SPORTIVO (BASKET FONDI)
   ========================================================= */

/* wrapper sezione – colore e padding dedicati */
.cga-sport-section {
  background: #f2ece4;           /* beige leggero */
  padding: 50px 0 60px;          /* un filo meno alto delle altre sezioni */
}

/* row interna */
.cga-sport-row {
  margin-left: -15px;
  margin-right: -15px;
}

/* testo */
.cga-sport-text {
  font-size: 15px;
  line-height: 1.7;
  color: #333333;
}

.cga-sport-text h2 {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4a2b1f;
  margin-bottom: 12px;
}

/* CTA */
.cga-sport-cta {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 24px;
  background: #f46b2a;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px;
  font-size: 13px;
}

.cga-sport-cta:hover,
.cga-sport-cta:focus {
  background: #4a2b1f;
  color: #ffffff;
  text-decoration: none;
}

/* card immagine */
.cga-sport-media {
  text-align: center;
}

.cga-sport-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.cga-sport-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* responsive */
@media (max-width: 767px) {
  .cga-sport-section {
    padding: 40px 0 50px;
  }

  .cga-sport-text h2 {
    font-size: 22px;
  }

  .cga-sport-text {
    margin-top: 20px;
  }
}
/* =========================================================
   SEZIONE SPONSOR SPORTIVO (BASKET FONDI)
   ========================================================= */

/* wrapper sezione – vale sia per .cga-sport che per .cga-sport-wrap */
.cga-sport,
.cga-sport-wrap {
  background: #f2ece4;                 /* colore diverso da portfolio e news */
  padding: 70px 0;
  border-top: 2px solid rgba(0,0,0,0.04);
}

/* row interna sezione sport */
.cga-sport-row {
  display: flex;
  align-items: center;
}

/* testo (colonna) */
.cga-sport-text {
  font-size: 15px;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 25px;      /* su mobile stacca dall’immagine */
}

.cga-sport-text h2 {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4a2b1f;
  margin-bottom: 10px;
}

.cga-sport-kicker {
  font-weight: 600;
  color: #f46b2a;
  margin-bottom: 15px;
}

/* CTA */
.cga-sport-cta {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 24px;
  background: #f46b2a;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 3px;
  font-size: 13px;
}

.cga-sport-cta:hover,
.cga-sport-cta:focus {
  background: #4a2b1f;
  color: #ffffff;
  text-decoration: none;
}

/* colonna immagine */
.cga-sport-media {
  text-align: center;
}

/* card immagine Basket Fondi */
.cga-sport-card {
  width: 100%;
  max-width: 350px;              
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.cga-sport-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* responsive */
@media (min-width: 992px) {
  .cga-sport-text {
    margin-bottom: 0;       /* su desktop testo e card allineati */
  }
}

@media (max-width: 767px) {
  .cga-sport,
  .cga-sport-wrap {
    padding: 50px 0;
  }

  .cga-sport-row {
    flex-direction: column;
  }

  .cga-sport-media {
    margin-top: 20px;
  }

  .cga-sport-text h2 {
    font-size: 24px;
  }
}

/* Portfolio: resta crema */
.porfolio-wrap {
  background: var(--cga-cream); /* #fff7ec */
}

/* Dicono di noi: stacco su bianco */
.testimonials-grid-section {
  background: #ffffff;
  padding: 70px 0;
  border-top: 1px solid rgba(0,0,0,0.04); /* stacco leggero */
}

/* Per evitare che sembrino attaccate */
.porfolio-wrap {
  padding-bottom: 60px;
}
.testimonials-grid-section {
  padding-top: 70px;
}
/* Sezione news */
/* Sezione Ultime novità – stile coerente con la sezione numeri */
.home-news {
    background: #6f6f6f;              /* grigio scuro simile all’overlay dei numeri */
    padding: 70px 0;
    color: #ffffff;                   /* testi generici bianchi */
}

/* Titolo e testo introduttivo */
.home-news .home-section-header h2 {
    color: #ffffff;
}


.home-news .home-section-header p {
    color: #f0f0f0;
}

/* Card articolo: restano bianche per contrasto */
.home-news .news-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: transform .2s ease, box-shadow .2s ease;
    color: #333333;                  /* testo interno scuro */
}

.home-news .news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

/* Meta, titolo, link dentro la card */
.home-news .news-meta {
    margin-bottom: 10px;
}

.home-news .news-category {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    color: #f46b2a;
    margin-right: 10px;
}

.home-news .news-date {
    font-size: 12px;
    color: #777;
}

.home-news .news-title a {
    color: #4a2b1f;
    font-weight: 700;
}

.home-news .news-title a:hover {
    color: #f46b2a;
}

.home-news .news-read {
    display: inline-block;
    margin-top: 12px;
    color: #f46b2a;
    font-weight: 700;
    text-decoration: none;
}

.home-news .news-read:hover {
    text-decoration: underline;
}

/* Footer con bottone */
.home-news .home-section-footer {
    margin-top: 35px;
    text-align: center;
}

.home-news .home-section-footer .button {
    background: #f46b2a;
    border-radius: 3px;
}

.home-news .home-section-footer .button:hover {
    background: #4a2b1f;
}
/* Riduce lo spazio sopra la sezione sport */
.cga-sport-section {
    padding-top: 30px !important;
}
/* =========================================
   MICRO-ANIMAZIONI HOVER – COSTRUZIONI GA
   ========================================= */

/* 1. CTA grandi (bottoni arancioni, compreso sport) */
.button,
a.button,
.quote-btn a,
.readmore a,
input[type="submit"],
.cga-sport-cta {
    transition: transform .18s ease-out, box-shadow .22s ease-out, background-color .18s ease-out;
}

.button:hover,
a.button:hover,
.quote-btn a:hover,
.readmore a:hover,
input[type="submit"]:hover,
.cga-sport-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.22);
}

/* 2. Card Servizi – sollevamento + zoom immagine */
.service-card {
    transition: transform .25s ease-out, box-shadow .25s ease-out;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}

.service-card__image img,
.service-image img {
    transition: transform .35s ease-out;
}

.service-card:hover .service-card__image img,
.serviceList > li:hover .service-image img {
    transform: scale(1.06);
}

/* 3. Card News – sollevamento evidente */
.home-news .news-card {
    transition: transform .24s ease-out, box-shadow .24s ease-out;
}

.home-news .news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* 4. Portfolio – zoom leggero sulle immagini */
.project-image img {
    transition: transform .3s ease-out;
}

.project-image:hover img {
    transform: scale(1.05);
}

/* 5. Testimonianze – card con micro-lift */
.testimonial-card {
    transition: box-shadow .25s ease-out, transform .25s ease-out;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}

/* 6. Card Team – leggera animazione sui nostri esperti */
.team {
    transition: transform .25s ease-out, box-shadow .25s ease-out;
}

.team:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

/* 7. Sezione sport – immagine che “respira” al hover */
.cga-sport-card {
    transition: transform .28s ease-out, box-shadow .28s ease-out;
}

.cga-sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
/* Fade-in on scroll */
.scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}
/* =========================================
   PAGINA PREVENTIVO – LAYOUT & STILE
   ========================================= */

.preventivo-page {
    background: #ffffff;
    padding: 50px 0;
}

.preventivo-form-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 25px 25px 30px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.preventivo-form-header h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.preventivo-form-header h2 span {
    color: var(--cga-orange);
}

.preventivo-form-header p {
    margin-bottom: 22px;
    color: #555555;
}

/* Label + campi */
.preventivo-form-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    color: #4a2b1f;
}

.preventivo-form-card input,
.preventivo-form-card select,
.preventivo-form-card textarea {
    width: 100%;
    border: 1px solid #dddddd;
    border-radius: 3px;
    padding: 8px 10px;
    font-size: 14px;
    margin-bottom: 16px;
    transition: border-color .18s ease-out, box-shadow .18s ease-out;
}

.preventivo-form-card textarea {
    resize: vertical;
    min-height: 120px;
}

/* Focus elegante */
.preventivo-form-card input:focus,
.preventivo-form-card select:focus,
.preventivo-form-card textarea:focus {
    border-color: var(--cga-orange);
    box-shadow: 0 0 0 2px rgba(244,107,42,0.18);
    outline: none;
}

/* Nota campi */
.preventivo-note {
    font-size: 13px;
    color: #777777;
    margin-bottom: 10px;
}

/* Sidebar contatti */
.contact-sidebar {
    background: #fff7ec;
    border-radius: 6px;
    padding: 24px 22px 22px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.06);
    font-size: 14px;
    color: #333333;
}

.contact-sidebar h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
}

.contact-sidebar ul {
    padding-left: 18px;
    margin-bottom: 16px;
}

.contact-sidebar ul li {
    margin-bottom: 4px;
}

/* Link contatti leggibili (no bianco su bianco) */
.contact-sidebar a {
    color: #4a2b1f !important;
    font-weight: 600;
}

.contact-sidebar a:hover {
    color: #f46b2a !important;
    text-decoration: underline;
}

.contact-sidebar-note {
    margin-bottom: 0;
}

/* Micro-animazioni su form e sidebar */
.preventivo-form-card,
.contact-sidebar {
    transition: transform .22s ease-out, box-shadow .22s ease-out;
}

.preventivo-form-card:hover,
.contact-sidebar:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.16);
}

/* Responsive */
@media (max-width: 991px) {
    .preventivo-page {
        padding: 35px 0 45px;
    }

    .preventivo-form-card {
        margin-bottom: 25px;
    }
}

@media (max-width: 767px) {
    .preventivo-form-header h2 {
        font-size: 22px;
    }
}
/* =========================================
   PAGINA CHI SIAMO – ABOUT PAGE
   ========================================= */

.about-page {
    background: #ffffff;
    padding: 60px 0 70px;
}

.about-intro {
    margin-bottom: 50px;
    align-items: center;
}

.about-intro-text h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.about-intro-text h1 span {
    color: var(--cga-orange);
}

.about-intro-text p {
    font-size: 15px;
    color: #444444;
    margin-bottom: 12px;
}

.about-intro-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Sezioni titolo secondarie */

.about-section-title {
    font-family: "Oswald", Arial, sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--cga-brown);
    margin: 0 0 8px;
}

.about-section-title span {
    color: var(--cga-orange);
}

.about-section-subtitle {
    font-size: 14px;
    color: #555555;
    margin: 0 0 24px;
}

/* Cards “Cosa facciamo” */

.about-services-row {
    margin-bottom: 40px;
}

.about-pillar-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 20px 20px 18px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.06);
    height: 100%;
    transition: transform .22s ease-out, box-shadow .22s ease-out;
}

.about-pillar-card h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 8px;
}

.about-pillar-card .about-service {
    margin-top: 6px;
}

.about-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.14);
}

/* Storia / timeline */

.about-history-row {
    margin-top: 20px;
    margin-bottom: 40px;
}

.about-history-timeline {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    border-left: 2px solid rgba(0,0,0,0.06);
}

.about-history-timeline li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 14px;
}

.about-history-timeline li::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cga-orange);
}

.about-history-timeline .year {
    display: inline-block;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cga-brown);
    margin-bottom: 3px;
}

/* Card valori */

.about-values-card {
    background: #fff7ec;
    border-radius: 6px;
    padding: 20px 20px 18px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.06);
    height: 100%;
    transition: transform .22s ease-out, box-shadow .22s ease-out;
}

.about-values-card h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 10px;
}

.about-values-card ul {
    padding-left: 18px;
    margin: 0;
    font-size: 14px;
    color: #444444;
}

.about-values-card li {
    margin-bottom: 6px;
}

.about-values-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.14);
}

/* CTA finale */

.about-cta-row {
    margin-top: 10px;
}

.about-cta-row .about-section-title {
    text-align: center;
    margin-bottom: 6px;
}

.about-cta-row .about-section-subtitle {
    text-align: center;
    margin-bottom: 18px;
}

/* Responsive */

@media (max-width: 991px) {
    .about-page {
        padding: 40px 0 50px;
    }

    .about-intro {
        margin-bottom: 35px;
    }

    .about-services-row {
        margin-bottom: 30px;
    }

    .about-history-row {
        margin-bottom: 30px;
    }

    .about-pillar-card,
    .about-values-card {
        margin-bottom: 18px;
    }
}

@media (max-width: 767px) {
    .about-intro-text h1 {
        font-size: 26px;
    }

    .about-section-title {
        font-size: 22px;
    }

    .about-intro {
        text-align: left;
    }

    .about-intro-image {
        margin-top: 18px;
    }
}
/* Spazio extra sopra le CTA nelle pagine Servizi */
.serviceWraper .button,
.serviceWraper .readmore a {
    display: inline-block;
    margin-top: 22px;   /* distanza dal testo sopra */
    margin-bottom: 22px; /* un filo d’aria anche sotto */
}
/* ===========================================
   HERO IMMAGINE PAGINE SERVIZI
   =========================================== */

.service-hero {
    width: 100%;
    height: 380px;               /* altezza ottimale */
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 35px;         /* separazione dal titolo */
}

.service-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* mantiene proporzioni senza deformare */
    object-position: center;     /* centrare l’immagine */
    display: block;
}

/* Mobile */
@media (max-width: 767px) {
    .service-hero {
        height: 240px;
        margin-bottom: 25px;
    }
}
.service-hero img {
    border-radius: 6px;
}
.servicePage {
    padding: 60px 0;
}

.servicePageIntro img.service-cover-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.service-intro-text {
    font-size: 17px;
    margin-bottom: 15px;
}

.cta-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.primary-cta {
    background: #d66c3a;
    color: #fff;
}

.secondary-cta {
    border: 2px solid #d66c3a;
    color: #d66c3a;
}

.primary-cta:hover,
.secondary-cta:hover {
    opacity: 0.85;
}

.servicePageSection {
    margin-top: 60px;
}

.servicePageSection h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.service-list li {
    margin-bottom: 10px;
}
/* CTA container */
.cta-group {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

/* Base CTA */
.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  text-decoration: none !important;
}

/* CTA primaria – colore brand SEZIONE NUMERI */
.cta-primary {
  background-color: #3a2b22; /* marrone CGA */
  color: #fff !important;
}

.cta-primary:hover {
  background-color: #2e2119; /* un tono più scuro */
}

/* CTA secondaria */
.cta-secondary {
  border: 2px solid #d66c3a;
  color: #d66c3a !important;
  background: transparent;
}

.cta-secondary:hover {
  background-color: #d66c3a;
  color: #fff !important;
}
/* Gruppo CTA – affiancate su desktop */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

/* Stile base CTA – sovrascrive i vecchi .button */
a.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;          /* meno alte e meno larghe */
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  line-height: 1.2;
  text-decoration: none !important;
  border: none;
  background: transparent;
}

/* CTA primaria – marrone brand (non nero) */
a.cta-primary {
  background-color: #3a2b22 !important;  /* marrone CGA */
  color: #ffffff !important;
}

a.cta-primary:hover {
  background-color: #2b1f18 !important;  /* leggermente più scuro in hover */
}

/* CTA secondaria – bordo arancione */
a.cta-secondary {
  border: 2px solid #d66c3a;
  color: #d66c3a !important;
  background: transparent;
}

a.cta-secondary:hover {
  background-color: #d66c3a;
  color: #ffffff !important;
}

/* Mobile: le mettiamo una sotto l'altra e un po' più larghe */
@media (max-width: 767px) {
  .cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  a.cta-btn {
    width: 100%;
    max-width: 320px;
  }
}
/* CTA primaria – stesso colore della sezione numeri */
a.cta-primary {
  background-color: #727171 !important;  /* colore richiesto */
  color: #ffffff !important;
  border: none;
}

a.cta-primary:hover {
  background-color: #5e5d5d !important; /* leggero scuro in hover */
}
/* ==== GALLERY PAGE ==== */

.gallery-page {
  padding: 60px 0 80px;
}

.gallery-intro p {
  font-size: 17px;
  max-width: 720px;
  margin-top: 20px;
}

.gallery-grid-section {
  margin-top: 20px;
}

.cga-gallery-grid {
  margin-top: 10px;
}

.cga-gallery-card {
  margin-bottom: 24px;
}

.cga-gallery-link {
  text-decoration: none;
}

.cga-gallery-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #f5f5f5;
}

.cga-gallery-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.cga-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  padding: 15px;
}

.cga-gallery-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
  opacity: 0.8;
}

.cga-gallery-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cga-gallery-icon img {
  width: 32px;
  height: auto;
}

.cga-gallery-image-wrap:hover img {
  transform: scale(1.05);
}

.cga-gallery-image-wrap:hover .cga-gallery-overlay {
  opacity: 1;
}

/* Mobile spacing */
@media (max-width: 767px) {
  .gallery-page {
    padding: 40px 0 60px;
  }

  .gallery-intro p {
    font-size: 16px;
  }
}
.cert-list li {
  margin-bottom: 20px;
  line-height: 1.5;
}

.cert-list .cert-desc {
  font-weight: 300;
  color: #555;
}
/* ===== Pagina Finanziamenti: wrapper pagina ===== */
.finanziamenti-page {
  padding: 50px 0 70px;
}

.finanziamenti-page h2 {
  margin-bottom: 10px;
}

.finanziamenti-page .fin-lead {
  max-width: 820px;
  font-size: 15px;
  color: #555;
}
.fin-section-title { margin: 0 0 10px 0; }
.fin-lead { margin: 0 0 18px 0; line-height: 1.6; }

.fin-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 22px;
}

.fin-logos-wrap{
  background:#fff7ec;
  border:1px solid #f0e2d3;
  border-radius:12px;
  padding:14px 16px;
  margin:12px 0 16px;
}

/* Spaziature più “CGA” (meno vuoto) */
.fin-card hr { margin: 18px 0; }
.fin-meta p { margin: 0 0 8px 0; }
.fin-meta strong { display: inline-block; min-width: 140px; }

/* ===== Bottoni CGA (niente blu) ===== */
.btn-cga {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  text-decoration: none !important;
  transition: all .15s ease;
  border: 2px solid #d77a2a;   /* arancio CGA */
  background: #d77a2a;
  color: #fff !important;
  margin-right: 10px;
}

.btn-cga:hover { filter: brightness(0.95); }

.btn-cga-outline {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  text-decoration: none !important;
  transition: all .15s ease;
  border: 2px solid #3b2418;   /* marrone CGA */
  background: transparent;
  color: #3b2418 !important;
}

.btn-cga-outline:hover { background: rgba(59,36,24,.06); }

/* CTA row: distanza corretta e wrap su mobile */
.fin-cta { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }

/* “Contributo ammesso” più visibile ma sobrio */
.fin-amount {
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 12px;
}
.fin-amount p { margin: 0; font-weight: 700; }

/* ===========================================
   STEP 2 – HEADER MOBILE + HERO SPACING
   Solo mobile (max-width: 767px)
   =========================================== */

@media (max-width: 767px) {

    /* 1. Nasconde top bar su mobile – risparmia ~36px */
    .top-bar {
        display: none !important;
    }

    /* 2. Header compatto */
    .header {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    /* 3. Row header: flex wrap – logo su riga 1, menu sotto solo se aperto */
    .header > .container > .row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center;
    }

    /* 3. Colonna logo+hamburger: flex, stessa riga */
    .header .col-md-4,
    .header .col-sm-4 {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex: 0 0 100%;
        width: 100%;
    }

    /* 4. Colonna menu: azzera TUTTO lo spazio quando il collapse è chiuso.
       Bootstrap 3 col-* ha padding:15px, .navbar ha min-height:50px,
       .navbar-collapse ha border-top e padding. Azzeriamo tutto. */
    .header .col-md-8,
    .header .col-sm-8 {
        flex: 0 0 100%;
        width: 100%;
        padding: 0 !important;
    }

    .header .navigationwrape {
        margin: 0 !important;
        padding: 0 !important;
    }

    .header .navigationwrape .navbar {
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        border: none !important;
    }

    .header .navigationwrape .navbar .clearfix {
        display: none;
    }

    .header .navbar-collapse {
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Menu aperto (.in): fondo e scrollabile */
    .header .navbar-collapse.in {
        max-height: 70vh;
        overflow-y: auto;
        border-top: 1px solid #eee !important;
    }

    /* 5. Logo: ridotto, senza margine sotto */
    .header .logo {
        text-align: left !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .header .logo img {
        max-height: 40px !important;
    }

    /* 6. Hamburger: compatto, allineato a destra */
    .header .navbar-header {
        margin: 0 !important;
        float: none !important;
    }

    .header .navbar-toggle {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-right: 0;
        padding: 6px 8px;
        border: 1px solid #ddd;
        border-radius: 3px;
        background: transparent;
    }

    .header .navbar-toggle .icon-bar {
        width: 18px;
        height: 2px;
        border-radius: 1px;
    }

    .header .navbar-toggle .icon-bar + .icon-bar {
        margin-top: 3px;
    }

    /* 7. Slider/hero attaccato all'header */
    .tp-banner-container.sliderWraper,
    .sliderWraper,
    .home-main .tp-banner-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* 8. Dropdown: flusso verticale, no overlay, no hover */
    .navigationwrape .navbar-nav > li.dropdown:hover > .dropdown-menu {
        display: none;
    }

    .navigationwrape .navbar-nav > li.dropdown.open > .dropdown-menu {
        display: block;
    }

    .navigationwrape .dropdown-menu,
    .navigationwrape .navbar-nav > li.dropdown .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #f9f5f1;
    }

    .navigationwrape .dropdown-menu > li > a {
        padding: 10px 20px 10px 28px !important;
        font-size: 13px !important;
        color: var(--cga-brown) !important;
        border-bottom: 1px solid rgba(0,0,0,0.04);
        white-space: normal !important;
    }

    .navigationwrape .dropdown-menu > li > a:hover,
    .navigationwrape .dropdown-menu > li > a:focus {
        background: var(--cga-orange) !important;
        color: #ffffff !important;
    }

    .navigationwrape .navbar-nav > li.dropdown > a .caret {
        transition: transform 0.2s ease;
    }

    .navigationwrape .navbar-nav > li.dropdown.open > a .caret {
        transform: rotate(180deg);
    }

    /* 9. Logo su schermi molto piccoli */
    @media (max-width: 380px) {
        .header .logo img {
            max-height: 34px !important;
        }
    }

    /* 10. Testi slider mobile – leggibilità e centratura */

    /* Titolo wrapper: centrato */
    .tp-caption.slidertext1,
    .caption.slidertext1 {
        text-align: center !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    /* Titolo span: più piccolo, centrato, no overflow */
    .slidertext1 span {
        font-size: 28px !important;
        line-height: 1.15 !important;
        text-align: center !important;
        display: block !important;
        padding: 0 15px !important;
        word-wrap: break-word !important;
    }

    /* Sottotitoli interni RevSlider: nascosti su mobile */
    .slidertext2,
    .slidertext4 {
        display: none !important;
    }

    /* Overlay sottotitolo mobile: visibile, ancorato dentro sliderWraper */
    .mobile-subtitle-overlay {
        display: block !important;
        position: absolute !important;
        bottom: 50% !important;
        left: 20px !important;
        right: 20px !important;
        z-index: 100 !important;
        text-align: center;
        pointer-events: none;
    }

    .mobile-subtitle-overlay p {
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
        color: #ffffff;
        text-shadow: 0 2px 8px rgba(0,0,0,0.8);
        font-family: "Open Sans", Arial, sans-serif;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.45s ease-out, transform 0.45s ease-out;
        will-change: opacity, transform;
    }

    .mobile-subtitle-overlay p.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* CTA slider: più compatta, ben visibile */
    .slidertext3 {
        margin-top: 20px !important;
    }

    .slidertext3 a {
        font-size: 13px !important;
        padding: 10px 24px !important;
        letter-spacing: 0.04em !important;
    }

    /* Frecce slider: più piccole, non invadenti */
    .tp-leftarrow.default,
    .tp-rightarrow.default {
        width: 34px !important;
        height: 34px !important;
        opacity: 0.7 !important;
    }

    .tp-leftarrow.default:before,
    .tp-rightarrow.default:before {
        font-size: 20px !important;
    }
}

/* 11. Slider su schermi molto piccoli (<480px) */
@media (max-width: 480px) {
    .slidertext1 span {
        font-size: 22px !important;
    }

    .mobile-subtitle-overlay p {
        font-size: 13px !important;
    }

    .slidertext3 a {
        font-size: 12px !important;
        padding: 8px 20px !important;
    }
}

/* Overlay sottotitolo mobile – nascosto su desktop */
.mobile-subtitle-overlay {
    display: none;
}

/* Il contenitore dello slider è il parent di riferimento per l'overlay */
.tp-banner-container.sliderWraper {
    position: relative;
}

/* ===========================================
   TABLET (768–1024px) – sottotitolo overlay
   =========================================== */
@media (min-width: 768px) and (max-width: 1024px) {

    /* Nasconde sottotitoli interni RevSlider anche su tablet */
    .slidertext2,
    .slidertext4 {
        display: none !important;
    }

    /* Mostra overlay centrato */
    .mobile-subtitle-overlay {
        display: block !important;
        position: absolute !important;
        bottom: 50% !important;
        left: 40px !important;
        right: 40px !important;
        z-index: 100 !important;
        text-align: center;
        pointer-events: none;
    }

    .mobile-subtitle-overlay p {
        font-size: 16px;
        line-height: 1.5;
        color: #ffffff;
        text-shadow: 0 2px 8px rgba(0,0,0,0.8);
        font-family: "Open Sans", Arial, sans-serif;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.45s ease-out, transform 0.45s ease-out;
        will-change: opacity, transform;
    }

    .mobile-subtitle-overlay p.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

