:root {
    --bg: #110b0d;
    --rosso: #780500;
    --oro: #ff8b62;
    --oro-soft: #fec8b4;
}

body {
    margin: 0;
    background: #000000;
    color: var(--oro-soft);
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

a {
    color: var(--oro-soft);
    text-decoration: underline;
}

/* ================= ANIMAZIONI ================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ================= INTRO (SOLO HOMEPAGE) ================= */
#intro {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.intro-logo { 
    max-width: 220px;
    animation: fadeInUp 1s ease-out;
}

#enter-btn {
    background: var(--rosso);
    border-radius: 20px;
    border: none;
    padding: 1.2rem 2.5rem;
    width: 220px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
        margin-top: -0.9rem;
}

#enter-btn:hover {
    background: #9a0700;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(120, 5, 0, 0.3);
}

/* ================= TENDA (SOLO HOMEPAGE) ================= */
#curtain-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    overflow: hidden;
    background: var(--bg);
}

.curtain {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-image: url("/assets/images/curtain.jpg");
    background-size: 200% 100%;
    transition: transform 3s cubic-bezier(.77,0,.18,1);
}

.curtain.left { left: 0; }
.curtain.right { right: 0; }

#curtain-overlay.open .left { transform: translateX(-100%); }
#curtain-overlay.open .right { transform: translateX(100%); }

/* ================= HOME (SOLO HOMEPAGE) ================= */
#home {
    display: none;
    opacity: 0;
    transition: opacity 1s ease;
}

#home.visible {
    display: block;
    opacity: 1;
    background:#000;
}

/* ================= HEADER HOMEPAGE ================= */
.site-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--oro);
    background: url("/assets/images/sfondo.jpeg");
    position: relative;
    min-height: 60px;
}

.site-header img {
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

/* Logo centrale homepage */
.header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
}

.header-center img {
    max-width: 500px;
    display: block;
    animation: fadeInUp 0.8s ease-out;
    margin: 0 auto;
}

/* ================= HEADER PAGINE INTERNE ================= */
.site-header-pagine {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--oro);
    background: url("/assets/images/sfondo.jpeg");
    position: relative;
    min-height: 60px;
}

/* Logo sinistro pagine interne */
.site-header-pagine .header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-header-pagine .demetra-logo {
    max-width: 120px;
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

.site-header-pagine .scritta-logo {
    max-width: 300px;
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

.language-selector {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    z-index: 50;
}

.lang-link {
    color: var(--oro-soft);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.2rem 0.3rem;
    border-radius: 3px;
}

.lang-link:hover {
    color: var(--oro);
    background: rgba(255, 139, 98, 0.1);
}

.lang-link.active {
    color: var(--oro);
    font-weight: 600;
}

.lang-separator {
    color: var(--oro-soft);
    opacity: 0.5;
}

/* Logo mobile */

.logo-mobile {
    display: none !important;
}

/* Logo desktop - visibile di default */
.logo-desktop-left {
    max-width: 170px;
    display: block;
    animation: fadeInUp 0.8s ease-out;
}

/* Spazio vuoto a destra pagine interne */
.site-header-pagine .right-space {
    width: 120px;
}

/* ================= MENU HAMBURGER (PER TUTTE LE PAGINE) ================= */
.hamburger-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
}

.hamburger-btn {
    background: var(--rosso);
    border: 2px solid var(--oro);
    color: var(--oro-soft);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hamburger-btn:hover {
    background: var(--oro);
    color: var(--bg);
    transform: scale(1.05);
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(17, 11, 13, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--oro);
    border-radius: 5px;
    min-width: 200px;
    display: none;
    animation: fadeInUp 0.3s ease-out;
    z-index: 101;
}

.menu-dropdown.show {
    display: block;
}

.menu-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--oro-soft);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 139, 98, 0.2);
    transition: all 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: rgba(255, 139, 98, 0.1);
    color: var(--oro);
    padding-left: 2rem;
}

/* ================= SLIDER (SOLO HOMEPAGE) ================= */
.carousel {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.carousel-item img {
    width: 100%;
    height: 75vh;
    object-fit: cover;
}

.carousel-caption {
    bottom: 3%;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    max-width: 50%;
    margin: 0 auto;
}

.carousel-caption h2 {
    font-size: 2.4rem;
    color: var(--oro-soft);
    text-shadow: 0 0 20px rgba(0,0,0,.8);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* indicatori slider */
.carousel-indicators [data-bs-target] {
    background-color: var(--oro);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target]:hover {
    background-color: var(--oro-soft);
    transform: scale(1.2);
}

/* frecce slider */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 20px;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

/* ================= TESTO ================= */
.intro-text {
    margin: 3rem auto;
    padding: 0 1.5rem;
    text-align: justify;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.intro-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--oro-soft);
    margin-bottom: 0;
}

/* ================= PAGINE A COLONNE ================= */
.act-box {
    position: relative;
    height: 360px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    animation: scaleIn 0.6s ease-out both;
    transition: all 0.3s ease;
}

.act-box:nth-child(1) { animation-delay: 0.1s; }
.act-box:nth-child(2) { animation-delay: 0.2s; }
.act-box:nth-child(3) { animation-delay: 0.3s; }
.act-box:nth-child(4) { animation-delay: 0.4s; }

.act-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.act-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.act-box:hover img {
    transform: scale(1.1);
}

.act-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.35));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.act-box:hover .act-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.45));
}

.act-overlay h3 {
    font-size: 1.8rem;
    color: var(--oro-soft);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.act-box:hover .act-overlay h3 {
    transform: scale(1.1);
}

/* ================= CONTENUTO PAGINE INTERNE ================= */
.page-content {
    animation: fadeInUp 1s ease-out;
}

.content-section {
    padding: 3rem 0;
}

.content-title {
    color: var(--oro);
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.content-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--oro) 30%, 
        var(--oro) 70%, 
        transparent 100%);
}

.content-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    padding: 0;
    text-align: justify;
}

/* ================= GALLERY ================= */
.gallery-section {
    padding: 2rem 0 4rem;
}

