﻿/* GENERALE */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    background-color: #060606;
}


a {
    text-decoration: none;
    color: inherit; 
    transition: all 0.3s ease;
}

/* FONTS */
.title {
    font-family: "Squada One", sans-serif;
    line-height: 80%;
    text-transform: uppercase;
}
.saira {
    font-family: "Saira", sans-serif;
}
.squada {
    font-family: "Squada One", sans-serif;
}

body {
    font-family: "Saira", sans-serif;
    background-color: #060606;
}

.tracking-widest { letter-spacing: 3px; }
.tracking-wider  { letter-spacing: 2px; }

b {
    color:#0dcaf0
}

@media (max-width: 767px) {
    .text-justify-mobile {
        text-align: justify;
        text-justify: inter-word;
    }
}

/* TESTO CORPO SEZIONI */
.testo-corpo {
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify !important;
}

.innovazione {
    font-weight: 300;
    font-size: 4.5rem;
}

.digitale {
    font-size: 8rem;
    letter-spacing: 2px;
    font-family: "Squada One", sans-serif;
    text-transform: uppercase;
    line-height: 0.7;
}



/* COLORS */
:root {
    --ciano: #0dcaf0;
    --ciano-dark: #109ab6;
    --magenta-light: #c6338c;
    --magenta-dark: #9c0047;
    --nero: #060606;
}

.ciano {
    color:#0dcaf0
}

.ciano-dark {
    color:#109ab6;
}

.magenta {
    color: #c6338c;
}

/* PULSANTI */
.cyber-btn {
    border-width: 2px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background-color: #00000079;
}

.cyber-btn:hover {
    background-color: var(--ciano);
    color: #000 !important;
    box-shadow: 0 0 20px var(--ciano-dark);
    transform: translateY(-3px);
}

.cyber-btn-solid {
    background-color: var(--ciano);
    color: #000;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.cyber-btn-solid:hover {
    background-color: #fff;
    color: #000;
    box-shadow: 0 0 30px var(--ciano-dark);
    transform: scale(1.05);
}

.btn-magenta-grad {
    display: inline-block;
    padding: 15px 45px;
    background: linear-gradient(45deg, var(--magenta-dark), var(--magenta-light));
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(156, 0, 71, 0.3);
}

.btn-magenta-grad:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(198, 51, 140, 0.5);
    color: #fff;
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .cyber-btn-solid {
        padding: 10px 25px !important;
        font-size: 0.95rem !important;
        letter-spacing: 1px !important;
        width: 100% !important;
        display: block !important;
    }
    .btn-magenta-grad {
        padding: 12px 30px !important;
        font-size: 0.9rem !important;
        letter-spacing: 1px !important;
        display: inline-block;
        width: 100%;
        text-align: center;
    }
    .cyber-btn {
        padding: 10px 20px !important;
        font-size: 1.6rem !important;
    }
}

/* MENU */
.navbar-pillow-container {
    background: transparent !important;
    padding-top: 15px !important;
}

.navbar-pillow {
    background: rgba(6, 6, 6, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px 20px;
    transition: all 0.3s ease;
}

.logo-desktop { width: 120px;   height: 100%; }
.logo-mobile { width: 100px; height: 100%; display: block; margin: 0 auto; }

.cyber-btn-pill {
    background: rgba(6, 6, 6, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid var(--ciano);
    color: var(--ciano) !important;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .navbar-pillow {
        background: transparent;
        backdrop-filter: none;
        border: none;
        padding: 5px 20px;
    }
    .navbar-collapse {
        position: absolute;
        top: 100px;
        right: 0;
        background: rgba(6, 6, 6, 0.95);
        width: 250px;
        border-radius: 20px;
        border: 1px solid var(--ciano-dark);
        padding: 15px;
        backdrop-filter: blur(20px);
    }
    .navbar-pillow-container .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* HERO HOME */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.video-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
}

.hero-section .title {
    background: linear-gradient(180deg, #ffffff9c 30%, rgba(255, 255, 255, 0.123) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .hero-section {
        height: calc(100vh - 100px);
    }
    .hero-content .cyber-btn {
        font-size: 1.1rem !important;
        padding: 12px 20px !important;
        white-space: normal;
    }
    .cyber-btn-section {
        font-size: 0.95rem !important;
        width: 100% !important;
        display: block !important;
    }
}

/* HERO SOLUZIONI */
.solution-hero {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.solution-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,rgba(0, 0, 0, 0) 1%, rgba(0, 0, 0, 0.32) 30%, rgba(0, 0, 0, 0.73) 100%, rgba(0, 0, 0, 0) 100%);
}

.solution-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.solution-hero-sub {
    font-family: 'Saira', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 8px;
}

.solution-hero-title {
    font-family: 'Squada One', sans-serif;
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1;
    margin: 0;
}

@media (max-width: 768px) {
    .solution-hero {
        height: 100vh;
    }
}

.assistenza-os-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-family: 'Saira', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
}
.assistenza-os-btn i {
    font-size: 2rem;
    transition: filter 0.3s ease;
}
.assistenza-os-btn:hover {
    color: #0dcaf0;
    transform: translateY(-3px);
}
.assistenza-os-btn:hover i {
    filter: drop-shadow(0 0 10px rgba(13,202,240,0.7));
}

