/* RESET */
* {
    box-sizing: border-box;
}

/* VARIABILI */
:root {
    --bg: #0f0f12;
    --panel: #18181d;
    --panel-2: #111116;
    --border: #24242c;
    --text: #ffffff;
    --muted: #b7b7c2;
    --muted-2: #8f8f9a;
    --accent: #e53935;
}

/* BASE */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

/* WRAPPER */
.wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 18px 48px;
}

/* TOPBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #18181d;
    border: 1px solid #24242c;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.back-link:hover {
    border-color: #34343f;
    transform: translateY(-1px);
    background: #1c1c22;
}

/* HERO */
.hero {
    margin: 10px 0 28px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    max-width: 820px;
    font-size: 16px;
}

/* CARD GENERICHE */
.section-grid {
    display: grid;
    gap: 16px;
}

.section-card {
    background: linear-gradient(180deg, #17171c 0%, #121217 100%);
    border: 1px solid #24242c;
    border-radius: 16px;
    padding: 18px;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.section-card:hover {
    border-color: #34343f;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.section-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.2;
}

.section-card p,
.section-card li {
    font-size: 14px;
    color: #b7b7c2;
    line-height: 1.7;
}

.section-card ul {
    margin: 0;
    padding-left: 18px;
}

.section-card strong {
    color: #ffffff;
}

.section-card a {
    color: #ffffff;
    text-decoration: underline;
}

.section-card.featured {
    border-color: #e53935;
    box-shadow: 0 0 0 1px #e53935 inset;
}

/* LICENZE */
.license-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.license-tier-card {
    background: linear-gradient(180deg, #18181d 0%, #111116 100%);
    border: 1px solid #24242c;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.2s ease;
}

.license-tier-card:hover {
    border-color: #e53935;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.license-tier-card h2 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.2;
}

.license-tier-card p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #9f9fac;
    line-height: 1.6;
}

.license-tier-card ul {
    padding-left: 16px;
    margin: 0;
}

.license-tier-card li {
    font-size: 13px;
    margin-bottom: 6px;
    color: #d0d0d8;
    line-height: 1.5;
}

.license-tier-card.featured {
    border-color: #e53935;
    box-shadow: 0 0 0 1px #e53935 inset;
}

.license-page-sections {
    display: grid;
    gap: 16px;
}

.license-text-block {
    background: #141418;
    border: 1px solid #24242c;
    border-radius: 14px;
    padding: 14px;
}

.license-text-block h3 {
    margin: 0 0 6px;
    font-size: 14px;
}

.license-text-block p {
    margin: 0;
    font-size: 13px;
    color: #b7b7c2;
    line-height: 1.6;
}

/* FOOTER */
.site-footer-new {
    background: #111116;
    border-top: 1px solid #24242c;
    margin-top: 40px;
    padding-bottom: 90px;
}

.site-footer-new-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.site-footer-new-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.site-footer-brand h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.site-footer-brand p {
    margin: 0;
    font-size: 13px;
    color: #8f8f9a;
    line-height: 1.5;
}

.site-footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer-links a {
    font-size: 13px;
    color: #b7b7c2;
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease;
}

.site-footer-links a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.site-footer-links-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-footer-new-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #6f6f7a;
    border-top: 1px solid #24242c;
    padding-top: 12px;
}

/* RESPONSIVE */
@media (min-width: 700px) {
    .license-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 800px) {
    .site-footer-new-top {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 1000px) {
    .license-page-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* Alias compatibilità pagine statiche */
.terms-sections,
.privacy-sections,
.how-sections,
.license-page-sections {
    display: grid;
    gap: 16px;
}

.terms-card,
.privacy-card,
.how-card,
.license-text-block {
    background: linear-gradient(180deg, #17171c 0%, #121217 100%);
    border: 1px solid #24242c;
    border-radius: 16px;
    padding: 18px;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.terms-card:hover,
.privacy-card:hover,
.how-card:hover,
.license-text-block:hover {
    border-color: #34343f;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.terms-card h2,
.privacy-card h2,
.how-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.2;
}

.license-text-block h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.2;
}

.terms-card p,
.terms-card li,
.privacy-card p,
.privacy-card li,
.how-card p,
.how-card li,
.license-text-block p,
.license-text-block li {
    font-size: 14px;
    color: #b7b7c2;
    line-height: 1.7;
}

.terms-card ul,
.privacy-card ul,
.how-card ul,
.license-text-block ul {
    margin: 0;
    padding-left: 18px;
}

.terms-card strong,
.privacy-card strong,
.how-card strong,
.license-text-block strong {
    color: #ffffff;
}

.terms-card a,
.privacy-card a,
.how-card a,
.license-text-block a {
    color: #ffffff;
    text-decoration: underline;
}

.terms-card.featured,
.privacy-card.featured,
.how-card.featured,
.license-text-block.featured {
    border-color: #e53935;
    box-shadow: 0 0 0 1px #e53935 inset;
}
/* SOCIAL FOOTER MIGLIORATO */
.site-footer-links-social a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    opacity: 0.85;
    transition: all 0.18s ease;
}

.site-footer-links-social a img {
    opacity: 0.7;
    transition: all 0.18s ease;
}

.site-footer-links-social a:hover {
    opacity: 1;
    transform: translateX(3px);
}

.site-footer-links-social a:hover img {
    opacity: 1;
}

/* LINK FOOTER GENERICI PIÙ PULITI */
.site-footer-links a {
    position: relative;
}

.site-footer-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.2s ease;
}

.site-footer-links a:hover::after {
    width: 100%;
}
/* FOOTER PREMIUM LOOK */
.site-footer-new {
    background: radial-gradient(circle at top, #1a1a22 0%, #0f0f12 70%);
    border-top: 1px solid #24242c;
    margin-top: 60px;
}

/* separazione più elegante */
.site-footer-new::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e53935, transparent);
    opacity: 0.4;
}

/* titolo brand */
.site-footer-brand h3 {
    font-size: 18px;
    letter-spacing: -0.02em;
}

/* sottotesto più fine */
.site-footer-brand p {
    color: #8f8f9a;
    max-width: 260px;
}

/* colonne più ariose */
.site-footer-links {
    gap: 8px;
}

/* bottom più elegante */
.site-footer-new-bottom {
    font-size: 11px;
    color: #5f5f6a;
}

/* piccolo glow sull’accent */
.site-footer-new a:hover {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(229,57,53,0.4);
}
.topbar-static {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #18181d;
    border: 1px solid #24242c;
    padding: 6px;
    border-radius: 999px;
}

.lang-switcher a {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    color: #b7b7c2;
}

.lang-switcher a.is-active {
    background: #e53935;
    color: #fff;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #18181d;
    border: 1px solid #24242c;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
}

@media (max-width: 700px) {
    .topbar-static {
        align-items: stretch;
    }

    .topbar-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .lang-switcher {
        width: fit-content;
    }

    .cart-link {
        width: 100%;
    }
}
.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
}