.gallery-title {
    color: var(--oro);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.gallery-box {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    animation: scaleIn 0.6s ease-out both;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.gallery-box:nth-child(1) { animation-delay: 0.1s; }
.gallery-box:nth-child(2) { animation-delay: 0.2s; }
.gallery-box:nth-child(3) { animation-delay: 0.3s; }
.gallery-box:nth-child(4) { animation-delay: 0.4s; }
.gallery-box:nth-child(5) { animation-delay: 0.5s; }
.gallery-box:nth-child(6) { animation-delay: 0.6s; }
.gallery-box:nth-child(7) { animation-delay: 0.7s; }
.gallery-box:nth-child(8) { animation-delay: 0.8s; }
.gallery-box:nth-child(9) { animation-delay: 0.9s; }

.gallery-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gallery-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-box:hover img {
    transform: scale(1.1);
}

/* Icona play per video */
.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--oro);
    font-size: 3rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.gallery-box:hover .video-indicator {
    color: var(--oro-soft);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ================= NAVIGAZIONE PAGINE (PAGINE INTERNE) ================= */
.pages-navigation {
    padding: 4rem 0;
    background: rgba(17, 11, 13, 0.8);
}

.navigation-title {
    color: var(--oro);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-button {
    background: transparent;
    border: 2px solid var(--oro);
    border-radius: 10px;
    padding: 1.5rem;
    color: var(--oro-soft);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out both;
}

.page-button:nth-child(1) { animation-delay: 0.1s; }
.page-button:nth-child(2) { animation-delay: 0.2s; }
.page-button:nth-child(3) { animation-delay: 0.3s; }

.page-button:hover {
    background: var(--oro);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 139, 98, 0.3);
}

.page-button i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.page-button h5 {
    font-size: 1.5rem;
    margin: 0;
}

/* ================= FOOTER ================= */
footer {
    background: var(--bg);
    animation: fadeInUp 0.8s ease-out;
    padding: 3rem 0 2rem;
}

.footer-column-title {
    font-family: 'Cinzel', serif;
    color: var(--oro);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--oro) 30%, 
        var(--oro) 70%, 
        transparent 100%);
}

/* Colonna 1 - Logo e contatti */
.footer-logo-container img {
    max-width: 120px;
    margin-bottom: 1.2rem;
}

.footer-logo-container p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Colonna 2 - Link utili */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.7rem;
}

.footer-links-list a {
    color: var(--oro-soft);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
    font-size: 1rem;
}

.footer-links-list a:hover {
    color: var(--oro);
    transform: translateX(5px);
}

.footer-links-list i {
    color: var(--oro);
    margin-right: 0.6rem;
    transition: all 0.3s ease;
}

.footer-links-list a:hover i {
    transform: scale(1.2);
}

/* Colonna 3 - Social */
.footer-social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.footer-social-icon {
    color: var(--oro);
    font-size: 1.4rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-social-icon:hover {
    color: var(--oro-soft);
    transform: translateY(-5px);
}

/* ================= COPYRIGHT FOOTER ================= */
.copyright-footer {
    background: #000000;
    text-align: center;
    border-top: 1px solid var(--oro);
    padding: .8rem;
    margin: 0;
    font-size: 0.9rem;
}

/* ================= MEDIA QUERIES PER MOBILE ================= */
@media (max-width: 768px) {
    /* HEADER HOMEPAGE PER MOBILE */
    .site-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }
    
    /* Nascondi demetra.png e logo centrale su mobile */
    .site-header > img[src="demetra.png"] {
        display: none !important;
    }
    
    .header-center {
        display: none !important;
    }
    
    /* HEADER PAGINE INTERNE PER MOBILE */
    .site-header-pagine {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }
    
    /* Nascondi i logo desktop su mobile */
    .site-header-pagine .header-left {
        display: none !important;
    }
    
    /* Spazio vuoto a destra per mobile */
    .site-header-pagine .right-space {
        display: none;
    }
    
    /* Logo mobile - PER TUTTE LE PAGINE */
    .logo-mobile {
        display: block !important;
        max-width: 170px;
        width: auto;
        height: auto;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Nascondi logo desktop sinistro */
    .logo-desktop-left {
        display: none !important;
    }
    
    /* Nascondi logo centrale */
    .header-center {
        display: none !important;
    }
    
    /* Menu hamburger per mobile */
    .hamburger-menu {
        position: static;
        margin-right: 1rem;
    }
    
    .hamburger-btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.9rem;
        margin-right: 1rem;
    }
    
    .menu-dropdown {
        position: fixed;
        top: 70px;
        right: 1rem;
        transform: none;
        left: auto;
        width: 200px;
        margin-top: 0;
        max-width: calc(100vw - 2rem);
    }

    .hamburger-menu {
        position: static;
        margin-right: 1rem;
    }
    
    .hamburger-btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.9rem;
    }

    .language-selector {
        bottom: 0.3rem;
        right: 0.8rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    /* SLIDER PER MOBILE */
    .carousel-item img {
        height: 50vh;
    }
    
    .carousel-caption {
        bottom: 10%;
        padding: 1rem;
        max-width: 90%;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .act-box {
        height: 220px;
        margin-bottom: 1rem;
    }
    
    .act-overlay h3 {
        font-size: 1.4rem;
    }
    
    .gallery-box {
        height: 200px;
    }
    
    /* FOOTER PER MOBILE */
    footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    /* Aggiungi spazio tra le colonne del footer su mobile */
    .footer-logo-container,
    .footer-column {
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 139, 98, 0.2);
    }
    
    .footer-column:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .footer-column-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .footer-logo-container p {
        font-size: 0.9rem;
    }
    
    .footer-social-icons {
        justify-content: center;
    }

    .text-section {
    padding-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
}
    
    .intro-text {
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .intro-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .content-title {
        font-size: 2.2rem;
    }
    
    .content-text {
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .gallery-title,
    .navigation-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {

    .logo-mobile {
        max-width: 140px;
    }
    
    .hamburger-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .menu-dropdown {
        top: 65px;
    }

    .language-selector {
        bottom: 0.2rem;
        right: 0.5rem;
        font-size: 0.7rem;
        gap: 0.25rem;
    }
    
    .carousel-item img {
        height: 45vh;
    }
    
    .carousel-caption h2 {
        font-size: 1.3rem;
    }
    
    .act-box {
        height: 200px;
    }
    
    .act-overlay h3 {
        font-size: 1.2rem;
    }
    
    .content-title {
        font-size: 1.8rem;
    }
    
    .gallery-box {
        height: 180px;
    }
}

@media (min-width: 769px) {
    .logo-mobile {
        display: none !important;
    }
}

/* ================= CONTACT SECTION ================= */
.contact {
    padding-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--rosso) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 0;
}

.contact-title {
    color: var(--oro);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.title-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.divider-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--oro), transparent);
}

.divider-icon {
    color: var(--oro);
    font-size: 1.5rem;
}

