/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #0f172a;
    --text-secondary: #64748b;
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-light: #ecfdf5;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

/* Tipografia base per i contenuti (articoli, paragrafi, liste) */
article p { color: var(--text); line-height: 1.8; margin: 1rem 0; }
article ul, article ol {
    margin: 1rem 0 1rem 0.5rem;
    padding-left: 1.25rem;
    color: var(--text);
    line-height: 1.8;
}
article li { margin-bottom: 0.4rem; padding-left: 0.25rem; }
article li:last-child { margin-bottom: 0; }
article strong, article b { font-weight: 600; }
article ul.elenco-soft, article ol.elenco-soft, article p.elenco-soft { color: var(--text-secondary); }
article ul.elenco-norm, article ol.elenco-norm { color: var(--text-secondary); line-height: 2; padding-left: 20px; margin-bottom: 16px; }
article h3.sub-h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; margin-top: 28px; color: var(--text); }
article p.faq-answer { color: var(--text-secondary); line-height: 1.7; margin-top: 8px; }
article h2, article h3, article h4 { color: var(--text); margin-top: 2rem; }
article a { color: var(--accent); }
article code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(16,185,129,0.3);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* Hamburger Button (Nascosto su Desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}
.hamburger:hover { background: var(--bg); }
.hamburger svg {
    width: 24px;
    height: 24px;
    color: var(--text);
}

/* Advertising Slot */
.ad-slot {
    max-width: 728px;
    margin: 24px auto;
    text-align: center;
    min-height: 90px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* ==========================================
   HOMEPAGE SECTIONS (professional layout)
   ========================================== */
.home-section {
    padding: 3rem 0;
}
.home-section > .container {
    padding-top: 0;
    padding-bottom: 0;
}
.home-section--alt {
    background: #f1f5f9;
}
/* Kept for potential future use — currently unused after removing trust bg */

/* Section headings with label + title */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
.section-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 760px;
    margin-bottom: 1.25rem;
}

/* Trust section text */
.trust-text {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
}
.trust-text p:not(.section-label):not(.section-title) {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.trust-text p:last-child:not(.section-label):not(.section-title) {
    margin-bottom: 0;
}

/* Contatti page */
.contact-page {
    max-width: 760px;
    margin: 0 auto;
}
.contact-page h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 1.5rem;
}
.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-method-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contact-method h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.contact-method p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}
.contact-method a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.contact-method a:hover {
    text-decoration: underline;
}

/* About teaser */
.about-teaser {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}
.about-teaser-inner {
    max-width: 760px;
}
.about-teaser p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.about-teaser p:last-child {
    margin-bottom: 0;
}

/* Section link (e.g. "Vedi tutte le guide") */
.section-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}
.section-link:hover {
    text-decoration: underline;
}

/* Section header row (label + link side by side) */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.page-hero { margin-bottom: 40px; text-align: center; }
.page-hero h1 { 
    font-size: 2.5rem; 
    font-weight: 800; 
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 0;
}

.tool-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    border-radius: var(--radius) 0 0 var(--radius);
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: none;
}

.tool-card:hover::before { opacity: 1; }

.tool-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.tool-card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Guide card variant (more compact) */
.tool-card--guide {
    padding: 24px;
}
.tool-card--guide .tool-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}
.tool-card--guide .tool-card-icon svg {
    width: 22px;
    height: 22px;
}

.tool-card h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.tool-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; }

.tool-card-arrow {
    margin-top: auto;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tool Page Layout (Sidebar + Main) */
.breadcrumb { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; }
.breadcrumb a { color: var(--accent); text-decoration: none; font-weight: 500; }

.tool-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.tool-main {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.tool-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 90px; }

/* Forms */
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: #f8fafc;
    color: var(--text);
}

