/*
Theme Name: Heraclia
Theme URI: https://www.heraclia.it/
Author: by KLASSE UNO 
Author URI: http://example.com/
Description: Bootstrap-based responsive theme with a 3-slide customizable carousel and custom logo. Fully compatible with PHP 8.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: responsive, bootstrap, custom-logo, customizer, carousel
Text Domain: heraclia
*/

/* Basic resets and container sizing */
html,body { height:100%; margin:0; padding:0; color:#707070; }
.site-header { background: #fff; border-bottom: 1px solid rgba(0,0,0,.05);}
.site-branding img { max-height: 70px; }

/* MODIFICHE PER SLIDE COMPLETAMENTE RESPONSIVE */
.main-carousel .carousel-item { 
    max-height: none;
    height: auto;
    overflow: hidden; 
    position: relative;
}
.main-carousel .carousel-item img { 
    width: 100%; 
    height: auto;
    object-fit: cover; 
    display: block; 
}
.main-carousel .carousel-caption { 
    position: absolute; 
    right: 15%; 
    left: 15%; 
    bottom: 20%; 
    background: rgba(0,0,0,0.35); 
    padding: 20px; 
    border-radius: 8px; 
    color: #fff; 
}

/* RIDIMENSIONAMENTO SLIDE PER MOBILE */
@media (max-width: 767px) {
    .main-carousel .carousel-item { 
        max-height: none !important;
        height: auto;
    }
    .main-carousel .carousel-item img {
        height: auto;
        min-height: 200px;
    }
    .main-carousel .carousel-caption { 
        left: 5%; 
        right: 5%; 
        font-size: 0.95rem; 
        bottom: 10%; 
        padding: 12px; 
    }
    .site-branding img { 
        max-height: 61px; 
    }
    
    /* Ulteriore riduzione per schermi molto piccoli */
    @media (max-width: 480px) {
        .main-carousel .carousel-item { 
            max-height: none !important; 
        }
        .main-carousel .carousel-item img {
            min-height: 150px;
        }
        .main-carousel .carousel-caption {
            bottom: 5%;
            padding: 8px;
            font-size: 0.85rem;
        }
    }
}

/* Ridimensionamento per tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .main-carousel .carousel-item { 
        max-height: none !important; 
        height: auto;
    }
    .main-carousel .carousel-item img {
        height: auto;
    }
}

/* Garantisce che il carousel occupi tutta la larghezza */
.main-carousel {
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-carousel .carousel-inner {
    width: 100%;
}

.main-carousel .carousel-item img {
    max-width: 100%;
    display: block;
}

.site-footer { padding: 30px 0; background:#f8f9fa; border-top:1px solid rgba(0,0,0,.05); }
.content-area { padding: 30px 0; }

.container{padding:20px;}

li.nav-item {
	font-size:19px;
}

a {
    text-decoration: none;
}

/* modifica colore sfondo navbar al passaggio del mouse */
.navbar .nav-link:hover {
    background-color: #1E73BE;
    color: #ffffff;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.navbar .dropdown-menu .dropdown-item:hover {
    background-color: #1E73BE;
    color: #fff;
}

/* ==================== */
/* DISTANZIAMENTO MENU */
/* ==================== */
@media (min-width: 768px) {
    .navbar-nav .nav-item {
        margin-left: 0.8rem !important;
        margin-right: 0.8rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
        font-size: 1.1rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }
}

@media (min-width: 1200px) {
    .navbar-nav .nav-item {
        margin-left: 0.8rem !important;
        margin-right: 0.8rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1.2rem !important;
    }
}

@media (max-width: 767.98px) {
    .navbar-nav .nav-item {
        margin: 0.5rem 0 !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem !important;
        font-size: 1.1rem;
    }
}

/* FIX PER HEADER MOBILE - LOGO E HAMBURGER ALLINEATI */
.site-header .d-flex {
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
}

.navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    z-index: 1050;
    margin-left: auto;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280,0,0,0.7%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* CORREZIONE PER MOBILE: MANTIENE LOGO E HAMBURGER ALLINEATI E MENU CENTRATO */
@media (max-width: 767.98px) {
    .site-branding {
        flex: 1;
        display: flex;
        align-items: center;
    }
    
    .site-branding img {
        max-width: 150px;
        height: 61px;
        object-fit: contain;
        margin: 0;
    }
    
    .navbar-toggler {
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .site-header .d-flex {
        padding: 10px 15px;
    }
    
    /* CORREZIONE CRITICA: MENU MOBILE POSIZIONATO CORRETTAMENTE */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: -40;
        right: 0;
        background: white;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 0 15px;
		width: 242px;
    }
    
    /* Assicura che il menu sia visibile e ben posizionato */
    .navbar-nav {
        width: 100%;
        margin: 0;
        padding: 10px 0;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        margin: 0 !important;
    }
    
    .navbar-nav .nav-link {
        width: 100%;
        padding: 12px 15px !important;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Aggiunge freccia per dropdown in mobile */
    .navbar-nav .dropdown-toggle::after {
        content: "›";
        border: none;
        transform: rotate(0deg);
        transition: transform 0.3s ease;
        font-size: 1.2em;
        margin-left: 10px;
    }
    
    .navbar-nav .dropdown.show .dropdown-toggle::after {
        transform: rotate(90deg);
    }
    
    /* Dropdown menu in mobile - CORREZIONE PER VISIBILITÀ */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin: 0;
        border: none;
        box-shadow: none;
        background: #f8f9fa;
        display: none !important;
        padding: 0;
    }
    
    /* Mostra il dropdown quando è attivo */
    .navbar-nav .dropdown.show .dropdown-menu {
        display: block !important;
    }
    
    .navbar-nav .dropdown-item {
        padding: 10px 25px !important;
        border-bottom: 1px solid #e9ecef;
        font-size: 0.95em;
    }
    
    .navbar-nav .dropdown-item:last-child {
        border-bottom: none;
    }
    
    /* Stile per i dropdown di secondo livello */
    .navbar-nav .dropdown-menu .dropdown-menu {
        background: #f0f0f0 !important;
        margin-left: 15px !important;
        border-left: 2px solid #1E73BE !important;
    }
    
    .navbar-nav .dropdown-menu .dropdown-item {
        padding-left: 35px !important;
    }
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 100%;
    }
}

.entry-title{display:none;}

.fa {
    display: inline-block! important;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
	font-size:60px;
	color:#1E73BE;
}

/* CSS per gestione delle 3 colonne nella home page */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: #f9f9f9;
    color: #707070;
    line-height: 1.6;
    padding: 20px;
}

.main-container {
    width: 100%;
    max-width: 1080px;
    margin: 40px auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.four-colums {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.four-columns .column {
    flex: 0 0 calc(25% - 20px);
    min-width: 250px;
    padding: 20px;
    border-right: 1px dashed #e0e0e0;
    box-sizing: border-box;
}

.four-columns .column:last-child {
    border-right: none;
}

@media (max-width: 1200px) {
    .four-columns {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .four-columns .column {
        flex: 0 0 100%;
        border-right: none;
        border-bottom: 1px dashed #e0e0e0;
    }
    
    .four-columns .column:last-child {
        border-bottom: none;
    }
}

.four-columns .column:nth-child(2n) {
    border-right: none;
}

.three-columns, .two-columns, .one-columns {
    display: flex;
    flex-wrap: wrap;
}

.column {
    padding: 30px;
    flex: 1;
    min-width: 250px;
    border-right: 1px dashed #e0e0e0;
}

.column:last-child {
    border-right: none;
}

.profile-section {
    color: #1a1a1a;
}

.name {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.specialization {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.contact-btn {
    display: block;
    background-color: #1E73BE;
    padding: 12px;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    margin: 25px 0;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #155a9d;
}

.associations {
    text-align: center;
    margin-top: 25px;
}

.association-title {
    font-size: 16px;
    margin-bottom: 15px;
}

.association-logos img {
    width: 140px;
    margin: 0 10px 15px;
}

.service {
    display: flex;
    margin-bottom: 30px;
}

.icon-column {
    flex: 0 0 60px;
    padding: 0px 15px 0 0;
    text-align: center;
}

.icon-column i {
    font-size: 49px;
    color: #1E73BE;
}

.content-column {
    flex: 1;
}

.content-column h2 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.content-column p {
    font-size: 15px;
    color: #555;
}

@media (max-width: 900px) {
    .three-columns {
        flex-direction: column;
    }
    
    .column {
        border-right: none;
        border-bottom: 1px dashed #e0e0e0;
    }
    
    .column:last-child {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .service {
        flex-direction: column;
    }
    
    .icon-column {
        padding: 0 0 15px 0;
        text-align: left;
    }
    
    .name {
        font-size: 26px;
    }
}

button.btn.btn-primary {
    min-width: 350px ! important;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #1e73be;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0d6efd;
    --bs-btn-disabled-border-color: #0d6efd;
}

/* =============================================== */
/* STILE PER LE 4 COLONNE - PAGE ID 83 */
/* =============================================== */
body.page-id-83 .four-columns {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    width: 101% !important;
    margin-left: -11px;
    padding: 0 !important;
}

body.page-id-83 .four-columns .column {
    flex: 0 0 calc(25% - 20px) !important;
    min-width: 250px !important;
    padding: 20px !important;
    margin: 0 !important;
    border: 1px solid #e0e0e0 !important;
    box-sizing: border-box !important;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

body.page-id-83 .four-columns .column img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto 15px !important;
    border-radius: 5px !important;
}

body.page-id-83 .four-columns .column strong {
    display: block !important;
    text-align: center !important;
    font-size: 18px !important;
    margin-bottom: 15px !important;
    color: #1E73BE !important;
    line-height: 1.3 !important;
}

body.page-id-83 .four-columns .column .specialization {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #555 !important;
    text-align: left !important;
    margin: 0 !important;
}

body.page-id-83 .main-container {
    overflow: visible !important;
}

@media (max-width: 1200px) {
    body.page-id-83 .four-columns {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    body.page-id-83 .four-columns .column {
        flex: 0 0 calc(50% - 20px) !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 768px) {
    body.page-id-83 .four-columns .column {
        flex: 0 0 100% !important;
        margin-bottom: 20px !important;
    }
}

body.page-id-83 .four-columns .column {
    border: none !important;
    border: 1px solid #e0e0e0 !important;
}

/* =============================================== */
/* STILE PER 2 COLONNE - 25% + 75%                 */
/* =============================================== */
.two-columns-25-75 {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.two-columns-25-75 .column-25 {
    flex: 0 0 25%;
    padding: 20px;
    box-sizing: border-box;
}

.two-columns-25-75 .column-75 {
    flex: 0 0 75%;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .two-columns-25-75 .column-25,
    .two-columns-25-75 .column-75 {
        flex: 0 0 100%;
    }
}

.two-columns-25-75 img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

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

/* ************************************  */
/*     modifica due colonne 50% + 50%    */
/* ************************************  */
.two-columns-50-50 {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.two-columns-50-50 .column {
    flex: 0 0 50%;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .two-columns-50-50 .column {
        flex: 0 0 100%;
    }
}

/* ******************************************************  */
/* modifica campi input del form valutiamo il tuo caso     */
/* ******************************************************  */
button, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    border-radius: 6px! important;
    border: 1px solid #ccc ! important;
    height: 39px! important;
    width: 60%;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner {
    background-color: #1e73be;
    color: #fff;
}

input.gdprclass {
    width: 10px ! important;
}

.wpcf7-form-control.wpcf7-acceptance label { display: flex; line-height: 1.2; } 
.wpcf7-form-control.wpcf7-acceptance input[type="checkbox"] { width: auto; margin-top: 0; margin-right: 5px; }
.wpcf7-form-control.wpcf7-acceptance .wpcf7-list-item { margin-left: 0; }
textarea { width: 97%! important; height: 60px ! important; }

/* Dropdown al hover per desktop */
@media (min-width: 768px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .navbar-nav .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        margin-top: 0;
    }
    
    .navbar-nav .dropdown-menu:hover {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.navbar-nav .dropdown-menu {
    position: absolute;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
    z-index: 1000;
    min-width: 200px;
}

.navbar-nav .dropdown-item {
    padding: 0.75rem 1.25rem;
    color: #333;
    transition: all 0.2s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: #1E73BE;
    color: white;
}

@media (max-width: 767.98px) {
    .navbar-nav .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        display: none;
    }
    
    .navbar-nav .dropdown.show .dropdown-menu {
        display: block;
    }
    
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: none;
    }
    
    .navbar-nav .dropdown.show > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* *************************************************  */		
/* sistema per controllare LARGHEZZA E STILE DROPDOWN */
/* ************************************************** */
.navbar-nav .dropdown-menu {
    position: absolute;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
    z-index: 1000;
    min-width: 300px;
    width: auto;
    padding: 15px 0;
    border-radius: 8px;
}

.navbar-nav .dropdown-menu.wide-dropdown {
    min-width: 400px;
}

.navbar-nav .dropdown-menu.extra-wide-dropdown {
    min-width: 450px;
}

.navbar-nav .dropdown-menu {
    left: 0;
    right: auto;
}

.navbar-nav .dropdown-menu.dropdown-menu-right {
    left: auto;
    right: 0;
}

.navbar-nav .dropdown-item {
    padding: 12px 25px;
    color: #333;
    transition: all 0.2s ease;
    font-size: 16px;
    white-space: nowrap;
}

.navbar-nav .dropdown-item:hover {
    background-color: #1E73BE;
    color: white;
    padding-left: 30px;
}

.navbar-nav .dropdown-divider {
    margin: 10px 0;
    border-top: 1px solid #eee;
}

.navbar-nav .dropdown-header {
    padding: 10px 25px;
    font-weight: 600;
    color: #1E73BE;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .dropdown-multi-column {
    display: flex;
    flex-wrap: wrap;
    min-width: 500px;
}

.navbar-nav .dropdown-multi-column .dropdown-column {
    flex: 1;
    min-width: 240px;
}

@media (max-width: 767.98px) {
    .navbar-nav .dropdown-menu {
        min-width: 100% !important;
        width: 100% !important;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 10px 0;
    }
    
    .navbar-nav .dropdown-item {
        padding: 15px 20px;
        font-size: 17px;
    }
    
    .navbar-nav .dropdown-multi-column {
        flex-direction: column;
        min-width: 100% !important;
    }
}

.navbar-nav .dropdown-menu {
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: block !important;
}

.navbar-nav .dropdown:hover > .dropdown-menu,
.navbar-nav .dropdown.show > .dropdown-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Stile per la colonna al 100% */
.column-100 {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

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

/* ********************************************** */
/*      pulsanti avanti e indietro nelle slide    */
/* ********************************************** */
.carousel-control-next, .carousel-control-prev {
    position: absolute;
    top: 338px! important;
}

img#imgdx {
    position: relative;
    top: 45px;
}

.custom-pagination-dot{
    display: none;
}

/* *******************************************************************  */
/* MODIFICA MENU AD ESPANSIONE PER VISUALIZZARE LE VOCI DEI SOTTOMENU   */
/* *******************************************************************  */
.navbar-nav .dropdown-menu .dropdown-menu {
    left: 100% !important;
    top: 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    transform: translateY(10px) !important;
    z-index: 1001 !important;
}

.navbar-nav .dropdown-menu .dropdown:hover > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.navbar-nav .dropdown-menu .dropdown-menu:hover {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.navbar-nav .dropdown-menu .dropdown-menu {
    transition: none !important;
}

@media (min-width: 768px) {
    .navbar-nav .dropdown-menu .dropdown-menu {
        left: 100% !important;
        right: auto !important;
        top: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .navbar-nav .dropdown-menu .dropdown-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        margin-left: 15px !important;
        box-shadow: none !important;
        border: none !important;
        border-left: 2px solid #1E73BE !important;
    }
}

/* Terzo livello: fallback verso sinistra */
.navbar-nav .dropdown-menu .dropdown-menu.dropdown-menu-left {
    left: auto !important;
    right: 100% !important;
}

/* media query per dispositivi mobili */
@media (max-width: 769px) {
    .carousel-control-next, .carousel-control-prev {
        position: absolute;
        top: 57px! important;
    }
    
    .navbar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.25rem 0.75rem;
        font-size: 1.25rem;
        line-height: 1;
        background-color: transparent;
        border: 1px solid #ccc;
        border-radius: 0.25rem;
        z-index: 1050;
        width: 61px;
    }
    
    body {
        font-family: 'Raleway', sans-serif;
        background-color: #f9f9f9;
        color: #333;
        line-height: 1.6;
        padding: 0px;
    }
    
    .container {
        padding: 15px;
    }
    
    button.btn.btn-primary {
        min-width: 281px ! important;
    }
	
	button.iubenda-tp-btn.iubenda-cs-preferences-link {
    display: none ! important;
	}
	
	.iubenda-tp-alert-btn[data-tp-float][data-tp-float=bottom-right], .iubenda-tp-alert-btn[data-tp-float][data-tp-float=top-right], .iubenda-tp-btn:not(.iubenda-floatable-tb-btn)[data-tp-float][data-tp-float=bottom-right], .iubenda-tp-btn:not(.iubenda-floatable-tb-btn)[data-tp-float][data-tp-float=top-right], .iubenda-uspr-btn[data-tp-float][data-tp-float=bottom-right], .iubenda-uspr-btn[data-tp-float][data-tp-float=top-right] {
    right: 0!important;
    display: none! important;
}
	
	
	
	
	
	
	
}

/* forza la dimensione del logo */
.custom-logo-link img {
    width: 300px;
    object-fit: cover;
}

.site-branding .custom-logo {
    max-height: 160px;
    width: auto;
}

.site-branding img {
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .site-branding .custom-logo {
        max-height: 60px;
    }
}

p.site-title.sr-only {
    display: none;
}

/* effetti mouse hover su immagini */
.image-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.image-item {
    width: 24%;
    flex-shrink: 0;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px 10px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-wrapper:hover .overlay-text {
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .image-row {
        flex-wrap: wrap;
    }
    .image-item {
        width: calc(50% - 5px);
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .image-item {
        width: 100%;
    }
}

/* mod. 30.09.2025 */
.contact-responsive-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
}

.contact-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 5%;
    margin: 40px 0;
}

.contact-left, .contact-right {
    flex: 1 1 45%;
    min-width: 300px;
}

.contact-title {
    font-size: 35px;
    margin-bottom: 15px;
    padding-top: 64px;
}

.contact-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
}

.contact-map {
    width: 100%;
    height: 485px;
    border: 0;
}

.hours-section {
    margin-bottom: 25px;
    padding-top: 64px;
}

.hours-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.hours-detail {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.hours-note {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 5px;
}

.company-info {
    margin-top: 40px;
}

.company-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.company-address {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.contact-info {
    margin-top: 20px;
}

.contact-item {
    font-size: 31px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-item span {
    font-size: 18px;
    margin-left: 10px;
}

.bi {
    color: #bfdfd3;
    margin-right: 10px;
}

.image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.image-item {
    flex: 1 1 calc(25% - 20px);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 75%;
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    transition: background 0.3s ease;
}

.overlay-text a {
    text-decoration: none;
    color: #fff;
    display: block;
}

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

.image-item:hover .overlay-text {
    background: rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 28px;
        padding-top: 40px;
    }
    
    .contact-subtitle {
        font-size: 16px;
    }
    
    .contact-map {
        height: 300px;
    }
    
    .hours-section {
        padding-top: 40px;
    }
    
    .hours-title {
        font-size: 20px;
    }
    
    .hours-detail {
        font-size: 16px;
    }
    
    .company-name {
        font-size: 20px;
    }
    
    .company-address {
        font-size: 18px;
    }
    
    .contact-item {
        font-size: 24px;
    }
    
    .contact-item span {
        font-size: 16px;
    }
    
    .image-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 24px;
        padding-top: 30px;
    }
    
    .contact-map {
        height: 250px;
    }
    
    .hours-section {
        padding-top: 30px;
    }
    
    .image-item {
        flex: 1 1 100%;
    }
    
    .overlay-text {
        font-size: 14px;
    }
    
    .header-content.d-flex.align-items-center.justify-content-between.py-3 {
        padding: 30px;
    }
    
    .site-footer {
        padding: 30px 0;
        background: #f8f9fa;
        border-top: 1px solid rgba(0,0,0,.05);
        padding: 14px;
    }
}

@media screen and (max-width: 768px) {
    .site-branding .custom-logo {
        max-height: 61px! important;
    }
	
	.custom-slideshow-container {
		height:313px! important;

}


/* CSS             */
/* pagina contattib*/

/* Stili per la pagina CONTATTI responsive */
.contact-responsive-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
}

.contact-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 5%;
    margin: 40px 0;
}

.contact-left, .contact-right {
    flex: 1 1 45%;
    min-width: 300px;
}

.contact-title {
    font-size: 35px;
    margin-bottom: 15px;
    padding-top: 64px;
}

.contact-subtitle {
    font-size: 18px;
    margin-bottom: 20px;
}

.contact-description {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.contact-form {
    width: 100%;
}

.hours-section {
    margin-bottom: 25px;
    padding-top: 64px;
}

.hours-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.hours-detail {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.hours-note {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 5px;
}

.company-info {
    margin-top: 40px;
}

.company-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.company-address {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.contact-info {
    margin-top: 20px;
}

.contact-item {
    font-size: 31px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-item span {
    font-size: 18px;
    margin-left: 10px;
}

.bi {
    color: #bfdfd3;
    margin-right: 10px;
}

.products-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
}

.image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.image-item {
    flex: 1 1 calc(25% - 20px);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 75%;
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    transition: background 0.3s ease;
}

.overlay-text a {
    text-decoration: none;
    color: #fff;
    display: block;
}

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

.image-item:hover .overlay-text {
    background: rgba(0, 0, 0, 0.9);
}

/* Media Queries per Responsive */
@media (max-width: 768px) {
    .contact-title {
        font-size: 28px;
        padding-top: 40px;
    }
    
    .contact-subtitle {
        font-size: 16px;
    }
    
    .hours-section {
        padding-top: 40px;
    }
    
    .hours-title {
        font-size: 20px;
    }
    
    .hours-detail {
        font-size: 16px;
    }
    
    .company-name {
        font-size: 20px;
    }
    
    .company-address {
        font-size: 18px;
    }
    
    .contact-item {
        font-size: 24px;
    }
    
    .contact-item span {
        font-size: 16px;
    }
    
    .image-item {
        flex: 1 1 calc(50% - 20px);
    }
    
    .contact-columns {
        gap: 0;
    }
    
    .contact-left, .contact-right {
        flex: 1 1 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 24px;
        padding-top: 30px;
    }
    
    .hours-section {
        padding-top: 30px;
    }
    
    .image-item {
        flex: 1 1 100%;
    }
    
    .overlay-text {
        font-size: 14px;
    }
    
    .contact-responsive-container,
    .products-container {
        padding: 0 10px;
    }
}

/* Stili per il form di contatto responsive */
.wpcf7-form {
    width: 100%;
}

.wpcf7-form-control {
    width: 100% !important;
    max-width: 91% !important;
	padding-left: 10PX;
	
	
	
	
	
	
	
	
	
	
}

@media (max-width: 768px) {
    .wpcf7-form {
        padding: 0 10px;
    }
}
	
	
}


/*  css pagina azienda */
/* Stili per la pagina AZIENDA responsive */
.company-responsive-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
}

.company-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 5%;
    margin: 40px 0;
}

.company-left, .company-right {
    flex: 1 1 45%;
    min-width: 300px;
}

.company-title {
    font-size: 35px;
    line-height: 1.3;
    margin-bottom: 20px;
    padding-top: 64px;
}

.company-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.company-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.company-image {
    margin: 20px 0;
    text-align: center;
}

.company-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.company-highlight {
    background-color: #ecf5f2;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.company-highlight .company-text {
    margin-bottom: 15px;
}

.company-highlight .company-text:last-child {
    margin-bottom: 0;
}

.company-info {
    margin-top: 40px;
}

.company-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.company-address {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.contact-info {
    margin-top: 20px;
}

.contact-item {
    font-size: 31px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-item span {
    font-size: 18px;
    margin-left: 10px;
}

.bi {
    color: #bfdfd3;
    margin-right: 10px;
}

.products-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
}

.image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
}

.image-item {
    flex: 1 1 calc(25% - 20px);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 75%;
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    transition: background 0.3s ease;
}

.overlay-text a {
    text-decoration: none;
    color: #fff;
    display: block;
}

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

.image-item:hover .overlay-text {
    background: rgba(0, 0, 0, 0.9);
}

/* Media Queries per Responsive */
@media (max-width: 768px) {
    .company-title {
        font-size: 28px;
        padding-top: 40px;
    }
    
    .company-subtitle,
    .company-text {
        font-size: 16px;
    }
    
    .company-name {
        font-size: 20px;
    }
    
    .company-address {
        font-size: 18px;
    }
    
    .contact-item {
        font-size: 24px;
    }
    
    .contact-item span {
        font-size: 16px;
    }
    
    .image-item {
        flex: 1 1 calc(50% - 20px);
    }
    
    .company-columns {
        gap: 0;
    }
    
    .company-left, .company-right {
        flex: 1 1 100%;
        margin-bottom: 30px;
    }
    
    .company-highlight {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .company-title {
        font-size: 24px;
        padding-top: 30px;
    }
    
    .image-item {
        flex: 1 1 100%;
    }
    
    .overlay-text {
        font-size: 14px;
    }
    
    .company-responsive-container,
    .products-container {
        padding: 0 10px;
    }
}




@media (max-width: 768px) {

	nav.navbar.navbar-expand-md.navbar-light.p-0 {
		width: 450px;
	}

}


input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required.wpcf7-not-valid {
    PADDING-LEFT: 10PX;
}



/* Mobile: nasconde i dropdown inizialmente */
@media (max-width: 992px) {
    .nav-item.dropdown .dropdown-menu {
        display: none;      /* Nasconde completamente */
        height: 0;          /* Non occupa spazio */
        overflow: hidden;   /* Non mostra contenuto */
        margin: 0;
        padding: 0;
    }

    /* Mostra solo quando il menu ha la classe .show */
    .nav-item.dropdown .dropdown-menu.show {
        display: block;     /* Mostra il menu */
        height: auto;       /* Altezza automatica in base al contenuto */
        padding: 0.5rem 1rem; /* Imposta padding come desideri */
        overflow: visible;
    }
}