/* ================= ALERT MESSAGES ================= */
.alert-message {
    background: linear-gradient(135deg, rgba(120, 5, 0, 0.2) 0%, rgba(120, 5, 0, 0.1) 100%);
    border-left: 4px solid var(--rosso);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

.success-message {
    background: linear-gradient(135deg, rgba(255, 139, 98, 0.2) 0%, rgba(255, 139, 98, 0.1) 100%);
    border-left: 4px solid var(--oro);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

/* ================= CONTACT INFO CARD ================= */
.contact-info-card {
    background: rgba(17, 11, 13, 0.8);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid rgba(255, 139, 98, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    color: var(--oro);
    font-size: 2rem;
    background: rgba(255, 139, 98, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

.card-header h3 {
    color: var(--oro-soft);
    margin: 0;
    font-size: 1.8rem;
}

.card-subtitle {
    color: var(--oro-soft);
    opacity: 0.8;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ================= INFO ITEMS ================= */
.info-items-container {
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.info-item.hover-lift:hover {
    transform: translateX(5px);
    background: rgba(255, 139, 98, 0.05);
    border-color: rgba(255, 139, 98, 0.2);
}

.info-icon-wrapper {
    background: rgba(255, 139, 98, 0.1);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon-wrapper i {
    color: var(--oro);
    font-size: 1.5rem;
}

.info-content h4 {
    color: var(--oro);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.info-content p {
    color: var(--oro-soft);
    margin: 0;
    line-height: 1.5;
}

.email-link {
    color: var(--oro-soft);
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--oro);
    text-decoration: underline;
}

.email-link.certified::before {
    content: '✓ ';
    color: var(--oro);
}

.fax {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ================= CONTACT HOURS ================= */
.contact-hours {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
    background: rgba(255, 139, 98, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 139, 98, 0.1);
}

.hours-icon i {
    color: var(--oro);
    font-size: 1.8rem;
}

.hours-content h4 {
    color: var(--oro);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hours-content p {
    color: var(--oro-soft);
    margin: 0.2rem 0;
    font-size: 0.95rem;
}

/* ================= CONTACT FORM CARD ================= */
.contact-form-card {
    background: rgba(17, 11, 13, 0.8);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 139, 98, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    height: 100%;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h3 {
    color: var(--oro);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--oro-soft);
    opacity: 0.8;
    margin: 0;
}

/* ================= FORM STYLES ================= */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.floating-label {
    position: relative;
    margin-bottom: 1rem;
}

.floating-label .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 139, 98, 0.3);
    border-radius: 10px;
    color: var(--oro-soft);
    padding: 1.2rem 1rem 0.8rem 3rem;
    height: auto;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.floating-label .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--oro);
    box-shadow: 0 0 0 3px rgba(255, 139, 98, 0.1);
    color: var(--oro-soft);
    outline: none;
}

.floating-label .form-control:valid,
.floating-label .form-control:focus {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.floating-label label {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    color: var(--oro-soft);
    opacity: 0.7;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

.floating-label .form-control:focus + label,
.floating-label .form-control:valid + label {
    top: 0.8rem;
    transform: translateY(0);
    font-size: 0.8rem;
    opacity: 1;
    color: var(--oro);
}

.form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--oro);
    font-size: 1.2rem;
    z-index: 1;
}

.floating-label .form-control:focus ~ .form-icon {
    color: var(--oro-soft);
}

.invalid-feedback {
    color: var(--rosso);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

/* ================= TEXTAREA STYLES ================= */
.floating-label textarea.form-control {
    min-height: 150px;
    resize: vertical;
    padding-top: 1.5rem;
}

.floating-label textarea.form-control + label {
    top: 1.5rem;
}

.floating-label textarea.form-control:focus + label,
.floating-label textarea.form-control:valid + label {
    top: 0.5rem;
}

/* ================= CAPTCHA CONTAINER ================= */
.captcha-container {
    margin: 1rem 0;
}

.captcha-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.8rem;
    color: var(--oro-soft);
    opacity: 0.7;
    font-size: 0.9rem;
}

.captcha-note i {
    color: var(--oro);
}

/* ================= SUBMIT BUTTON ================= */
.submit-button {
    background: linear-gradient(135deg, var(--rosso) 0%, #9a0700 100%);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(120, 5, 0, 0.3);
    background: linear-gradient(135deg, #9a0700 0%, var(--rosso) 100%);
}

.submit-button:active {
    transform: translateY(-1px);
}

.button-icon {
    transition: transform 0.3s ease;
}

.submit-button:hover .button-icon {
    transform: translateX(5px);
}

.button-loader {
    display: none;
    animation: spin 1s linear infinite;
}

.submit-button.loading .button-text,
.submit-button.loading .button-icon {
    opacity: 0;
}

.submit-button.loading .button-loader {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.form-note {
    color: var(--oro-soft);
    opacity: 0.6;
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ================= MAP CONTAINER ================= */
.map-container {
    margin-top: 4rem;
}

.map-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.map-header h4 {
    color: var(--oro);
    font-size: 1.5rem;
    margin: 0;
}

.map-header i {
    color: var(--rosso);
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 139, 98, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 3rem 0;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 2rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .card-header h3 {
        font-size: 1.5rem;
    }
    
    .form-header h3 {
        font-size: 1.7rem;
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .info-item,
    .contact-hours {
        padding: 1rem;
    }
    
    .submit-button {
        width: 100%;
        justify-content: center;
    }
    
    .map-wrapper iframe {
        height: 250px;
    }
}


/* ================= NEWS SECTION ================= */
.news-section {
    padding-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
}

.news-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--rosso) 0%, transparent 50%);
    opacity: 0.05;
    z-index: 0;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(100px, 100px) rotate(360deg); }
}

/* ================= NEWS GRID ================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.news-card {
    background: rgba(17, 11, 13, 0.8);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 139, 98, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 139, 98, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(120, 5, 0, 0.1) 0%, rgba(255, 139, 98, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image-placeholder i {
    font-size: 4rem;
    color: var(--oro);
    opacity: 0.3;
}

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

.news-card:hover .news-overlay {
    opacity: 1;
}

.news-link {
    width: 50px;
    height: 50px;
    background: var(--oro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    transform: translateY(20px);
    text-decoration: none;
}

.news-card:hover .news-link {
    transform: translateY(0);
}

.news-link:hover {
    background: var(--rosso);
    transform: scale(1.1) !important;
}

.news-date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(17, 11, 13, 0.9);
    color: var(--oro-soft);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 139, 98, 0.2);
}

.news-date-badge i {
    color: var(--oro);
}

/* ================= NEWS CONTENT ================= */
.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    margin-bottom: 1rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 139, 98, 0.1);
    color: var(--oro);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 139, 98, 0.2);
}

.category-tag i {
    font-size: 0.9rem;
}

.news-title {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.news-title a {
    color: var(--oro-soft);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: block;
}

.news-title a:hover {
    color: var(--oro);
}

.news-excerpt {
    margin-bottom: 1.5rem;
}

.news-excerpt p {
    color: var(--oro-soft);
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* ================= NEWS META ================= */
.news-meta {
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--oro);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.read-more-btn:hover {
    color: var(--oro-soft);
    gap: 1rem;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* ================= PAGINATION ================= */
.news-pagination {
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination-nav {
    background: rgba(17, 11, 13, 0.8);
    border-radius: 50px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 139, 98, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: transparent;
    color: var(--oro-soft);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-weight: 600;
}

.page-item:not(.disabled):not(.active) .page-link:hover {
    background: rgba(255, 139, 98, 0.1);
    border-color: rgba(255, 139, 98, 0.3);
    color: var(--oro);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--rosso) 0%, var(--oro) 100%);
    color: white;
    border: none;
}

.page-item.prev .page-link,
.page-item.next .page-link {
    background: rgba(255, 139, 98, 0.1);
    border: 1px solid rgba(255, 139, 98, 0.3);
}

.page-item.prev .page-link:hover,
.page-item.next .page-link:hover {
    background: var(--rosso);
    color: white;
}

/* ================= CTA BUTTON ================= */
.news-cta {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.all-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--rosso) 0%, #9a0700 100%);
    color: white;
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.all-news-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(120, 5, 0, 0.3);
    border-color: var(--oro);
    gap: 1.2rem;
}

.all-news-btn i {
    transition: transform 0.3s ease;
}

.all-news-btn:hover i {
    transform: rotate(15deg);
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 2rem 0;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-image {
        height: 200px;
    }
    
    .pagination-nav {
        padding: 0.3rem;
    }
    
    .page-link {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .news-card {
        border-radius: 15px;
    }
    
    .news-content {
        padding: 1.2rem;
    }
    
    .news-title a {
        font-size: 1.2rem;
    }
    
    .all-news-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

.no-news-section {
        padding: 5rem 0;
        text-align: center;
    }
    
    .empty-state {
        background: rgba(17, 11, 13, 0.8);
        border-radius: 20px;
        padding: 4rem 2rem;
        border: 1px solid rgba(255, 139, 98, 0.2);
        backdrop-filter: blur(10px);
    }
    
    .empty-state i {
        font-size: 4rem;
        color: var(--oro);
        margin-bottom: 1.5rem;
        opacity: 0.5;
    }
    
    .empty-state h3 {
        color: var(--oro-soft);
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .empty-state p {
        color: var(--oro-soft);
        opacity: 0.7;
        font-size: 1.1rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .news-date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(17, 11, 13, 0.9);
    color: var(--oro-soft);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 139, 98, 0.2);
}

.news-date-badge i {
    color: var(--oro);
}

/* Aggiungi questa nuova classe per la data nel footer: */
.news-date-footer {
    margin: 1rem 0 1.5rem;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255, 139, 98, 0.1);
    border-bottom: 1px solid rgba(255, 139, 98, 0.1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--oro);
    font-size: 0.9rem;
}

.news-date-footer i {
    font-size: 1rem;
    opacity: 0.8;
}

.news-date-footer span {
    font-weight: 500;
}

/* Aggiusta il layout del content per accomodare la data nel footer: */
.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    margin-top: auto;
}

.news-date-footer.right-align {
    justify-content: flex-end;
}

.news-date-footer.with-background {
    background: rgba(255, 139, 98, 0.05);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 139, 98, 0.1);
}

.news-date-footer.minimal {
    border: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0 1rem;
    font-size: 0.85rem;
    color: var(--oro-soft);
    opacity: 0.7;
}

/* ================= NEWS DETAIL SECTION ================= */
.news-detail-section {
    position: relative;
    overflow: hidden;
    padding-bottom: 5rem;
}

.news-detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    z-index: 0;
}

/* ================= FULL WIDTH HERO ================= */
.news-full-width-hero {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    margin-bottom: -100px; /* Sovrappone il contenuto */
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 30%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 70%,
        transparent 100%);
    z-index: 1;
}

/* ================= CONTENT WRAPPER ================= */
.news-detail-content-wrapper {
    position: relative;
    z-index: 2;
    margin-top: 100px;
}

.news-detail-content {
    padding: 3rem 4rem;
    border-bottom: none;
}

/* ================= NEWS HEADER ================= */
.news-detail-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 139, 98, 0.1);
}

.news-category-badge {
    margin-bottom: 1.5rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 139, 98, 0.2);
    color: var(--oro);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 139, 98, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.category-tag:hover {
    background: rgba(255, 139, 98, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 139, 98, 0.2);
}

.category-tag i {
    font-size: 0.9rem;
}

.news-detail-title {
    color: var(--oro-soft);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.news-meta-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--oro-soft);
    opacity: 0.9;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--oro);
    font-size: 1rem;
}

