:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(0, 0, 0, 0.55);
    --bg-card-solid: #0d0d14;
    --accent-cyan: #00f0ff;
    --accent-magenta: #ff00aa;
    --accent-yellow: #ffcc00;
    --accent-green: #00ff88;
    --accent-red: #ff4466;
    --accent-orange: #ff8800;
    --text-primary: #ffffff;
    --text-secondary: #c8c8d8;
    --glow-cyan: 0 0 30px rgba(0, 240, 255, 0.5);
    --glow-magenta: 0 0 30px rgba(255, 0, 170, 0.5);
    /* Card type borders */
    --border-danger: #ff4466;
    --border-warning: #ffcc00;
    --border-tip: #00ff88;
    --border-info: #00f0ff;
}

/* Material Icons helper */
.material-icons-round { font-size: inherit; vertical-align: middle; line-height: 1; }
.mi-sm { font-size: 1.1rem; }
.mi-md { font-size: 1.4rem; }
.mi-lg { font-size: 1.8rem; }
.mi-xl { font-size: 2.2rem; }
.mi-xxl { font-size: 2.8rem; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 15s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-cyan);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-magenta);
    top: 60%;
    right: -5%;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--accent-yellow);
    bottom: 20%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(40px, 10px) scale(1.05); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .glitch {
    position: relative;
    display: inline-block;
}

.hero h1 .glitch::before,
.hero h1 .glitch::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}

.hero h1 .gdark::before,
.hero h1 .gdark::after {
    content: 'DARK';
}

.hero h1 .gsocial::before,
.hero h1 .gsocial::after {
    content: 'SOCIAL';
}

.hero h1 .gai::before,
.hero h1 .gai::after {
    content: 'IA';
}

.hero h1 .gdeep::before,
.hero h1 .gdeep::after {
    content: 'DEEPFAKE';
}

.hero h1 .glitch::before {
    color: var(--accent-cyan);
    animation: glitch-1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.hero h1 .glitch::after {
    color: var(--accent-magenta);
    animation: glitch-2 2s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(3px, 3px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(-3px, 3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(-3px, -3px); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    color: var(--bg-dark);
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.7);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

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

/* Stats Section */
.stats {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    /* Forma non rettangolare - angoli tagliati */
    clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Time Section */
.time-section {
    background: linear-gradient(180deg, transparent, rgba(255, 204, 0, 0.02), transparent);
}

.time-message {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--border-warning);
    position: relative;
    /* Forma non rettangolare */
    clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 25px 100%, 0 calc(100% - 25px));
}

.time-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.time-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-yellow);
}

.time-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.time-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--border-info);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.3s;
    /* Forma non rettangolare */
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.time-card:hover {
    transform: translateY(-5px);
    box-shadow: -5px 0 25px rgba(0, 240, 255, 0.15);
}

.time-card.positive {
    border-left-color: var(--border-tip);
}

.time-card.positive:hover {
    box-shadow: -5px 0 25px rgba(0, 255, 136, 0.15);
}

.time-card.negative {
    border-left-color: var(--border-danger);
}

.time-card.negative:hover {
    box-shadow: -5px 0 25px rgba(255, 68, 102, 0.15);
}

.time-card-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.time-card-content h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--accent-yellow);
}

.time-card.positive .time-card-content h4 {
    color: var(--accent-green);
}

.time-card.negative .time-card-content h4 {
    color: var(--accent-red);
}