/* SERVIZI DI PUNTA */
.service-card {
    display: block;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}

.service-card:hover {
    border-color: var(--ciano);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    #servizi .container { padding: 20px 15px !important; }
    .service-card h4 { font-size: 1.8rem; }
}

/* CHI SIAMO */
.staff-slider-section { background-color: #060606; }

.slider-track {
    display: flex;
    width: max-content; 
    animation: scrollInfinito 60s linear infinite;
}

.collage-img {
    height: 450px;
    width: auto;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.slider-track:hover .collage-img { opacity: 1; }

@keyframes scrollInfinito {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .collage-img { height: 300px; }
}

/* FORENSICS */
.forensics-section {
    background: linear-gradient(rgb(0, 0, 0), rgba(0, 0, 0, 0)), url('../img/forensics-bg.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    min-height: 900px;
    display: flex;
    align-items: center;
}

.forensics-box {
    border-right: 2px solid var(--ciano);
    text-align: right;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

/* SERVIZI */
.servizi-section {
    background: radial-gradient(circle at 80% 50%, rgba(0, 125, 156, 0.15) 0%, rgb(6, 6, 6) 70%);
}

.glow-ciano {
    position: absolute;
    width: 400px; height: 400px;
    background: var(--ciano-dark);
    filter: blur(150px);
    opacity: 0.25;
    pointer-events: none;
}

.service-link { display: block; transition: transform 0.3s ease; }
.service-link:hover { transform: translateY(-5px); }
.lord-icon-service { width: 100px; height: 100px; }

@media (max-width: 768px) {
    .lord-icon-service { width: 70px; height: 70px; }
}

/* GESTIONALI AI */
.ai-gestionali-section {
    position: relative;
    min-height: 100vh;
    background: url('../img/gestionali-bg1.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.ai-web-section {
    position: relative;
    min-height: 100vh;
    background: url('../img/heroweb.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.particles-parallax {
    position: absolute;
    top: -10%; left: 0; width: 100%; height: 120%; 
    background-image: url('../img/gestionali-bg2.webp');
    background-size: cover;
    pointer-events: none;
    will-change: transform;
}

.ai-content-box {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--ciano);
}

/* ICON CIRCLE GLOW */
.icon-circle {
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.icon-circle:hover {
    box-shadow: 0 0 14px rgba(13, 202, 240, 0.7), 0 0 28px rgba(13, 202, 240, 0.3);
    border-color: #0dcaf0 !important;
    transform: scale(1.15);
}
@media (max-width: 767px) {
    .icon-list-mobile-lg .icon-circle {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
    }
    .icon-list-mobile-lg .icon-circle i {
        font-size: 1.5rem;
    }
    .icon-list-mobile-lg li span.text-light {
        font-size: 1.1rem;
        font-weight: 500;
    }
}

/* WEB SOLUTIONS */
.web-solutions-section {
    background: radial-gradient(circle at 80% 50%, rgba(156, 0, 71, 0.15) 0%, rgba(6, 6, 6, 1) 70%);
}

.magenta-text { color: var(--magenta-light); font-weight: 500; }

.web-feature-box {
    border-right: 2px solid #fff;
    padding-right: 20px;
    transition: all 0.5s ease;
}

.web-feature-box:hover {
    border-right-color: var(--magenta-light);
    transform: translateX(-5px);
}

.glow-magenta {
    position: absolute;
    width: 400px; height: 400px;
    background: var(--magenta-dark);
    filter: blur(150px);
    opacity: 0.25;
}

.lord-icon-web { width: 300px; height: 300px; }

@media (max-width: 768px) {
    .lord-icon-web { width: 180px; height: 180px; }
    .web-feature-box {
        border-right: none;
        border-left: 2px solid var(--magenta-light);
        padding-left: 15px;
        text-align: left;
    }
}

/* CLIENTI MARQUEE */
.marquee-wrapper {
    width: 100%;
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-content {
    display: flex;
    align-items: center;
    gap: 80px;
    animation: scrollClients 100s linear infinite;
}
.client-logo {
    width: 400px; height: auto;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}
.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}
.marquee-small .client-logo {
    width: 200px !important;
}
@keyframes scrollClients {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .marquee-content { gap: 20px; }
    .client-logo { width: 150px; opacity: 0.8; }
}

/* FORENSICS CTA */
.forensics-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.85) 100%);
}

.forensics1-cta-parallax {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/forensics1.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}
@media (max-width: 768px) {
    .forensics1-cta-parallax {
        background-attachment: scroll;
    }
}

.iubenda-cta-parallax {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/cubi.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}
@media (max-width: 768px) {
    .iubenda-cta-parallax {
        background-attachment: scroll;
    }
}

/* CYBER SECURITY */
.cyber-cta-parallax {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/cybersecurity.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

@media (max-width: 768px) {
    .cyber-cta-parallax {
        background-position: left center;
        background-attachment: scroll;
    }
    .cyber-cta-parallax .cyber-overlay {
        background: rgba(0, 0, 0, 0.65);
    }
    .hr-cta { margin: 12px auto !important; }
}

.hr-cta { margin: 12px 0 12px auto; }

.cyber-security-parallax {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/cybersecurity-bg.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.cyber-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg,rgba(0, 0, 0, 0) 1%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0) 100%);
}

/* INFRASTRUTTURE IT */
.it-cta-parallax {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/partner-bg.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}
.it-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
}
@media (max-width: 768px) {
    .it-cta-parallax { background-attachment: scroll; }
}

/* CONSULENZA */
.consulenza-cta-parallax {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('../img/consulenza-bg3.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}
@media (max-width: 768px) {
    .consulenza-cta-parallax { background-attachment: scroll; }
}

.cyan-glow {
    color: #0dcaf0;
    text-shadow: 0 0 20px rgba(13, 202, 240, 0.6);
}


/* BLOG CARDS */
.blog-card {
    border: 1px solid rgba(13,202,240,0.2);
    background: rgba(13,202,240,0.04);
    text-decoration: none;
    overflow: hidden;
    border-radius: 12px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(13,202,240,0.5);
    background: rgba(13,202,240,0.08);
}

.blog-card-img-wrap {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.04);
}

.blog-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.blog-card-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    background: rgba(13,202,240,0.15);
    border: 1px solid rgba(13,202,240,0.4);
    color: #0dcaf0;
    font-family: 'Saira', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 50px;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-date {
    font-family: 'Saira', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ciano);
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-family: 'Squada One', sans-serif;
    font-size: 1.4rem;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-cta {
    font-family: 'Saira', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ciano);
}


 /* PARTNER SECTION */


.partner-parallax {
    position: relative;
    min-height: 600px;
    background-image: url('../img/partner-bg.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.partner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg,rgba(0, 0, 0, 0) 1%, rgba(0, 0, 0, 0.88) 62%);
}

.partner-box {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--ciano);
    z-index: 5;
}

.vertical-marquee-wrapper {
    height: 450px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.vertical-marquee-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    animation: scrollVertical 20s linear infinite;
}

.partner-v-logo {
    width: 180px;
    height: auto;
    transition: all 0.4s ease;
}

/* Pausa marquee al hover su qualsiasi logo */
.vertical-marquee-content:has(a:hover) {
    animation-play-state: paused;
}

/* Link wrapper per il tooltip */
.vertical-marquee-content a {
    position: relative;
    display: inline-block;
}

.vertical-marquee-content a::after {
    content: 'visita il sito';
    position: absolute;
    bottom: -28px;
    left: 0;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 18px rgba(13, 202, 240, 0.12), inset 0 1px 0 rgba(255,255,255,0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 5px 0;
    border-radius: 8px;
    font-size: 0.70rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 10;
}

.vertical-marquee-content a:hover::after {
    opacity: 1;
}

@keyframes scrollVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* --- MOBILE (Soluzione Statica) --- */
@media (max-width: 991px) {
    .partner-parallax {
        height: auto !important;
        padding: 100px 0 60px 0;
    }

    .partner-mobile-grid {
        margin-top: 40px;
        padding: 0 15px;
    }

    .partner-m-logo {
        max-width: 100%;
        height: auto;
        opacity: 0.8;
    }
}


/* Animazione di traslazione orizzontale lenta */

@keyframes slowPan {

    0% { background-position: 0% center; }

    50% { background-position: 100% center; }

    100% { background-position: 0% center; }

}


/* Classe da applicare alle sezioni */

.bg-panning {

    /* Fondamentale: lo sfondo deve essere più largo del contenitore per poter scorrere */

    background-size: 120% auto !important;

    background-attachment: scroll !important; /* Sovrascrive il fixed per permettere il movimento */

    animation: slowPan 60s ease-in-out infinite;

}


.forensics-section,

.ai-gestionali-section,

.cyber-security-parallax {

    overflow: hidden !important; /* Taglia l'immagine che sporge del 20% */

    width: 100%;

}


@media (max-width: 768px) {

    .bg-panning {

        /* Forza lo sfondo a non superare mai la larghezza dello schermo */

        background-size: cover !important;

        background-position: center center !important;

        animation: none !important;

        /* Impedisce scivolamenti dello sfondo */

        background-attachment: scroll !important;

    }

}


.staff-slider-section,

.marquee-wrapper,

.vertical-marquee-wrapper {

    width: 100%;

    overflow: hidden !important;

    position: relative;

}


/* Assicuriamoci che il nastro dei loghi non forzi il body ad allargarsi */

.marquee-content, .slider-track {

    display: flex;

    flex-wrap: nowrap;

} 

/* PANNING */
@keyframes slowPan {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.bg-panning {
    background-size: 120% auto !important; 
    background-attachment: scroll !important; 
    animation: slowPan 60s ease-in-out infinite;
}

@media (max-width: 768px) {
    .bg-panning {
        background-size: cover !important; 
        animation: none !important;
    }
}



.icon-feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.icon-feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(13,202,240,0.15);
}

.hero-anchor-card {
    width: 160px;
    border-radius: 16px;
    background: rgba(0,0,0,0.75);
    transition: all 0.3s;
}

/* FOOTER */
footer {
    background-color: var(--nero);
    border-top: 1px solid rgba(13, 202, 240, 0.2);
    position: relative;
}

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 200;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--ciano);
    transform: translateX(5px);
    text-shadow: 0 0 8px var(--ciano-dark);
}