.meta-separator {
    color: var(--oro);
    opacity: 0.5;
}

/* ================= NEWS EXCERPT ================= */
.news-excerpt {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 139, 98, 0.08);
    border-radius: 12px;
    border-left: 4px solid var(--oro);
    border-right: 1px solid rgba(255, 139, 98, 0.1);
    border-top: 1px solid rgba(255, 139, 98, 0.1);
    border-bottom: 1px solid rgba(255, 139, 98, 0.1);
}

.news-excerpt .lead {
    color: var(--oro-soft);
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

/* ================= NEWS BODY ================= */
.news-detail-body {
    margin-bottom: 3rem;
}

.news-content-text {
    color: var(--oro-soft);
    line-height: 1.8;
    font-size: 1.1rem;
}

.news-paragraph {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.news-content-text h2,
.news-content-text h3,
.news-content-text h4 {
    color: var(--oro);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.news-content-text h2 {
    font-size: 2rem;
    border-bottom: 2px solid rgba(255, 139, 98, 0.2);
    padding-bottom: 0.5rem;
}

.news-content-text h3 {
    font-size: 1.6rem;
}

.news-content-text ul,
.news-content-text ol {
    margin: 1rem 0 1.5rem 2rem;
    color: var(--oro-soft);
}

.news-content-text li {
    margin-bottom: 0.5rem;
}

.news-content-text strong {
    color: var(--oro);
    font-weight: 600;
}

.news-content-text em {
    color: var(--oro-soft);
    opacity: 0.9;
}

.news-content-text a {
    color: var(--oro);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 139, 98, 0.3);
    transition: all 0.3s ease;
}

.news-content-text a:hover {
    color: var(--oro-soft);
    border-bottom-color: var(--oro);
}

/* ================= NEWS FOOTER ================= */
.news-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 139, 98, 0.1);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.back-to-news .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--oro);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    background: rgba(255, 139, 98, 0.1);
    border: 1px solid rgba(255, 139, 98, 0.2);
}

.back-btn:hover {
    background: rgba(255, 139, 98, 0.2);
    transform: translateX(-5px);
    gap: 1rem;
}

.back-btn i {
    transition: transform 0.3s ease;
}

.back-btn:hover i {
    transform: translateX(-3px);
}

.news-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tags-label {
    color: var(--oro-soft);
    opacity: 0.8;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tags-label i {
    color: var(--oro);
    font-size: 1rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--oro);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    background: rgba(255, 139, 98, 0.1);
    border: 1px solid rgba(255, 139, 98, 0.2);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: rgba(255, 139, 98, 0.2);
    transform: translateY(-2px);
    color: var(--oro-soft);
}