.time-comparison {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.time-alternative {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.4rem 0;
}

.time-or {
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-style: italic;
}

.time-benefit {
    color: var(--accent-green);
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

.time-loss {
    color: var(--accent-red);
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

.time-calculator {
    max-width: 900px;
    margin: 0 auto 3rem;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    text-align: center;
    /* Forma non rettangolare */
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.time-calculator h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.time-calculator > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.calc-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
}

.calc-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.calc-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}

.calc-result {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.calc-result strong {
    color: var(--accent-red);
}

.time-warning {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.time-warning strong {
    color: var(--accent-green);
}

.time-quote {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.time-quote blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.quote-reflection {
    color: var(--accent-cyan);
    font-size: 1rem;
}

/* Section Title */
.section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Dark Pattern Cards */
.patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.pattern-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--border-danger);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Forma non rettangolare */
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.pattern-card:hover {
    transform: translateY(-8px);
    box-shadow: -5px 0 30px rgba(255, 68, 102, 0.2);
}

.pattern-card.warning {
    border-left-color: var(--border-warning);
}

.pattern-card.warning:hover {
    box-shadow: -5px 0 30px rgba(255, 204, 0, 0.2);
}

.pattern-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    position: relative;
    color: var(--bg-dark);
}

.pattern-icon.loot { background: linear-gradient(135deg, #ff6b6b, #feca57); }
.pattern-icon.pay { background: linear-gradient(135deg, #ff9ff3, #feca57); }
.pattern-icon.fomo { background: linear-gradient(135deg, #54a0ff, #5f27cd); }
.pattern-icon.currency { background: linear-gradient(135deg, #1dd1a1, #10ac84); }
.pattern-icon.social { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }

.pattern-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.pattern-card p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.pattern-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.example-tag {
    padding: 0.35rem 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.example-tag:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-cyan);
}

/* Interactive Demo Section */
.demo-section {
    background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.03), transparent);
    padding: 6rem 2rem;
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.loot-box-demo {
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.loot-box {
    width: 150px;
    height: 150px;
    margin: 2rem auto;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.loot-box:hover {
    transform: scale(1.05);
}

.loot-box-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2a2a3a, #1a1a2a);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loot-box-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(0, 240, 255, 0.3), transparent 30%);
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.loot-box.opening .loot-box-inner {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0) rotate(0); }
    20% { transform: translateX(-10px) rotate(-5deg); }
    40% { transform: translateX(10px) rotate(5deg); }
    60% { transform: translateX(-10px) rotate(-5deg); }
    80% { transform: translateX(10px) rotate(5deg); }
}

.loot-result {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
}

.loot-result.common { color: #888; }
.loot-result.rare { color: var(--accent-cyan); text-shadow: var(--glow-cyan); }
.loot-result.legendary { color: var(--accent-yellow); text-shadow: 0 0 30px rgba(255, 238, 0, 0.5); }

.loot-result-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.probability-bar {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.probability-bar h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.prob-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.prob-label {
    width: 100px;
    text-align: left;
    font-size: 0.85rem;
}

.prob-bar-container {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.prob-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-out;
}

/* Probabilita reali delle casse CS2 (dati ufficiali Valve): 79,92% / 19,18% / 0,90% */
.prob-bar-fill.common { background: #888; width: 79.92%; }
.prob-bar-fill.rare { background: var(--accent-cyan); width: 19.18%; }
.prob-bar-fill.legendary { background: var(--accent-yellow); width: 0.9%; min-width: 5px; }

.prob-percent {
    width: 50px;
    text-align: right;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
}

.demo-warning {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 15px;
    color: var(--accent-red);
    font-size: 0.95rem;
}

/* Demo Grid and Boxes */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-box {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
}

.demo-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.demo-box > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Currency Calculator */
.currency-calc {
    text-align: left;
}

.currency-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.currency-input {
    flex: 1;
}

.currency-input label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.currency-input select,
.currency-input input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.currency-input select:focus,
.currency-input input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.currency-result {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 170, 0.1));
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.currency-result-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-cyan);
}

.currency-result-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.currency-comparison {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Spending Tracker */
.spending-tracker {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.spending-tracker h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.spending-item-amount {
    font-weight: 700;
    color: var(--accent-red);
}

/* Laws Section */
.laws-section {
    background: linear-gradient(180deg, transparent, rgba(0, 255, 136, 0.02), transparent);
}

.laws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.law-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--border-tip);
    padding: 1.5rem;
    transition: all 0.3s;
    /* Forma non rettangolare */
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.law-card:hover {
    transform: translateY(-5px);
    box-shadow: -5px 0 25px rgba(0, 255, 136, 0.15);
}

.law-card.pending {
    border-left-color: var(--border-info);
}

.law-card.pending:hover {
    box-shadow: -5px 0 25px rgba(0, 240, 255, 0.15);
}

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

.law-flag {
    font-size: 2rem;
}

.law-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.law-subtitle {
    font-size: 0.8rem;
    color: var(--accent-green);
}

.law-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.law-content ul {
    list-style: none;
    padding: 0;
    margin-top: 0.8rem;
}

.law-content li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.law-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
}

.law-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
}

.law-status.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-green);
}

.law-status.pending {
    background: rgba(255, 238, 0, 0.1);
    color: var(--accent-yellow);
}

/* Timeline Section */
.timeline-section {
    padding: 6rem 2rem;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-magenta));
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
}

.timeline-year {
    font-family: 'Space Mono', monospace;
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tips Section */
.tips-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(0, 255, 136, 0.03), transparent);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tip-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--border-tip);
    padding: 1.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    transition: all 0.3s;
    /* Forma non rettangolare */
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.tip-card:hover {
    transform: translateX(8px);
    box-shadow: -5px 0 20px rgba(0, 255, 136, 0.15);
}

.tip-number {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--bg-dark);
}

.tip-content h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.tip-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Tips Tabs */
.tips-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tips-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tips-tab {
    padding: 0.8rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tips-tab:hover, .tips-tab.active {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.1);
}

.tips-content {
    display: none;
}

.tips-content.active {
    display: block;
}

/* Warning Section */
.warning-section {
    background: linear-gradient(180deg, transparent, rgba(255, 68, 102, 0.02), transparent);
}

.warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.warning-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--border-danger);
    padding: 1.3rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.3s;
    /* Forma non rettangolare */
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.warning-card:hover {
    transform: translateY(-5px);
    box-shadow: -5px 0 20px rgba(255, 68, 102, 0.15);
}

.warning-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(255, 68, 102, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-red);
}