/* TORNA SU */
#back-to-top {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 999;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ciano);
    color: #000;
    border: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 rgba(13,202,240,0);
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(13,202,240,0.5);
}

.social-links a {
    font-size: 1.4rem;
    color: #fff;
    opacity: 0.5;
    transition: all 0.3s;
}

.social-links a:hover { opacity: 1; color: var(--magenta-light); }

.footer-cyber::before {
    content: '';
    position: absolute;
    top: -100px; right: 10%;
    width: 300px; height: 100px;
    background: var(--magenta-dark);
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
}

/* FIX FOOTER MOBILE COLONNE */
@media (max-width: 767px) {
    .footer-cyber .row.align-items-center {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    
    .footer-cyber .text-md-end {
        margin-top: 20px;
    }

    /* Impedisce ai link privacy di ammassarsi */
    .footer-cyber a.small {
        display: inline-block;
        margin-bottom: 10px;
    }
}

footer a.text-white-50:hover {
    color: var(--ciano) !important;
    transition: color 0.2s ease;
}

/* RESET AOS */
[data-aos] { pointer-events: none; }
.aos-animate { pointer-events: auto; }


/* CHI SIAMO */

/* --- Container principale --- */
.zoom-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #060606; /* era #000, uniforma al sito */
}

.zoom-container img {
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    display: block;
    width: 100%;
    background-color: #060606;
    min-height: 200px; /* forza un'altezza minima scura mentre carica */
}