.category-link i {
    font-size: 0.9rem;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1200px) {
    .news-full-width-hero {
        height: 50vh;
    }
    
    .news-detail-title {
        font-size: 2.5rem;
    }
    
    .news-detail-content {
        padding: 2.5rem 3rem;
    }
}

@media (max-width: 768px) {
    .news-detail-section {
        padding-bottom: 3rem;
    }
    
    .news-full-width-hero {
        height: 40vh;
        min-height: 300px;
        margin-bottom: -80px;
    }
    
    .news-detail-content-wrapper {
        margin-top: 80px;
    }
    
    .news-detail-content {
        padding: 2rem;
        border-radius: 15px 15px 0 0;
    }
    
    .news-detail-title {
        font-size: 2rem;
    }
    
    .news-meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .meta-separator {
        display: none;
    }
    
    .news-detail-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .news-excerpt .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .news-full-width-hero {
        height: 35vh;
        min-height: 250px;
        margin-bottom: -60px;
    }
    
    .news-detail-content-wrapper {
        margin-top: 60px;
    }
    
    .news-detail-content {
        padding: 1.5rem;
        border-radius: 12px 12px 0 0;
    }
    
    .news-detail-title {
        font-size: 1.7rem;
    }
    
    .news-content-text {
        font-size: 1rem;
    }
    
    .news-excerpt {
        padding: 1rem;
    }
    
    .back-btn,
    .category-link {
        width: 100%;
        justify-content: center;
    }
}

/* Stile per quando non c'è immagine hero */
.news-detail-section:not(:has(.news-full-width-hero)) .news-detail-content-wrapper {
    margin-top: 4rem;
}

.news-detail-section:not(:has(.news-full-width-hero)) .news-detail-content {
    border-radius: 20px;
    border-bottom: 1px solid rgba(255, 139, 98, 0.2);
}

/* ================= GESTIONE IMMAGINI NEL TESTO ================= */
.news-content-text {
    position: relative;
    overflow: hidden; /* Importante per contenere i float */
}

/* Stili base per tutte le immagini */
.news-content-text img {
    max-width: 100% !important; /* FORZA max-width */
    height: auto !important;     /* Mantieni proporzioni */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 139, 98, 0.2);
}

/* Immagini allineate a sinistra - con stile inline */
.news-content-text img[style*="float:left"],
.news-content-text img[style*="float: left"] {
    float: left !important;
    margin: 0.5rem 1.5rem 0.5rem 0 !important;
    max-width: 50% !important;
}

/* Immagini allineate a destra - con stile inline */
.news-content-text img[style*="float:right"],
.news-content-text img[style*="float: right"] {
    float: right !important;
    margin: 0.5rem 0 0.5rem 1.5rem !important;
    max-width: 50% !important;
}

.news-content-text img[style*="width:"] {
    height: auto !important;
}

.news-content-text p {
    overflow: hidden;
    text-align: justify;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    /* Su mobile, alcune immagini float diventano centrate */
    .news-content-text img[style*="float:left"],
    .news-content-text img[style*="float:right"] {
        float: none !important;
        display: block !important;
        margin: 1rem auto !important;
        max-width: 90% !important;
    }
    
    /* Immagini larghe 600px su mobile */
    .news-content-text img[style*="width:600px"],
    .news-content-text img[style*="width: 600px"] {
        width: 100% !important;
    }
}

/* ================= ALLEGATI pagina e news ================= */
.news-attachments {
    margin: 3rem 0;
    padding: 0;
}

.attachments-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--oro);
}

.attachments-header i {
    font-size: 1.5rem;
}

.attachments-header h3 {
    color: var(--oro);
    font-size: 1.4rem;
    margin: 0;
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(17, 11, 13, 0.6);
    border-radius: 12px;
    text-decoration: none;
    color: var(--oro-soft);
    border: 1px solid rgba(255, 139, 98, 0.1);
    transition: all 0.3s ease;
}

.attachment-item:hover {
    background: rgba(255, 139, 98, 0.1);
    border-color: rgba(255, 139, 98, 0.3);
    transform: translateY(-2px);
}

.attachment-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 139, 98, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.attachment-icon i {
    color: var(--oro);
    font-size: 1.5rem;
}

.attachment-info {
    flex-grow: 1;
}

.attachment-info h4 {
    color: var(--oro-soft);
    font-size: 1rem;
    margin: 0 0 0.3rem 0;
    font-weight: 600;
}

.attachment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--oro);
    opacity: 0.8;
}