.warning-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--accent-red);
}

.warning-content p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Quiz Section */
.quiz-section {
    padding: 5rem 2rem;
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
}

.quiz-progress {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.quiz-progress-dot {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.quiz-progress-dot.active {
    background: var(--accent-cyan);
}

.quiz-progress-dot.completed {
    background: var(--accent-green);
}

.quiz-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quiz-option {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.quiz-option:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.quiz-option.selected {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.1);
}

.quiz-option.correct {
    border-color: var(--accent-green);
    background: rgba(0, 255, 136, 0.1);
}

.quiz-option.wrong {
    border-color: var(--accent-red);
    background: rgba(255, 51, 102, 0.1);
}

.quiz-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    display: none;
}

.quiz-feedback.show {
    display: block;
}

.quiz-feedback.correct {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.quiz-feedback.wrong {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.quiz-result {
    text-align: center;
    display: none;
}

.quiz-result.show {
    display: block;
}

.quiz-score {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Resources Section */
.resources-section {
    padding: 5rem 2rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.resource-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--border-info);
    padding: 1.5rem;
    transition: all 0.3s;
    /* Forma non rettangolare */
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: -5px 0 25px rgba(0, 240, 255, 0.15);
}

.resource-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--bg-dark);
}

.resource-card h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.resource-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.resource-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-link:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    text-align: center;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 0, 170, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 240, 255, 0.1), transparent, rgba(255, 0, 170, 0.1), transparent);
    animation: rotate 10s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== GRIGLIE A COLONNE FISSE (DESKTOP) ==================== */