.zoom-container:hover img {
    transform: scale(1.05);
}

.row.gx-0 > [class*="col"] {
    background-color: #060606;
}

/* --- Info-Box Unificato (Liquid Glass) --- */
.info-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    
    /* L'altezza iniziale mostra solo il nome. 
       Il resto è nascosto dal padding/altezza controllata */
    height: 60px; 
    padding: 15px;
    
    /* Effetto Glassmorphism */
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    border-top: 1px solid rgba(13, 202, 240, 0.4);
    transition: height 1s cubic-bezier(0.19, 1, 0.22, 1);
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* --- Espansione al passaggio del mouse --- */
.zoom-container:hover .info-box {
    height: 40%; /* Si alza fino a un terzo della card */
    background: rgba(10, 10, 10, 0.85); /* Diventa leggermente più scuro per leggere meglio il ruolo */
}

/* --- Testi --- */
.testo-nome {
    color: #0dcaf0; /* Il nome resta sempre Ciano */
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    transition: color 0.3s ease;
}

.testo-ruolo {
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 20px; /* Spazio per farlo apparire solo quando il box si alza */
    opacity: 0;
    transition: opacity 0.4s ease 0.1s; /* Ritardo per far apparire il testo dopo l'alzata */
}

.zoom-container:hover .testo-ruolo {
    opacity: 1;
}