.form-group input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.1);
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    -webkit-appearance: auto;
    appearance: auto;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    width: 100%;
    padding: 18px 36px;
    font-size: 1.1rem;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(16,185,129,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16,185,129,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover::after {
    left: 100%;
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}

/* Results */
.result-box {
    display: none;
    margin-top: 32px;
    padding: 28px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-box.show { display: block; }
.result-box.error { background: #fef2f2; border-color: #fecaca; }

.result-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    word-break: break-all;
    letter-spacing: -0.02em;
}

.result-value.small { font-size: 1.1rem; font-weight: 700; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.result-divider { border: none; border-top: 1px solid #bbf7d0; margin: 24px 0; }

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 12px 20px;
    background: white;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--accent);
    transition: all 0.2s;
    min-height: 48px;
}
.copy-btn:hover { background: var(--accent-light); transform: translateY(-1px); }

/* Info & Sidebar */
.info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px;
    font-size: 0.9rem;
    color: #1e40af;
    line-height: 1.6;
}

.sidebar-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.sidebar-card ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.sidebar-card a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}
.sidebar-card a:hover { background: var(--bg); color: var(--accent); }

/* Footer */
.site-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.site-footer a { color: var(--accent); text-decoration: none; font-weight: 500; }

/* --- Hero Layout Update --- */
.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
    padding: 3rem 0;
}

.page-hero-content {
    flex: 1;
    max-width: 600px;
}

.page-hero-image {
    flex: 1;
    max-width: 400px;
    display: flex;
    justify-content: center;
}

.page-hero-image img {
    width: 100%;
    height: auto;
    max-width: 350px;
    opacity: 0.9;
    filter: drop-shadow(0 10px 20px rgba(16, 185, 129, 0.15));
}

/* --- AdSense Containers --- */
.ad-container {
    max-width: 728px;
    margin: 1.5rem auto;
    text-align: center;
    min-height: 90px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    border-radius: 8px;
    border: 1px dashed #e2e8f0;
}

.ad-container-sidebar {
    max-width: 100%;
    min-height: 280px;
    margin-top: 1.5rem;
}

/* --- Anchor Ad Mobile (basso fisso) --- */
.ad-anchor {
    display: none; /* visibile solo su mobile tramite media query */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9000;
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    min-height: 50px;
    text-align: center;
}

.ad-anchor-close {
    position: absolute;
    top: -28px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    color: var(--text-secondary);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    padding: 0;
}

@media (max-width: 768px) {
    .ad-anchor { display: block; }
    body.ad-anchor-visible { padding-bottom: 60px; }
}

@media (max-width: 600px) {
    body.ad-anchor-visible { padding-bottom: 50px; }
}

/* ==========================================
   TABELLE (accessibilità + mobile)
   ========================================== */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
th, td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
}
thead th {
    border-bottom: 2px solid var(--accent);
}
/* Hint visivo scroll su mobile */
table::-webkit-scrollbar {
    height: 6px;
}
table::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ==========================================
   MOBILE RESPONSIVE (Aggiornato per UX)
   ========================================== */
@media (max-width: 900px) {
    .tool-layout {
        grid-template-columns: 1fr;
        overflow: hidden;
    }
    .tool-sidebar { position: static; order: 2; }
    .tool-main {
        padding: 24px;
        overflow: hidden;
    }
    .ad-container-sidebar {
        min-height: 150px;
    }
}

@media (max-width: 768px) {
    /* Hamburger Menu Logic */
    .hamburger { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 16px 24px;
        font-size: 1.05rem;
        border-bottom: 1px solid #f1f5f9;
    }
    .nav-links a:hover { background: var(--bg); }

    /* Hero Mobile */
    .page-hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 2rem 0;
    }
    .page-hero-image {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    .page-hero-image img { max-width: 220px; }

    /* Tool layout mobile */
    .tool-layout {
        gap: 24px;
    }
    .tool-main {
        padding: 20px;
    }

    /* Ad container compatto su tablet */
    .ad-container {
        margin: 16px auto;
        min-height: 60px;
    }
    .ad-container-sidebar {
        min-height: 120px;
    }
}