/* Si applicano aggiungendo .cols-3 o .cols-2 al contenitore della griglia nell'HTML.
   Sotto gli 861px le griglie tornano al comportamento fluido originale, quindi
   il mobile non viene toccato. .center-orphans centra l'ultima riga incompleta
   (es. 5 card diventano 3 + 2 centrate). */

.law-card.compact {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.1rem 1.4rem;
}

.law-card.compact .law-card-header {
    margin-bottom: 0.6rem;
    gap: 0.7rem;
}

.law-card.compact .law-flag .material-icons-round {
    font-size: 1.5rem;
}

.law-card.compact .law-title {
    font-size: 0.98rem;
}

.law-card.compact .law-subtitle {
    font-size: 0.75rem;
}

.law-card.compact .law-content {
    font-size: 0.85rem;
    line-height: 1.6;
}

.law-card.compact .law-status {
    font-size: 0.7rem;
    margin-top: 0.7rem;
}

/* Pannello strumenti largo come le altre sezioni, con etichette piu contenute */
.time-calculator.wide {
    max-width: 1200px;
}

.time-calculator.wide .calc-value {
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.time-calculator.wide .calc-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.time-calculator.wide .calc-result {
    font-size: 0.85rem;
}

.time-calculator.wide .time-warning {
    font-size: 0.85rem;
    line-height: 1.6;
}

@media (min-width: 861px) {
    .stats-grid.cols-3,
    .time-grid.cols-3,
    .patterns-grid.cols-3,
    .laws-grid.cols-3,
    .tips-grid.cols-3,
    .warning-grid.cols-3,
    .resources-grid.cols-3,
    .calc-grid.cols-3,
    .time-calculator.wide .calc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stats-grid.cols-2,
    .time-grid.cols-2,
    .patterns-grid.cols-2,
    .laws-grid.cols-2,
    .tips-grid.cols-2,
    .warning-grid.cols-2,
    .resources-grid.cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Ultima riga incompleta centrata */
    .cols-3.center-orphans {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--grid-gap, 1.5rem);
    }

    .cols-3.center-orphans > * {
        flex: 0 1 calc((100% - 2 * var(--grid-gap, 1.5rem)) / 3);
        max-width: calc((100% - 2 * var(--grid-gap, 1.5rem)) / 3);
    }

    .warning-grid.center-orphans,
    .resources-grid.center-orphans {
        --grid-gap: 1.2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .patterns-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-dot {
        left: 20px;
    }

    .cta-box {
        padding: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    /* Reset colori per stampa */
    :root {
        --bg-dark: #ffffff;
        --bg-card: #f5f5f5;
        --text-primary: #000000;
        --text-secondary: #333333;
        --accent-cyan: #0066cc;
        --accent-magenta: #cc0066;
        --accent-yellow: #cc9900;
        --accent-green: #009933;
        --accent-red: #cc0000;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 11pt;
        line-height: 1.5;
    }

    /* Nascondi elementi non stampabili */
    .bg-grid,
    .floating-shapes,
    nav,
    .hero-cta,
    .demo-section,
    .loot-box-demo,
    .cta-section,
    .btn,
    .badge-dot,
    .pattern-toggle,
    .quiz-section,
    .quiz-container {
        display: none !important;
    }

    /* Reset animazioni e effetti */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    .glitch::before,
    .glitch::after {
        display: none !important;
    }

    /* Titoli */
    .hero {
        min-height: auto;
        padding: 1cm 0;
        page-break-after: avoid;
    }

    .hero h1 {
        font-size: 28pt !important;
        color: black !important;
        -webkit-text-fill-color: black !important;
        background: none !important;
    }

    .hero h1 .gradient-text {
        -webkit-text-fill-color: black !important;
        background: none !important;
        color: black !important;
    }

    .hero-subtitle {
        color: #333 !important;
        font-size: 12pt;
    }

    .hero-badge {
        border-color: #333 !important;
        color: #333 !important;
        background: #f0f0f0 !important;
    }

    /* Sezioni */
    .section {
        padding: 0.5cm 0;
        page-break-inside: avoid;
    }

    .section-header {
        margin-bottom: 0.5cm;
    }

    .section-tag {
        color: #666 !important;
        font-size: 9pt;
    }

    .section-title {
        font-size: 18pt !important;
        color: black !important;
        page-break-after: avoid;
    }

    .section-subtitle {
        color: #333 !important;
        font-size: 10pt;
    }

    /* Statistiche */
    .stats {
        padding: 0.3cm 0;
    }

    .stats-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 0.3cm;
    }

    .stat-card {
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
        padding: 0.3cm;
        flex: 1 1 45%;
        page-break-inside: avoid;
    }

    .stat-card::before {
        display: none;
    }

    .stat-number {
        font-size: 20pt !important;
        color: #0066cc !important;
        -webkit-text-fill-color: #0066cc !important;
        background: none !important;
    }

    .stat-label {
        color: #333 !important;
        font-size: 9pt;
    }

    /* Time Section */
    .time-section {
        background: none !important;
    }

    .time-message {
        background: #fffde7 !important;
        border: 1px solid #ffc107 !important;
    }

    .time-message h3 {
        color: #cc9900 !important;
    }

    .time-message p {
        color: #333 !important;
    }

    .time-grid {
        display: block;
    }

    .time-card {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        margin-bottom: 0.3cm;
        page-break-inside: avoid;
    }

    .time-card.negative {
        background: #fff5f5 !important;
        border-color: #ffcccc !important;
    }

    .time-card-content h4 {
        color: #cc9900 !important;
    }

    .time-card.negative .time-card-content h4 {
        color: #cc0000 !important;
    }

    .time-alternative,
    .time-or {
        color: #333 !important;
    }

    .time-benefit {
        color: #009933 !important;
    }

    .time-loss {
        color: #cc0000 !important;
    }

    .time-calculator {
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
    }

    .calc-item {
        background: #fff !important;
        border: 1px solid #ddd;
    }

    .calc-value {
        color: #cc9900 !important;
    }

    .time-warning {
        background: #e8f5e9 !important;
        border-color: #4caf50 !important;
        color: #333 !important;
    }

    .time-warning strong {
        color: #009933 !important;
    }

    .time-quote blockquote {
        color: #333 !important;
    }

    .quote-reflection {
        color: #0066cc !important;
    }

    /* Pattern Cards */
    .patterns-grid {
        display: block;
    }

    .pattern-card {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        margin-bottom: 0.3cm;
        padding: 0.4cm;
        page-break-inside: avoid;
    }

    .pattern-card::after {
        display: none;
    }

    .pattern-card h3 {
        color: black !important;
        font-size: 12pt;
    }

    .pattern-card p {
        color: #333 !important;
        font-size: 10pt;
    }

    .pattern-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .pattern-examples {
        margin-top: 0.2cm;
    }

    .example-tag {
        background: #eee !important;
        color: #333 !important;
        border: 1px solid #ccc;
        font-size: 8pt;
        padding: 2px 6px;
    }

    /* Timeline */
    .timeline::before {
        background: #333 !important;
    }

    .timeline-dot {
        background: #333 !important;
        box-shadow: none !important;
    }

    .timeline-content {
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
    }

    .timeline-year {
        color: #0066cc !important;
    }

    .timeline-title {
        color: black !important;
        font-size: 11pt;
    }

    .timeline-desc {
        color: #333 !important;
        font-size: 9pt;
    }

    /* Tips */
    .tip-card {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
        margin-bottom: 0.2cm;
    }

    .tip-number {
        background: #333 !important;
        color: white !important;
    }

    .tip-content h4 {
        color: black !important;
        font-size: 11pt;
    }

    .tip-content p {
        color: #333 !important;
        font-size: 9pt;
    }

    /* Demo warning */
    .demo-warning {
        background: #fff3cd !important;
        border-color: #ffc107 !important;
        color: #856404 !important;
    }

    /* Footer */
    footer {
        margin-top: 0.5cm;
        padding-top: 0.3cm;
        border-top: 1px solid #ccc;
    }

    .footer-links a {
        color: #333 !important;
    }

    .footer-copy {
        color: #666 !important;
        font-size: 8pt;
    }

    /* Laws Section */
    .laws-section {
        background: none !important;
    }

    .laws-grid {
        display: block;
    }

    .law-card {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        margin-bottom: 0.3cm;
        padding: 0.4cm;
        page-break-inside: avoid;
    }

    .law-title {
        color: black !important;
        font-size: 11pt;
    }

    .law-subtitle {
        color: #009933 !important;
        font-size: 9pt;
    }

    .law-content {
        color: #333 !important;
        font-size: 9pt;
    }

    .law-content li::before {
        color: #009933 !important;
    }

    .law-status {
        background: #e8f5e9 !important;
        color: #009933 !important;
        border: 1px solid #009933;
    }

    .law-status.pending {
        background: #fff8e1 !important;
        color: #cc9900 !important;
        border: 1px solid #cc9900;
    }

    /* Warning Section */
    .warning-section {
        background: none !important;
    }

    .warning-grid {
        display: block;
    }

    .warning-card {
        background: #fff5f5 !important;
        border: 1px solid #ffcccc !important;
        margin-bottom: 0.2cm;
        padding: 0.3cm;
        page-break-inside: avoid;
    }

    .warning-icon {
        background: #ffeeee !important;
    }

    .warning-content h4 {
        color: #cc0000 !important;
        font-size: 10pt;
    }

    .warning-content p {
        color: #333 !important;
        font-size: 9pt;
    }

    /* Resources Section */
    .resources-section {
        background: none !important;
    }

    .resources-grid {
        display: block;
    }

    .resource-card {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        margin-bottom: 0.2cm;
        padding: 0.3cm;
        page-break-inside: avoid;
    }

    .resource-icon {
        background: #e0e0e0 !important;
    }

    .resource-card h4 {
        color: black !important;
        font-size: 10pt;
    }

    .resource-card p {
        color: #333 !important;
        font-size: 9pt;
    }

    .resource-link {
        color: #0066cc !important;
    }

    /* Tips tabs - hide tabs, show all content */
    .tips-tabs {
        display: none !important;
    }

    .tips-content {
        display: block !important;
        margin-bottom: 0.5cm;
    }

    .tips-content::before {
        content: attr(data-title);
        display: block;
        font-size: 12pt;
        font-weight: bold;
        margin-bottom: 0.3cm;
        color: black;
    }

    /* Currency calculator - hide interactive parts */
    .currency-calc,
    .currency-input-group,
    .demo-grid,
    .demo-box {
        display: none !important;
    }

    /* Links */
    a {
        color: #0066cc !important;
        text-decoration: underline;
    }

    /* Page breaks */
    h2, h3 {
        page-break-after: avoid;
    }

    .pattern-card,
    .stat-card,
    .tip-card,
    .timeline-item,
    .law-card,
    .warning-card,
    .resource-card {
        page-break-inside: avoid;
    }

    /* Aggiungi URL dopo i link esterni */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #666;
    }

    a[href^="#"]::after {
        content: "";
    }
}

/* Additional styles for clean HTML */
.hero-credits {
    font-size: 60%;
    opacity: 0.8;
}

.demo-warning {
    max-width: 800px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: var(--bg-card);
    border-left: 5px solid var(--border-danger);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    text-align: center;
}

.demo-warning p {
    color: var(--accent-red);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-author {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 100px;
    margin-top: 0.5rem;
}

.footer-author a {
    color: #fafafa;
    text-decoration: none;
}

.footer-author a:hover {
    color: var(--accent-cyan);
}