/* --- Pulsante Chiama Professionista --- */
.btn-call {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #0dcaf0; /* Testo Ciano */
    text-decoration: none;
    border: 1px solid #0dcaf0; /* Outline Ciano */
    border-radius: 50px; /* Bordi arrotondati */
    transition: all 0.3s ease;
    background: transparent;
}

.btn-call:hover {
    background-color: #0dcaf0;
    color: #000; /* Testo nero su fondo ciano per leggibilità */
    box-shadow: 0 0 15px rgba(13, 202, 240, 0.4); /* Glow tech */
}


/* Layout Masonry NetCubo */
.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(13, 202, 240, 0.2); /* Sottile bordo ciano */
    transition: transform 0.4s ease;
}

.masonry-item img {
    width: 100%;
    height: auto;
    filter: grayscale(30%); /* Leggero desaturato per uno stile più tech */
    transition: all 0.5s ease;
}

.masonry-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Responsive: su mobile una sola colonna */
@media (max-width: 768px) {
    .masonry-container {
        column-count: 1;
    }
}


.chi-siamo-parallax {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/chisiamo-bg.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.chisiamo-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg,rgba(0, 0, 0, 0) 1%, rgba(0, 0, 0, 0.32) 40%, rgba(0, 0, 0, 0.73) 60%, rgba(0, 0, 0, 0) 100%)
}

.gestionali-parallax {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.gestionali-parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/creazione.webp');
    background-position: center;
    background-size: cover;
    transform: scale(1);
    transition: transform 6s ease;
    z-index: 0;
}

.gestionali-parallax:hover::before {
    transform: scale(1.08);
}

.gestionali-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.13);
    z-index: 1;
    transition: background 1s ease;
}

.gestionali-parallax:hover .gestionali-overlay {
    background: rgba(0, 0, 0, 0.55);
}

.gestionali-parallax .container {
    position: relative;
    z-index: 2;
}


/* ===========================
   BRAND IDENTITY PAGE
   =========================== */
.body-glow-magenta {
    background: radial-gradient(ellipse at 35% 35%, rgba(198,51,140,0.13) 0%, #060606 55%) fixed, #060606 !important;
}
.body-glow-ciano {
    background: radial-gradient(ellipse at 35% 35%, rgba(13,202,240,0.08) 0%, #060606 55%) fixed, #060606 !important;
}

.brand-mug-section {
    position: relative;
    min-height: 650px;
    background-image: url('../img/brand-bg5.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    display: flex;
    align-items: center;
}
@media (max-width: 768px) {
    .brand-mug-section { background-attachment: scroll; }
}

.brand-mug-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(6,6,6,0.92) 45%, rgba(6,6,6,0.4));
    z-index: 1;
}

.brand-mug-content {
    position: relative;
    z-index: 3;
    padding: 80px 0;
}

.brand-mug-img {
    position: absolute;
    right: 6%;
    bottom: 15%;
    width: clamp(200px, 28vw, 400px);
    z-index: 1;
    filter: drop-shadow(0 24px 64px rgba(198,51,140,0.45));
    will-change: transform;
}

.brand-service-card {
    --cc: 198,51,140;
    border: 1px solid rgba(var(--cc), 0.25);
    border-radius: 16px;
    background: rgba(var(--cc), 0.05);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    position: relative;
    overflow: hidden;
}
/* linea gradiente in cima, appare all'hover */
.brand-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(var(--cc), 0.9), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}
/* shine sweep */
.brand-service-card::after {
    content: '';
    position: absolute;
    top: -50%; left: -70%;
    width: 45%; height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.07), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
    pointer-events: none;
}
.brand-service-card:hover {
    border-color: rgba(var(--cc), 0.7);
    background: rgba(var(--cc), 0.12);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 40px rgba(var(--cc), 0.28);
}
.brand-service-card:hover::before { opacity: 1; }
.brand-service-card:hover::after  { left: 130%; }
.brand-service-card i { color: rgba(var(--cc), 1) !important; }


.brand-marquee-section {
  overflow: hidden;
  padding: 28px 0;
  background: rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(198,51,140,0.12);
  border-bottom: 1px solid rgba(198,51,140,0.12);
}

