@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Montserrat:wght@400;600;700;900&display=swap');

:root {
    --gmm-viola: #6e1d9d;
    --gmm-pink: #d81b60;
    --gmm-grad: linear-gradient(135deg, var(--gmm-viola), var(--gmm-pink));
    --font-titoli: 'Montserrat', sans-serif;
    --font-testo: 'Lora', serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #222;
    font-family: var(--font-titoli);
}

/* ── HERO ────────────────────────────────────────────── */
.home-hero {
    position: relative;
    height: 60vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gmm-grad);
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.home-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.home-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.brand-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 18px;
}

.home-hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.home-hero .hero-sub {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.8;
    font-family: var(--font-testo);
    font-style: italic;
    margin: 0;
}

/* ── DISCLAIMER DEVICE ───────────────────────────────── */
.hero-disclaimer {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-titoli);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 30px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-disclaimer i { font-size: 0.85rem; }

.hero-disclaimer__rotate {
    display: inline-block;
    transform: rotate(-90deg);
}

/* ── SEZIONI TEMATICHE ───────────────────────────────── */
.stories-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 30px;
}

.section-header {
    margin-bottom: 36px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-header::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, rgba(110,29,157,0.3), transparent);
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    background: var(--gmm-grad);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 2px;
    white-space: nowrap;
}

/* ── GRIGLIA CARD ────────────────────────────────────── */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

/* ── SINGOLA CARD ────────────────────────────────────── */
.story-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(110,29,157,0.18);
}

.card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    overflow: hidden;
}

.story-card:hover .card-image {
    transform: scale(1.04);
}

.card-body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.25;
    background: var(--gmm-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-body p {
    font-family: var(--font-testo);
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 auto;
    line-height: 1.6;
    padding-bottom: 16px;
}

.card-author {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #999;
    text-transform: uppercase;
}

/* ── FOOTER ──────────────────────────────────────────── */
.home-footer {
    background: #111;
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 30px 20px;
    font-size: 0.8rem;
}

.home-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.home-footer a:hover { color: #fff; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 600px) {
    .stories-section { padding: 50px 16px; }
    .stories-grid { grid-template-columns: 1fr; }
    .card-image { height: 180px; }
}
