/* --- FONT SPOT MONO (locale) --- */
/* Bold (700) — unico peso disponibile */
@font-face {
    font-family: 'Spot Mono';
    src: url('../fonts/SpotMono-Bold.woff2') format('woff2'),
         url('../fonts/SpotMono-Bold.woff') format('woff'),
         url('../fonts/SpotMono-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- FONT URBANIST (locale) --- */
@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/Urbanist-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* --- BASE --- */
* { box-sizing: border-box; }
body { font-family: sans-serif; margin: 0; padding: 0; color: #333; background-color: #fff; }

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    height: 100px;
    border-bottom: 1px solid #eee;
}
.logo img { height: 80px; width: auto; display: block; }
.btn-whatsapp {
    background-color: #FF5722 !important;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 20px;
    display: inline-block;
    border: 2px solid #000 !important;
}

/* --- TITOLI --- */
h1 { font-family: 'Urbanist', sans-serif; font-size: 48px; margin-top: 30px; }
.h1-gold {
    background: linear-gradient(135deg, #BF953F, #FCF6B5, #B38728, #FBF5B7, #AA771C);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShine 4s ease-in-out infinite;
    display: inline-block;
}
@keyframes goldShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
h2 { font-family: 'Urbanist', sans-serif; text-align: center; margin-top: 40px; font-size: 30px; }

/* --- VIDEO CON BLUR (Primo Blocco) --- */
.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 15px;
    background-color: #333;
}
.video-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

/* --- SMARTPHONE FRAME (Primo Blocco Video - Short verticale) --- */
.phone-frame {
    position: relative;
    width: 300px;
    max-width: 85vw;
    margin: 30px auto;
    background: linear-gradient(145deg, #2a2a2a, #111);
    border-radius: 48px;
    padding: 14px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45), 0 8px 20px rgba(0,0,0,0.25), inset 0 2px 4px rgba(255,255,255,0.12), inset 0 -2px 6px rgba(0,0,0,0.5);
}
.phone-frame::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #000;
    border-radius: 14px;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.phone-frame::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 130px;
    width: 3px;
    height: 46px;
    background: #333;
    border-radius: 0 3px 3px 0;
}
.phone-screen {
    position: relative;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 36px;
    overflow: hidden;
    border: 2px solid #000;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}
.phone-screen .yt-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
}
.phone-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
#afterCardContent {
    margin-top: 60px;
}

/* --- YOUTUBE CLICK-TO-LOAD PLACEHOLDER --- */
.yt-placeholder {
    position: relative;
    width: 100%;
    height: 450px;
    cursor: pointer;
    background: #000;
    overflow: hidden;
}
.yt-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    opacity: 0.85;
    transition: opacity 0.2s;
    pointer-events: none;
}
.yt-placeholder:hover .yt-play-btn {
    opacity: 1;
}
@media (max-width: 600px) {
    .phone-frame { width: 250px; padding: 10px; border-radius: 40px; }
    .phone-screen { border-radius: 30px; }
    .phone-frame::before { width: 78px; height: 20px; top: 14px; }
}

/* --- NEWS TITLE (font Urbanist) --- */
.news-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 800;
    font-size: 18px;
}

/* --- VIDEO SEMPLICE (Altri Blocchi) --- */
section.video-section {
    margin-bottom: 60px;
}
.video-simple {
    max-width: 800px;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    line-height: 0;
}
.video-simple iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* --- BOX PULSANTE BLOG + ANTEPRIMA ARTICOLO (tutto in un unico box centrato) --- */
.btn-blog-primary {
    display: inline-block;
    background: rgb(255, 160, 0);
    color: white;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    /* Effetto 3D: bordo inferiore scuro crea lo spessore del bottone */
    border-bottom: 4px solid rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease, box-shadow 0.2s ease, transform 0.15s ease, border-bottom-width 0.15s ease, filter 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 160, 0, 0.4);
}

.btn-blog-primary:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 160, 0, 0.5);
}

/* Effetto 3D: il bottone si "schiaccia" quando premuto */
.btn-blog-primary:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
    box-shadow: 0 2px 6px rgba(255, 160, 0, 0.3);
}

/* =====================================================
   CARD "DERNIER ARTICLE" - PORTA VETRATA
   Colori FISSI (arancione caldo: niente scroll color progress.
   Le vecchie variabili colore dinamiche sono state sostituite da valori fissi
   (stessa identita visiva finale della card.
===================================================== */
.article-preview-card {
    max-width: 700px;
    margin:  120px auto 25px;
    border-radius: 16px;
    padding: 25px;
    border-left: 4px solid rgb(255, 160, 0);
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    position: relative;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    background:
        linear-gradient(160deg,
            rgb(180, 70,  20) 0%,
            rgb(200, 85,  25) 35%,
            rgb(160, 55,  15) 65%,
            rgb(190, 75,  20) 100%);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.55),
        0 2px 8px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