.brand-marquee-track {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    animation: brand-scroll 18s linear infinite;
}
.brand-marquee-item {
  font-family: "Squada One", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: rgba(0, 207, 255, 0.29);
  letter-spacing: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.brand-marquee-dot {
    color: #0dcaf0;
    opacity: 0.5;
    flex-shrink: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: "Squada One", sans-serif;
    align-self: center;
}
@keyframes brand-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


.tilt-wrap {
    perspective: 700px;
}
.tilt-wrap img {
    transition: transform 0.08s linear;
    will-change: transform;
}

.btn-explode {
    position: relative;
    overflow: visible !important;
    z-index: 1;
}
.btn-explode:active {
    transform: scale(0.96) translateY(1px) !important;
}

.brand-cta-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.brand-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/brand-bg2.webp');
    background-size: cover;
    background-position: center right;
    transform: scale(var(--cta-zoom, 1.05));
    will-change: transform;
    z-index: 0;
}
@media (min-width: 768px) {
    .brand-cta-section { min-height: 800px; }
}
@media (max-width: 767.98px) {
    .brand-cta-section { min-height: 500px; }
}
.brand-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(6,6,6,0.92) 50%, rgba(6,6,6,0.2));
    z-index: 1;
}
@media (max-width: 767.98px) {
    .brand-cta-overlay { background: rgba(6,6,6,0.88); }
}
@media (max-width: 991.98px) {
    .brand-cta-section::before { background-position: left center; }
}
.brand-cta-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

@media (max-width: 991.98px) {
  .text-justify-mobile { text-align: justify; }
}

/* ================================================
   PAGE-SPECIFIC BODY BACKGROUNDS
   ================================================ */

/* ================================================
   GESTIONE SOCIAL PAGE
   ================================================ */
/* Social photo grid */
.social-photo-item {
    position: relative;
    overflow: hidden;
}
.social-photo-item::after {
    content: '';
    position: absolute;
    inset: 0;


}
.social-photo-item:hover::after {
    background: rgba(0,0,0,0);
}
.social-photo-item img {
    display: block;
    width: 100%;
    transition: transform 0.45s ease;
}
.social-photo-item:hover img {
    transform: scale(1.06);
}

/* Flipped background for social mug section */
.social-mug-section {
    background-image: none;
}
.social-mug-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/brand-bg5.webp');
    background-size: cover;
    background-position: center;
    transform: scaleX(-1);
    z-index: 0;
}

.social-cta-parallax {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/social-bg1.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.social-cta-parallax .chisiamo-overlay {
    background: rgba(0,0,0,0.77);
}

/* Gradient title - social page */
.title-grad {
    background: linear-gradient(90deg, #0dcaf0 0%, #c6338c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ================================================
   CONTATTI PAGE
   ================================================ */

/* --- Photo cards contatto --- */
.contatti-photo-card {
    display: block;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    border: 1px solid rgba(13,202,240,0.12);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.contatti-photo-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(13,202,240,0.85), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}
.contatti-photo-card:hover {
    border-color: rgba(13,202,240,0.45);
    box-shadow: 0 28px 60px rgba(13,202,240,0.12);
}
.contatti-photo-card:hover::after { opacity: 1; }

.contatti-photo-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.contatti-photo-card:hover img { transform: scale(1.07); }

.contatti-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}
.contatti-photo-card:hover .contatti-photo-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.1) 100%);
}

.contatti-photo-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(13,202,240,0.15);
    transition: border-color 0.4s ease, background 0.4s ease;
}
.contatti-photo-card:hover .contatti-photo-label {
    border-top-color: rgba(13,202,240,0.5);
    background: rgba(0,0,0,0.45);
}