.attachment-download {
    color: var(--oro);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.attachment-item:hover .attachment-download {
    transform: translateY(3px);
}

@media (max-width: 576px) {
    .news-attachments {
        padding: 1.5rem;
    }
    
    .attachment-item {
        padding: 1rem;
    }
    
    .attachment-icon {
        width: 40px;
        height: 40px;
    }
    
    .attachment-icon i {
        font-size: 1.2rem;
    }
}


/* ================= MODERN FAQ SECTION ================= */
.modern-faq-section {
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.modern-faq-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0.05;
    z-index: 0;
}

/* ================= SECTION HEADER ================= */
.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle p {
    color: var(--oro-soft);
    opacity: 0.8;
    font-size: 1.2rem;
    line-height: 1.6;
    font-style: italic;
}

/* ================= RESPONSIVE PER TITOLI ================= */
@media (max-width: 1200px) {
    .content-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .content-section {
        padding: 2rem 0 0.5rem;
    }
    
    .content-title {
        font-size: 2rem;
        padding-bottom: 1rem;
    }
    
    .content-title::after {
        width: 150px;
    }
    
    .section-subtitle p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .content-title {
        font-size: 1.8rem;
    }
    
    .content-title::after {
        width: 120px;
    }
}

/* ================= MODERN ACCORDION ================= */
.modern-accordion {
    background: rgba(17, 11, 13, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(255, 139, 98, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 139, 98, 0.1);
    transition: all 0.3s ease;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-item:hover {
    background: rgba(255, 139, 98, 0.03);
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--oro-soft);
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.accordion-button:hover {
    background: rgba(255, 139, 98, 0.05);
    padding-left: 2.5rem;
}

.accordion-button:not(.collapsed) {
    color: var(--oro);
    background: rgba(255, 139, 98, 0.08);
}

.accordion-button:not(.collapsed) .accordion-arrow i {
    transform: rotate(180deg);
    color: var(--oro);
}

.accordion-button.collapsed .accordion-arrow i {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.accordion-icon {
    color: var(--oro);
    font-size: 1.2rem;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-title {
    flex: 1;
    line-height: 1.5;
}

.accordion-arrow {
    color: var(--oro-soft);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.accordion-button:hover .accordion-arrow {
    color: var(--oro);
}

/* ================= ACCORDION BODY ================= */
.accordion-collapse {
    transition: all 0.3s ease;
}

.accordion-body {
    padding: 0 2rem 2rem 4rem;
    background: transparent;
}

.faq-answer {
    color: var(--oro-soft);
    line-height: 1.8;
    font-size: 1rem;
    opacity: 0.9;
}

/* Usa la stessa classe content-text per uniformità */
.faq-answer.content-text {
    color: var(--oro-soft);
    line-height: 1.8;
    font-size: 1.1rem;
}

.faq-answer.content-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.faq-answer.content-text ul,
.faq-answer.content-text ol {
    margin: 1rem 0 1.5rem 2rem;
    color: var(--oro-soft);
}

.faq-answer.content-text li {
    margin-bottom: 0.5rem;
}

.faq-answer.content-text strong {
    color: var(--oro);
    font-weight: 600;
}

.faq-answer.content-text a {
    color: var(--oro);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 139, 98, 0.3);
    transition: all 0.3s ease;
}

.faq-answer.content-text a:hover {
    color: var(--oro-soft);
    border-bottom-color: var(--oro);
}

/* Gestione immagini nelle risposte FAQ */
.faq-answer.content-text img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 139, 98, 0.2);
    margin: 1rem 0;
}

.faq-answer.content-text img[style*="float:left"] {
    float: left !important;
    margin: 0.5rem 1.5rem 0.5rem 0 !important;
    max-width: 50% !important;
}

.faq-answer.content-text img[style*="float:right"] {
    float: right !important;
    margin: 0.5rem 0 0.5rem 1.5rem !important;
    max-width: 50% !important;
}

/* ================= NO FAQ MESSAGE ================= */
.no-faq-message {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--oro-soft);
    opacity: 0.7;
}

.no-faq-message i {
    font-size: 3rem;
    color: var(--oro);
    opacity: 0.5;
    margin-bottom: 1rem;
    display: block;
}

.no-faq-message p {
    font-size: 1.1rem;
    margin: 0;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .modern-faq-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-subtitle p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .accordion-button {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 0 1.5rem 1.5rem 3rem;
    }
    
    .accordion-icon {
        min-width: 25px;
        font-size: 1rem;
    }
    
    /* Su mobile, le immagini nelle FAQ non floatano */
    .faq-answer.content-text img[style*="float:left"],
    .faq-answer.content-text img[style*="float:right"] {
        float: none !important;
        display: block !important;
        margin: 1rem auto !important;
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .accordion-button {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
        gap: 0.8rem;
    }
    
    .accordion-body {
        padding: 0 1rem 1rem 2.5rem;
    }
    
    .faq-answer.content-text {
        font-size: 1rem;
    }
}

/* ================= ANIMATIONS ================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-collapse.collapsing {
    animation: fadeInUp 0.3s ease-out;
}

/* ================= SEARCH FUNCTIONALITY (opzionale) ================= */
.faq-search-container {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-search {
    position: relative;
}

.faq-search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 139, 98, 0.3);
    border-radius: 25px;
    color: var(--oro-soft);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--oro);
    box-shadow: 0 0 0 3px rgba(255, 139, 98, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.faq-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--oro);
    font-size: 1.2rem;
}

.faq-search-results {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--oro-soft);
    opacity: 0.7;
}

/* JavaScript per evidenziare le FAQ trovate */
.faq-highlight {
    background: rgba(255, 139, 98, 0.1);
    border-left: 3px solid var(--oro);
}

/* Per FAQ non trovate nella ricerca */
.faq-hidden {
    display: none;
}

/* HOME NEWS */
/* Template Featured per 1 sola news */
.news-featured-single {
    margin-bottom: 3rem;
}

.featured-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.featured-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-placeholder i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
}

.featured-content {
    padding: 2rem 0;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.5rem 0;
}

.featured-title a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: var(--color-primary);
}

