:root {
    --bg-color: #1b2228;
    --card-bg: #242c33;
    --text-primary: #f4f6f7;
    --text-secondary: #a7b1ba;
    --accent-blue: #3898ff;
    --border-color: #36424c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 32px 0;
}

.logo img {
    height: 116px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background-color: #ffffff;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Hero */
.hero {
    display: flex;
    gap: 48px;
    align-items: center;
    margin-bottom: 32px;
}

.hero-content {
    flex: 1;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

h1 {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.description {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-image {
    width: 420px;
    height: 520px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-materials {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--accent-blue);
    margin-bottom: 64px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-blue);
    color: #101417;
    padding: 16px 24px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

/* Sections */
.section {
    padding: 64px 0;
    border-top: 1px solid var(--border-color);
}

.section-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 12px;
}

h2 {
    font-size: 36px;
    line-height: 1.15;
    margin-bottom: 32px;
    letter-spacing: -1px;
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Grid & Cards */
.grid {
    display: grid;
    gap: 16px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 28px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Icone delle card */
.card-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 16px;
    display: block;
    flex-shrink: 0;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 16px;
}

.gallery-item {
    border-radius: 4px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-large {
    grid-row: span 2;
}

/* Tally Embed Wrapper con adattamento per il tema scuro */
.tally-embed-wrapper {
    background-color: var(--card-bg);
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    padding: 24px;
    margin-top: 16px;
    width: 100%;
}

.tally-embed-wrapper iframe {
    border: none;
    display: block;
    filter: invert(1) hue-rotate(180deg) brightness(1.2);
}

/* Footer */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
}

.footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

.footer-links {
    margin-top: 8px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
    }
    .hero-image {
        width: 100%;
        height: 350px;
    }
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .item-large {
        grid-row: span 1;
    }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
}