.contatti-photo-label-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(13,202,240,0.15);
    border: 1px solid rgba(13,202,240,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: #0dcaf0;
    flex-shrink: 0;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
.contatti-photo-card:hover .contatti-photo-label-icon {
    background: rgba(13,202,240,0.28);
    box-shadow: 0 0 20px rgba(13,202,240,0.35);
}
.contatti-photo-label .bi-arrow-right {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.contatti-photo-card:hover .bi-arrow-right { transform: translateX(5px); }

@media (max-width: 767px) {
    .contatti-photo-card { aspect-ratio: 1 / 1; }
}


/* --- Fasi tab switcher --- */
.fasi-tab {
    background: transparent;
    border: 1px solid rgba(13,202,240,0.25);
    color: rgba(255,255,255,0.45);
    padding: 0.45rem 1.6rem;
    font-family: 'Saira', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.fasi-tab:hover {
    background: rgba(13,202,240,0.08);
    border-color: rgba(13,202,240,0.4);
    color: #0dcaf0;
}
.fasi-tab.active {
    background: rgba(13,202,240,0.12);
    border-color: rgba(13,202,240,0.6);
    color: #0dcaf0;
}

/* Carousel viewport */
.fasi-viewport {
    overflow: hidden;
    margin-top: 2.5rem;
}
.fasi-track {
    display: flex;
    gap: 24px;
    will-change: transform;
    transition: transform 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fasi-panel {
    flex: 0 0 78%;
    opacity: 0.35;
    transform: scale(0.96);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
.fasi-panel.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.fasi-panel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(13,202,240,0.18);
    background: rgba(13,202,240,0.03);
}
.fasi-panel-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3rem 3rem 3.5rem;
}
.fasi-number {
    font-family: 'Squada One', sans-serif;
    font-size: 6rem;
    line-height: 1;
    color: rgba(13,202,240,0.12);
    display: block;
    margin-bottom: -1rem;
}
.fasi-title {
    font-family: 'Squada One', sans-serif;
    font-size: 2.2rem;
    color: #0dcaf0;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}
.fasi-desc {
    color: rgba(255,255,255,0.6);
    font-family: 'Saira', sans-serif;
    font-weight: 300;
    line-height: 1.8;
    margin: 0;
}
.fasi-panel-img {
    position: relative;
    overflow: hidden;
}
.fasi-panel-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 767px) {
    .fasi-panel { flex: 0 0 88%; }
    .fasi-panel-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .fasi-panel-text { padding: 2rem; }
    .fasi-panel-img { min-height: 220px; }
    .fasi-number { font-size: 4rem; }
    .fasi-title { font-size: 1.6rem; }
}

/* --- Assistenza photo card (testo sovrapposto) --- */
.assistenza-photo-card {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    text-decoration: none;
    border: 1px solid rgba(13,202,240,0.18);
    border-radius: 16px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.assistenza-photo-card:hover {
    border-color: rgba(13,202,240,0.5);
    box-shadow: 0 28px 60px rgba(13,202,240,0.14);
}
.assistenza-photo-card.magenta:hover {
    border-color: rgba(198,51,140,0.5);
    box-shadow: 0 28px 60px rgba(198,51,140,0.14);
}
.assistenza-photo-card img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.assistenza-photo-card:hover img { transform: scale(1.06); }

.assistenza-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}
.assistenza-photo-card:hover .assistenza-photo-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0.2) 100%);
}

.assistenza-photo-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
}
.assistenza-photo-label-tag {
    font-family: 'Saira', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}
.assistenza-photo-title {
    font-family: 'Squada One', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}
.assistenza-photo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.assistenza-photo-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    font-family: 'Saira', sans-serif;
    font-weight: 300;
}
.assistenza-photo-list li i {
    font-size: 0.65rem;
    flex-shrink: 0;
}
.assistenza-photo-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Saira', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: gap 0.3s ease;
}
.assistenza-photo-card:hover .assistenza-photo-cta { gap: 0.7rem; }


/* --- Pannello form (glass card) --- */
.contatti-form-wrap {
    border: 1px solid rgba(13,202,240,0.14);
    border-radius: 20px;
    overflow: hidden;
}
.contatti-sidebar {
    background: rgba(13,202,240,0.04);
    border-right: 1px solid rgba(13,202,240,0.12);
}
.contatti-form-body {
    background: rgba(255,255,255,0.02);
}