.featured-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.featured-date i {
    color: var(--color-primary);
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.featured-cta {
    margin-top: 2rem;
}

.btn-featured {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--oro);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.btn-featured:hover {
    color: var(--oro-soft);
    gap: 1rem;
}

.btn-featured i {
    transition: transform 0.3s ease;
}

.btn-featured:hover i {
    transform: translateX(5px);
}

/* Layout 2 colonne */
.news-grid-double {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 991px) {
    .featured-title {
        font-size: 2rem;
    }
    
    .featured-excerpt {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .news-grid-double {
        grid-template-columns: 1fr;
    }
    
    .featured-title {
        font-size: 1.75rem;
    }
}

.news-cta {
    margin-top: 3rem;
    text-align: center;
    display: flex;
    justify-content: center;
}

.news-cta .page-button {
    width: 33.333%;
    font-size: 1.5rem;
    margin: 0;
    text-transform: uppercase;
}

.news-card {
    position: relative;
    z-index: 1;
}

.news-title a {
    position: relative;
    z-index: 10;
}

.read-more-btn {
    position: relative;
    z-index: 10;
}

/* Se ci sono overlay che bloccano i click */
.news-overlay {
    pointer-events: none; /* Permette il click sugli elementi sotto */
}

.news-overlay .news-link {
    pointer-events: auto; /* Solo il link nell'overlay è cliccabile */
}

.featured-title a,
.btn-featured {
    position: relative;
    z-index: 10;
    cursor: pointer;
}

/* Aggiungi lo stesso stile card alle news featured */
.news-featured-single {
    background: rgba(17, 11, 13, 0.8);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 139, 98, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.news-featured-single:hover {
    border-color: rgba(255, 139, 98, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Assicura che l'immagine featured abbia lo stesso stile */
.featured-image {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 139, 98, 0.1);
}

/* Hover effect sul link del titolo */
.featured-title a {
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: var(--oro) !important;
}

/* Responsive per featured */
@media (max-width: 991px) {
    .news-featured-single {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .news-featured-single {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .featured-content {
        padding: 1.5rem 0;
    }
}

.intro-text.news-content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--oro-soft);
    margin: 2rem auto;
    padding: 0 1.5rem;
    text-align: justify;
}

.intro-text.news-content-text p {
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 0;
}

/* STILI SWIPER */
.clients-section {
    background: rgba(17, 11, 13, 0.3);
    border-top: 1px solid rgba(255, 139, 98, 0.1);
    border-bottom: 1px solid rgba(255, 139, 98, 0.1);
}

/* Client Card - stile simile alle news */
.client-card {
    background: rgba(17, 11, 13, 0.8);
    border-radius: 15px; /* Angolazione principale */
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 139, 98, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.client-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 139, 98, 0.3);
    box-shadow: 0 15px 35px rgba(120, 5, 0, 0.3);
}

.client-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Container dell'immagine - SENZA SFONDO, SOLO PADDING */
.client-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px; /* Padding per respiro */
}

.client-logo {
    width: 100%;
    max-height: 160px;
    max-width: 160px;
    object-fit: contain;
    transition: all 0.5s ease;
    filter: brightness(1) saturate(1);
    opacity: 0.95;
    border-radius: 15px; /* 15px come la card esterna */
    border: 2px solid rgba(255, 139, 98, 0.25);
}

.client-card:hover .client-logo {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.1);
    opacity: 1;
    border-color: rgba(255, 139, 98, 0.5); /* Bordo più visibile al hover */
    box-shadow: 0 0 15px rgba(255, 139, 98, 0.2); /* Leggero glow */
}
.client-overlay {
    position: absolute;
    top: 20px; /* Stesso padding del container */
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, 
        rgba(120, 5, 0, 0.15) 0%, 
        rgba(255, 139, 98, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 15px; /* Stessa rotondità */
}

.client-card:hover .client-overlay {
    opacity: 1;
}

.client-overlay i {
    color: var(--oro);
    font-size: 2rem;
    opacity: 0.9;
}

.client-title {
    padding: 1.2rem;
    border-top: 1px solid rgba(255, 139, 98, 0.1);
    background: rgba(0, 0, 0, 0.1);
    text-align: center;
    flex-grow: 0;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-title h5 {
    color: var(--oro-soft);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.client-card:hover .client-title h5 {
    color: var(--oro);
}

/* Swiper container */
.clients-slider {
    position: relative;
    padding: 20px 0 60px;
}

.swiper-wrapper {
    padding: 20px 0;
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    display: flex;
}

/* Pagination customization */
.swiper-pagination {
    bottom: 10px !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 139, 98, 0.5);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--oro);
    opacity: 1;
    transform: scale(1.2);
}

/* Navigation arrows - NASCOSTE DI DEFAULT */
.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(17, 11, 13, 0.9);
    border: 1px solid rgba(255, 139, 98, 0.3);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    display: none;
}

.swiper-button-next i,
.swiper-button-prev i {
    color: var(--oro);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

/* Mostra frecce SOLO quando ci sono più slide di quelle visibili */
.clients-slider:hover .swiper-button-next,
.clients-slider:hover .swiper-button-prev {
    opacity: 0.8;
    visibility: visible;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(120, 5, 0, 0.3);
    border-color: var(--oro);
    transform: translateY(-50%) scale(1.1);
}

.swiper-button-next:hover i,
.swiper-button-prev:hover i {
    color: var(--oro-soft);
}

/* Responsive design */
@media (max-width: 1200px) {
    .client-image-container {
        padding: 15px;
    }
    
    .client-logo {
        max-height: 150px;
        max-width: 150px;
    }
}

@media (max-width: 992px) {
    .client-image-container {
        padding: 12px;
    }
    
     .client-logo {
        max-height: 140px;
        max-width: 140px;
        border-radius: 12px; /* Leggermente meno arrotondato */
        border-width: 1.5px; /* Bordo più sottile */
        padding: 8px; /* Meno padding */
    }
    
    .client-overlay {
        top: 12px;
        left: 12px;
        right: 12px;
        bottom: 12px;
        border-radius: 12px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        opacity: 0.7;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .clients-section .container {
        padding: 3rem 1rem;
    }
    
    .client-image-container {
        padding: 10px;
    }
    
    .client-logo {
        max-height: 130px;
        max-width: 130px;
        border-radius: 10px;
        border-width: 1px;
        padding: 6px;
    }
    
    .client-overlay {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: 10px;
    }
    
    .client-title {
        padding: 1rem;
        min-height: 60px;
    }
    
    .client-title h5 {
        font-size: 0.9rem;
    }
    
    /* Nascondi frecce su mobile */
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    .swiper-pagination {
        bottom: 0 !important;
    }
}

@media (max-width: 576px) {
    .client-image-container {
        padding: 8px;
    }
    
    .client-logo {
        max-height: 110px;
        max-width: 110px;
        border-radius: 8px;
        border-width: 1px;
        padding: 4px;
    }
    
    .client-card {
        border-radius: 12px;
    }
    
    .client-overlay {
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
        border-radius: 8px;
    }
    
    .client-title {
        min-height: 55px;
        padding: 0.8rem;
    }
    
    .client-title h5 {
        font-size: 0.85rem;
    }
}

/* Classe per nascondere frecce quando non servono */
.swiper-button-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    visibility: hidden !important;
}

/* ================= LOGO MITO CANTO ================= */
.mito-canto-container {
    position: absolute;
    top: 2.8rem; /* Sotto il menu */
    z-index: 99;
    right:0rem;
    display: flex;
    justify-content: flex-end;
}

.logo-mito-canto {
    max-width: 150px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo-mito-canto:hover {
    opacity: 1;
}

/* Se non c'è menu, il logo va nella posizione del menu */
.site-header:not(:has(.hamburger-menu)) .mito-canto-container,
.site-header-pagine:not(:has(.hamburger-menu)) .mito-canto-container {
    top: 1rem;
    right: 1rem;
}

/* Se c'è menu, il logo rimane sotto */
.site-header:has(.hamburger-menu) .mito-canto-container,
.site-header-pagine:has(.hamburger-menu) .mito-canto-container {
    top: 2.8rem;
}

/* Media queries per mobile - CORREZIONI MARGINI */
@media (max-width: 768px) {
    /* Menu hamburger più in alto */
    .hamburger-menu {
        position: absolute;
        top: 1rem;
        right: 1rem;
        margin-right: 0; /* Rimosso margine extra */
    }
    
    /* Logo Mito e Canto relativo al menu */
    .mito-canto-container {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        margin-top: 2.5rem; /* Ridotta distanza */
        display: flex;
        justify-content: flex-end;
        padding: 0;
    }
    
    /* Se c'è menu, il logo sta sotto con margine */
    .site-header:has(.hamburger-menu) .mito-canto-container,
    .site-header-pagine:has(.hamburger-menu) .mito-canto-container {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 2.5rem; /* Ridotta distanza */
    }
    
    /* Se non c'è menu, il logo va nella posizione del menu */
    .site-header:not(:has(.hamburger-menu)) .mito-canto-container,
    .site-header-pagine:not(:has(.hamburger-menu)) .mito-canto-container {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: auto;
        margin: 0;
    }
    
    .logo-mito-canto {
        max-width: 90px;
        margin-right: 1rem; /* Allineato con il menu */
    }
}

@media (max-width: 576px) {
    .hamburger-menu {
        top: 0.8rem;
        right: 0rem;
    }
    
    .mito-canto-container {
        margin-top: 0rem; /* Ancora meno */
    }
    
    .site-header:has(.hamburger-menu) .mito-canto-container,
    .site-header-pagine:has(.hamburger-menu) .mito-canto-container {
        margin-top: 0rem;
    }
    
    .site-header:not(:has(.hamburger-menu)) .mito-canto-container,
    .site-header-pagine:not(:has(.hamburger-menu)) .mito-canto-container {
        top: 0.8rem;
        right: 0.8rem;
    }
    
    .logo-mito-canto {
        max-width: 90px;
        margin-right: 0.8rem; /* Allineato con il menu */
    }
}


/* ================= FOOTER MITO E CANTO ABSOLUTE ================= */
.footer-mito-canto-absolute {
    position: relative;
    width: 100%;
    height: 0; /* Occupa spazio zero nel flusso */
}

.footer-mito-canto-logo {
    position: absolute;
    right: 0; /* Attaccato al bordo destro della pagina */
    bottom: 0; /* Allineato in basso con il footer */
    max-width: 250px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.footer-mito-canto-logo:hover {
    opacity: 1;
}

/* Se vuoi un po' di margine dal bordo destro */
.footer-mito-canto-logo.with-margin {
    right: 20px;
}

/* Per centrare verticalmente con il contenuto del footer */
.footer-mito-canto-logo.centered {
    bottom: 50%;
    transform: translateY(50%);
}

/* Media queries per mobile */
@media (max-width: 768px) {
    .footer-mito-canto-absolute {
        height: auto;
        margin-top: 1rem;
    }
    
    .footer-mito-canto-logo {
        position: static;
        display: block;
        margin: 0 auto;
        max-width: 200px;
    }
}


/* ================= ESSENTIAL NEWS SECTION ================= */
.news-section-essential {
    padding-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
}

.container-news-essential {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-section-essential {
    padding: 2rem 0 0.5rem;
}

/* ================= SINGOLA NEWS FULL WIDTH ================= */
.news-single-essential {
    margin-bottom: 2rem;
}

.news-single-essential .news-image-essential {
    height: 500px;
}

/* ================= GRID PER 2 NEWS ================= */
.news-grid-essential-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* ================= GRID PER 3+ NEWS ================= */
.news-grid-essential {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* ================= CARD ESSENZIALE ================= */
.news-card-essential {
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.news-card-essential:hover {
    transform: translateY(-5px);
}

.news-link-essential {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* ================= IMMAGINE NEWS ================= */
.news-image-essential {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.img-news-essential {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card-essential:hover .img-news-essential {
    transform: scale(1.05);
}

.news-placeholder-essential {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(120, 5, 0, 0.1) 0%, rgba(255, 139, 98, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-placeholder-essential i {
    font-size: 3rem;
    color: var(--oro);
    opacity: 0.3;
}

/* ================= OVERLAY ESSENZIALE ================= */
.news-overlay-essential {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        transparent 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.news-card-essential:hover .news-overlay-essential {
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.8) 100%);
}

.news-content-overlay {
    position: relative;
    z-index: 2;
}

.news-title-overlay {
    color: var(--oro-soft);
    font-size: 1.3rem;
    line-height: 1.4;
    margin: 0 0 0.8rem 0;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
}

.news-card-essential:hover .news-title-overlay {
    color: var(--oro);
}

.news-date-overlay {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--oro-soft);
    font-size: 0.9rem;
    opacity: 0.9;
}

.news-date-overlay i {
    color: var(--oro);
    font-size: 0.9rem;
}

/* ================= SCRITTA "VEDI TUTTE LE NEWS" ================= */
.all-news-label {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--oro);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 139, 98, 0.2);
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 3;
}

.news-single-essential:hover .all-news-label {
    background: rgba(0, 0, 0, 0.9);
    color: var(--oro-soft);
    opacity: 1;
}

/* ================= CARD "VEDI TUTTE LE NEWS" ================= */
.all-news-card .news-image-essential {
    background: linear-gradient(135deg, rgba(120, 5, 0, 0.3) 0%, rgba(255, 139, 98, 0.1) 100%);
    border: 2px dashed rgba(255, 139, 98, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.all-news-card:hover .news-image-essential {
    background: linear-gradient(135deg, rgba(120, 5, 0, 0.4) 0%, rgba(255, 139, 98, 0.2) 100%);
    border-color: rgba(255, 139, 98, 0.5);
}

.all-news-container {
    text-align: center;
    padding: 2rem;
}

.all-news-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.all-news-icon {
    font-size: 2.5rem;
    color: var(--oro);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.all-news-card:hover .all-news-icon {
    opacity: 1;
    transform: scale(1.1);
}

.all-news-text {
    color: var(--oro-soft);
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.all-news-card:hover .all-news-text {
    color: var(--oro);
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1200px) {
    .news-grid-essential {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 992px) {
    .news-single-essential .news-image-essential {
        height: 400px;
    }
    
    .news-grid-essential-two {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-title-overlay {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .news-section-essential {
        padding: 2rem 0;
    }
    
    .news-single-essential .news-image-essential {
        height: 350px;
    }
    
    .news-grid-essential-two,
    .news-grid-essential {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-image-essential {
        height: 250px;
    }
    
    .news-title-overlay {
        font-size: 1.1rem;
    }
    
    .news-overlay-essential {
        padding: 1.2rem;
    }
}

@media (max-width: 576px) {
    .news-single-essential .news-image-essential {
        height: 300px;
    }
    
    .news-image-essential {
        height: 220px;
    }
    
    .news-title-overlay {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .news-date-overlay {
        font-size: 0.8rem;
    }
    
    .all-news-label {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        bottom: 0.8rem;
        right: 0.8rem;
    }
    
    .all-news-icon {
        font-size: 2rem;
    }
    
    .all-news-text {
        font-size: 1rem;
    }
}

.news-single-essential .news-title-overlay {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.9) !important;
}

/* Overlay più scuro per migliorare leggibilità titolo */
.news-single-essential .news-overlay-essential {
    background: linear-gradient(to bottom, 
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.8) 90%,
        rgba(0, 0, 0, 0.95) 100%) !important;
}

/* 2. Bottone "Vedi tutte le news" meno invadente per 2 news */
.news-grid-essential-two .all-news-card .news-image-essential {
    height: 150px !important; /* Molto più piccolo */
    border: 1px solid rgba(255, 139, 98, 0.3) !important; /* Bordo più sottile */
}

.news-grid-essential-two .all-news-container {
    padding: 1rem !important; /* Meno padding */
}

.news-grid-essential-two .all-news-content {
    gap: 0.5rem !important; /* Meno spazio */
}

.news-grid-essential-two .all-news-icon {
    font-size: 1.5rem !important; /* Icona più piccola */
}

.news-grid-essential-two .all-news-text {
    font-size: 0.9rem !important; /* Testo più piccolo */
    font-weight: 500 !important;
}

/* Responsive per le correzioni */
@media (max-width: 768px) {
    .news-single-essential .news-title-overlay {
        font-size: 1.5rem !important;
    }
    
    .news-grid-essential-two .all-news-card .news-image-essential {
        height: 120px !important;
    }
}

@media (max-width: 576px) {
    .news-single-essential .news-title-overlay {
        font-size: 1.3rem !important;
    }
    
    .news-grid-essential-two .all-news-card .news-image-essential {
        height: 100px !important;
    }
    
    .news-grid-essential-two .all-news-text {
        font-size: 0.8rem !important;
    }
}