@media (max-width: 600px) {
    /* Font Base Leggermente più grande */
    body { font-size: 17px; }
    
    .header-inner { height: 60px; padding: 0 16px; }
    .container { padding: 20px 12px; }
    
    /* Titoli */
    .page-hero h1 { font-size: 1.6rem; }
    .page-hero p { font-size: 1rem; }
    
    /* Form e Tasti Meglio Distanziati */
    .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 16px; }
    .form-group { margin-bottom: 18px; }
    
    .form-group input[type="text"],
    .form-group input[type="number"],
    .form-group select {
        padding: 16px;
        font-size: 1.1rem;
    }
    .form-group input[type="radio"] {
        -webkit-appearance: auto;
        appearance: auto;
        width: 24px;
        height: 24px;
        cursor: pointer;
        flex-shrink: 0;
    }

    /* BOTTONE PRINCIPALE ENORME E LEGGIBILE */
    .btn-primary {
        display: block;
        width: 100%;
        padding: 20px 24px;
        font-size: 1.15rem;
        border-radius: 14px;
        margin-top: 8px;
    }

    /* Risultati */
    .result-grid { grid-template-columns: 1fr; }
    .tools-grid { grid-template-columns: 1fr; }

    /* Homepage sections: tighter on small mobile */
    .home-section { padding: 2rem 0; }
    .section-title { font-size: 1.25rem; }
    
    .tool-card {
        padding: 24px;
    }

    /* Ad container molto compatto su mobile piccolo */
    .ad-container {
        margin: 12px auto;
        min-height: 50px;
        border-radius: 8px;
    }
    .ad-container-sidebar {
        min-height: 100px;
        margin-top: 12px;
    }

    /* Contenuto non deborda */
    .tool-main {
        padding: 16px;
        border-radius: 12px;
    }

    /* Tabelle: font leggibile su mobile senza zoom */
    table {
        font-size: 0.9rem;
    }
    th, td {
        padding: 6px 8px;
    }

    /* Box codice fiscale evidenziato: evita overflow su schermi piccoli */
    p[style*="letter-spacing: 2px"] {
        font-size: 1.1rem !important;
        letter-spacing: 1px !important;
        word-break: break-all;
    }

    /* Cookie banner mobile: touch target 48px e font leggibile */
    .cookie-banner {
        padding: 16px;
    }
    .cookie-text {
        font-size: 0.9rem;
    }
    .btn-cookie {
        padding: 12px 24px;
        font-size: 0.95rem;
        min-height: 48px;
    }
}
/* ==========================================
   BANNER COOKIE GDPR ITALIANO
   ========================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 25px rgba(0,0,0,0.08);
    padding: 24px;
    z-index: 9999;
    display: none; /* Nascosto di default, mostrato dal JS */
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.cookie-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.cookie-text a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-cookie {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-reject {
    background: #f1f5f9;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-reject:hover { background: #e2e8f0; }

.btn-accept {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 14px rgba(16,185,129,0.3);
}
.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16,185,129,0.4);
}

@media (min-width: 768px) {
    .cookie-banner-inner {
        flex-direction: row;
        text-align: left;
    }
    .cookie-buttons { flex-shrink: 0; }
}

/* ============================================
   SVG Inline Icons — Subpages (strumenti, guide)
   ============================================ */
.icon-inline {
    display: inline-block;
    vertical-align: -0.125em;
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.icon-inline--sm {
    width: 0.9em;
    height: 0.9em;
}

.icon-inline--lg {
    width: 1.25em;
    height: 1.25em;
}

.related-tool-icon {
    display: inline-block;
    vertical-align: -0.125em;
    width: 1.1em;
    height: 1.1em;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    margin-right: 4px;
}

.sidebar-icon {
    display: inline-block;
    vertical-align: -0.125em;
    width: 1em;
    height: 1em;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    margin-right: 2px;
}

.affiliate-icon {
    display: inline-block;
    vertical-align: -0.2em;
    width: 1.2em;
    height: 1.2em;
    stroke: #14532d;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    margin-right: 6px;
}

.result-valid {
    color: #059669;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-invalid {
    color: #dc2626;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-valid svg,
.result-invalid svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
}

.result-valid svg { stroke: #059669; }
.result-invalid svg { stroke: #dc2626; }

.warning-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.5;
}

.warning-note svg {
    width: 20px;
    height: 20px;
    stroke: #d97706;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    margin-top: 1px;
}

.related-heading-icon {
    display: inline-block;
    vertical-align: -0.15em;
    width: 1.1em;
    height: 1.1em;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-right: 6px;
}