/* --- Form inputs --- */
.form-contatti .form-control,
.form-contatti .form-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(13,202,240,0.18);
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.form-contatti .form-control:focus,
.form-contatti .form-select:focus {
    background: rgba(13,202,240,0.07);
    border-color: #0dcaf0;
    box-shadow: 0 0 0 3px rgba(13,202,240,0.12);
    color: #fff;
    outline: none;
}
.form-contatti .form-control::placeholder { color: rgba(255,255,255,0.22); }
.form-contatti .form-select option { background: #0e0e0e; color: #fff; }
.form-contatti label.form-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.form-contatti .form-check-input {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(13,202,240,0.3);
    width: 18px; height: 18px;
}
.form-contatti .form-check-input:checked {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}
.form-contatti .form-check-label { font-size: 0.82rem; line-height: 1.5; }

/* --- Success / Error --- */
.form-success-box {
    border: 1px solid rgba(13,202,240,0.25);
    background: rgba(13,202,240,0.06);
    border-radius: 14px;
}
.form-error-alert {
    background: rgba(220,53,69,0.1);
    border: 1px solid rgba(220,53,69,0.3);
    border-radius: 8px;
    color: #f8d7da;
    font-size: 0.9rem;
}

/* --- Mappa --- */
.contatti-map-wrap {
    border: 1px solid rgba(13,202,240,0.14);
    border-radius: 20px;
    overflow: hidden;
}
.contatti-map-header {
    background: rgba(13,202,240,0.04);
    border-bottom: 1px solid rgba(13,202,240,0.12);
}


.contatti-map-wrap .position-relative img {
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contatti-map-wrap:hover .position-relative img {
    transform: scale(1.08);
}

.contatti-map-pin {
    text-decoration: none;
    transition: transform 0.2s ease;
}

.contatti-map-pin:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

@media (max-width: 991px) {
    .contatti-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(13,202,240,0.12);
    }
}


/* ================================================
   BLOG ARTICOLI
   ================================================ */

.articolo-hero {
    height: 65vh;
    min-height: 420px;
    background-size: cover;
    background-position: center;
}

@media (max-width: 767px) {
    .articolo-hero { height: 45vw; min-height: 260px; }
}

.articolo-header {
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(13,202,240,0.15);
}

.articolo-categoria {
    font-family: 'Saira', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #0dcaf0;
    margin-bottom: 1rem;
}

.articolo-title {
    font-family: 'Squada One', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.articolo-date-tag {
    font-family: 'Saira', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    margin: 0;
}

.articolo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(13,202,240,0.12);
}

.articolo-section {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: stretch !important;
}

.articolo-section [class*="col-md-4"] {
    display: flex;
}

@media (max-width: 767px) {
    .articolo-section [class*="col-md-4"] {
        min-height: 220px;
    }
}

.articolo-contenuto p {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    text-align: justify;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.articolo-contenuto h2 {
    font-family: 'Squada One', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-transform: uppercase;
    color: #0dcaf0;
    margin-top: 2.5rem;
    margin-bottom: 0.25rem;
}

.articolo-contenuto h3 {
    font-family: 'Saira', sans-serif;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    font-weight: 300;
    margin-bottom: 1.25rem;
}

.articolo-contenuto ul,
.articolo-contenuto ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.articolo-contenuto ul li,
.articolo-contenuto ol li {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 0.4rem;
}

.articolo-contenuto img {
    border-radius: 4px;
    border: 1px solid rgba(13,202,240,0.15);
}

.articolo-tip-box {
    border: 1px solid rgba(13,202,240,0.2);
    background: rgba(13,202,240,0.04);
    padding: 1.5rem;
    height: 100%;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.articolo-tip-box:hover {
    border-color: rgba(13,202,240,0.4);
    background: rgba(13,202,240,0.08);
}

.articolo-tip-box h4 {
    font-family: 'Squada One', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #0dcaf0;
    margin-bottom: 0.75rem;
}

.articolo-tip-box p {
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
}

.articolo-quote {
    border-left: 3px solid #0dcaf0;
    padding: 1.25rem 1.75rem;
    margin: 2.5rem 0;
    background: rgba(13,202,240,0.04);
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
    line-height: 1.7;
}

.articolo-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Saira', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 2.5rem;
    transition: color 0.3s ease;
}

.articolo-back:hover {
    color: #0dcaf0;
}


/* ================================================
   BLOG SIDEBAR
   ================================================ */

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    border: 1px solid rgba(13,202,240,0.15);
    background: rgba(13,202,240,0.03);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget-title {
    font-family: 'Squada One', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #0dcaf0;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(13,202,240,0.2);
}


.sidebar-post {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-post:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.sidebar-post-link {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: opacity 0.3s ease;
}
.sidebar-post-link:hover { opacity: 0.7; }

.sidebar-post-img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(13,202,240,0.12);
}

.sidebar-post-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-post-cat {
    font-family: 'Saira', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0dcaf0;
}

.sidebar-post-title {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.35;
    font-weight: 300;
}

.sidebar-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-family: 'Saira', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.sidebar-cat-link::after {
    content: '→';
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-cat-link:hover { color: #0dcaf0; padding-left: 0.4rem; }
.sidebar-cat-link:hover::after { opacity: 1; }
.sidebar-cats li:last-child .sidebar-cat-link { border-bottom: none; }

/* BLOG FILTER PILLS */
.blog-filter-pill {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    border: 1px solid rgba(13,202,240,0.3);
    border-radius: 50px;
    font-family: 'Saira', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.3s ease;
}
.blog-filter-pill:hover {
    border-color: rgba(13,202,240,0.6);
    color: #0dcaf0;
    background: rgba(13,202,240,0.08);
    text-decoration: none;
}
.blog-filter-pill.active {
    background: rgba(13,202,240,0.15);
    border-color: #0dcaf0;
    color: #0dcaf0;
}