.article-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), rgba(255,255,255,0.08), transparent);
    pointer-events: none;
    z-index: 1;
}
.article-preview-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(255,255,255,0.03) 0%, transparent 40%);
    pointer-events: none;
}

.article-preview-card .preview-btn-section {
    text-align: center;
    margin-bottom: 0;
}

.article-preview-card .preview-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin:   14px 0;
}

.article-preview-card .preview-label {
    display: inline-block;
    align-self: flex-start;
    background: rgb(255, 160, 0);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size:  0.62em;
    font-weight: bold;
    margin-bottom:  6px;
    text-transform: uppercase;
    letter-spacing:  0.3px;
    transition: background 0.15s ease;
}



.article-preview-card .preview-title {
    font-size: 0.95em;
    font-weight: bold;
    color: #e8e8e8;
    margin:  0 0 4px 0;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.article-preview-card .preview-sottotitolo {
    color: #b0b0b0;
    font-size: 0.8em;
    font-weight: bold;
    margin:  0 0 5px 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.article-preview-card .preview-excerpt {
    color: #a0a0a0;
    font-size:  0.76em;
    line-height: 1.5;
    margin-bottom:  8px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.article-preview-card .preview-link {
    display: inline-block;
    color: rgb(255, 180,  0);
    text-decoration: none;
    font-weight: bold;
    font-size:  0.76em;
    transition: color  0.3s ease;
    overflow-wrap: break-word;
    word-wrap: break-word;
}



.article-preview-card ul,
.article-preview-card li {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    color: #c0c0c0;
}

.article-preview-card .preview-link:hover {
    color: #b81e1e;
}

.article-preview-card .preview-loading {
    color: #999;
    font-size: 0.9em;
    font-style: italic;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* --- CTA SECTION --- */
.cta-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
    margin-top: 50px;
}

.cta-box {
    margin-bottom: 40px;
}

.btn-big {
    display: inline-block;
    background-color: #FF5722;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    margin: 10px 0;
    transition: background 0.3s;
}

.btn-big:hover {
    background-color: #e64a19;
}

.small-text {
    font-size: 20px;
    color: #666;
    margin-top: 10px;
}

/* --- SPARKLE TEXT (Testo scintillante) --- */
.sparkle-text {
    color: #000;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 15px;
    background: linear-gradient(
        90deg,
        #000 0%,
        #000 30%,
        #D32F2F 45%,
        #FFD700 50%,
        #D32F2F 55%,
        #000 70%,
        #000 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 2s ease-in-out infinite;
    display: block;
}

@keyframes shine {
    0% {
        background-position: 300% center;
    }
    50% {
        background-position: 0% center;
    }
    100% {
        background-position: -300% center;
    }
}

/* --- FOOTER --- */
footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 40px;
    border-top: 1px solid #eee;
    background-color: #fff;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 180px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing:  0.3px;;
    border-bottom: 2px solid #D32F2F;
    padding-bottom: 6px;
}

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

.footer-column ul li {
    margin-bottom:  8px;
}

.footer-column ul li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #D32F2F;
}

.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.footer-column ul li .footer-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    color: #fff;
    padding: 16px 24px;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    animation: slideUp 0.5s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.cookie-banner-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cookie-banner p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: #ddd;
    flex: 1 1 300px;
}
.cookie-banner p a {
    color: #065122;
    text-decoration: underline;
}
.cookie-banner p a:hover {
    color: #043a18;
}
.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.btn-cookie-accept {
    background: #065122;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-cookie-accept:hover {
    background: #043a18;
}
.btn-cookie-refuse {
    background: transparent;
    color: #ccc;
    border: 1px solid #666;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-cookie-refuse:hover {
    background: #444;
    color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
    header { height: 70px; padding: 0 15px; }
    .logo img { height: 50px; }
    .video-container iframe, .video-simple iframe { height: 250px; }
    .yt-placeholder { height: 250px; }

    footer {
        flex-direction: column;
        align-items: center;
        padding: 25px 20px;
        gap: 30px;
    }
    
    .footer-column {
        min-width: 100%;
        text-align: center;
    }
    
    .footer-column ul li a {
        justify-content: center;
    }
    
    .footer-link { font-size: 14px; }
}
