:root {
    /* Color Palette - Premium & Modern */
    --primary: #1e272e;
    /* Deep midnight blue/black */
    --accent: #ff4757;
    /* Soft vibrant red */
    --bg-main: #fdfcfb;
    --bg-secondary: #f4f7f6;
    /* Clean soft gray-blue */
    --text-muted: #747d8c;
    --border: #eaeff2;
    --white: #ffffff;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #2f3542 0%, #1e272e 100%);
    --grad-accent: linear-gradient(135deg, #ff6b81 0%, #ff4757 100%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Utilities */
    --space-xs: 0.6rem;
    --space-sm: 1.2rem;
    --space-md: 2.5rem;
    --space-lg: 5rem;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 39, 46, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 39, 46, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border);
    color: var(--primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

/* Base Utility Classes */
.mt-1 {
    margin-top: var(--space-xs);
}

.mt-2 {
    margin-top: var(--space-sm);
}

.mt-4 {
    margin-top: var(--space-md);
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    :root {
        --space-sm: 1.5rem;
        /* Increased padding for mobile edge */
        --space-md: 2rem;
        --space-lg: 3rem;
    }
}

/* ── Header & Navigation ── */
.editorial-header-wrapper {
    position: relative;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.header-right {
    flex: 0;
    gap: 12px;
    justify-content: flex-end;
}

.header-center {
    display: flex;
    justify-content: center;
    flex: 2;
}

.editorial-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    min-width: 0;
}

.editorial-logo {
    width: 70px;
    height: 70px;
    border-radius: 50% !important;
    border: 2px solid var(--primary);
    padding: 2px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.editorial-title-wrap {
    text-align: left;
    min-width: 0;
}

.editorial-title-wrap h1,
.editorial-title-wrap .editorial-site-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1.1;
    margin: 0;
    color: var(--primary);
    white-space: nowrap;
}

.editorial-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 4px;
}

/* Hamburger */
.hamburger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger-bars {
    width: 24px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-bars span {
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-search-hint {
    font-size: 1.1rem;
    color: var(--primary);
    line-height: 1;
}

.hamburger-menu:hover {
    opacity: 0.7;
}

/* Sidebar Mobile */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    z-index: 1050;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.1);
    padding: 80px 30px;
    overflow-y: auto;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-link {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.sidebar-link--cat {
    font-size: 1rem;
    font-weight: 600;
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
}

.sidebar-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin: 0;
}

/* Sidebar Search */
.sidebar-search {
    margin-bottom: 20px;
    position: relative;
}

.sidebar-search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    background: #fdfcfb;
}

.sidebar-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

/* User Profile Icon */
.header-user-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    position: relative;
    border: 1.5px solid var(--border);
    transition: all 0.3s;
}

.header-user-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.user-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #2ecc71;
    border: 2px solid #fff;
    border-radius: 50%;
}

/* Search Bar in Header */
.header-search {
    position: relative;
    width: 100%;
    max-width: 350px;
}

.header-search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
    background: #fff;
}

.header-search-input:focus {
    border-color: var(--primary);
}

.header-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

@media (max-width: 991px) {
    .header-container {
        padding: 15px 20px;
        gap: 15px;
    }

    .header-search {
        display: none;
    }

    .header-center h1 {
        font-size: 1.4rem;
    }

    .editorial-logo {
        width: 55px;
        height: 55px;
    }

    .editorial-tagline {
        display: none;
    }

    .header-left {
        flex: 1;
    }

    .header-right {
        flex: 0;
    }
}

/* AdSense Placeholders */
.ad-container {
    margin: var(--space-md) auto;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.ad-placeholder {
    background: #f8f9fa;
    border: 1px dashed #cbd5e0;
    width: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #a0aec0;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.ad-placeholder::before {
    content: "SPAZIO PUBBLICITARIO";
    position: absolute;
    top: 5px;
    left: 10px;
    font-size: 0.6rem;
    opacity: 0.5;
}

.ad-banner {
    max-width: 970px;
    height: 90px;
}

.ad-box {
    max-width: 336px;
    height: 280px;
}

.ad-infeed {
    max-width: 100%;
    height: 120px;
}

@media (max-width: 768px) {
    .ad-banner {
        height: 60px;
    }


    .ad-placeholder::before {
        font-size: 0.5rem;
    }
}

/* ── Global Layout ── */
.site-main-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--border);
    padding: var(--space-sm) var(--space-sm) 60px;
}

@media (max-width: 991px) {
    .site-main-wrapper {
        margin: 0;
        border-radius: 0;
        border: none;
    }
}

/* ── Editorial Grid & Cards ── */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.editorial-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.4s ease;
}

.editorial-card-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.editorial-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.editorial-card:hover img {
    transform: scale(1.1);
}

.editorial-card-info {
    text-align: center;
}

.editorial-card-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.editorial-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--primary);
}

.editorial-card-meta {
    font-size: 0.85rem;
    color: var(--accent);
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    font-weight: 700;
}

@media (max-width: 991px) {
    .editorial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .editorial-grid {
        grid-template-columns: 1fr;
    }
}

/* ── global-footer ── */
.site-footer {
    padding: 80px 20px 40px;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 100px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    color: var(--primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
}


.footer-copy {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.footer-legal {
    margin-top: 15px;
    font-size: 0.8rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: underline;
}

.footer-legal a:hover {
    color: var(--accent);
}

/* ── Editorial Filters (Chips) ── */
.editorial-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px 0;
    justify-content: center;
    padding: 0 20px;
}

.editorial-chip {
    padding: 8px 20px;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}

.editorial-chip:hover {
    background: var(--white);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.editorial-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 60px 0;
}

.page-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.page-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f1f1f1;
}

.page-info {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    letter-spacing: 0.05em;
}

/* ── Hero Slider ── */
.featured-hero-wrapper {
    position: relative;
    height: 560px;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 60px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
}

.hero-slider-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.editorial-featured {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    height: 100%;
    width: 100%;
    position: relative;
}

.editorial-featured-img {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.editorial-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editorial-featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.80) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 2;
}

.editorial-featured-content {
    position: relative;
    z-index: 3;
    padding: 50px;
    max-width: 600px;
    color: white;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.slider-arrow:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.arrow-prev {
    left: 25px;
}

.arrow-next {
    right: 25px;
}

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 4px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.35s ease;
}

.dot.active {
    background: white;
    width: 28px;
}

.editorial-badge {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.featured-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 15px;
    color: white;
}

.featured-desc {
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-editorial {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: fit-content;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.btn-editorial:hover {
    transform: translateY(-3px);
    background: var(--accent);
    color: white;
}

/* ── Comment Section ── */
.editorial-comments {
    margin-top: 100px;
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.editorial-comments h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
}

.editorial-comment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.editorial-comment-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    height: 380px;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.editorial-comment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}

.h-comm-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--primary);
    transition: transform 0.4s ease;
}

.editorial-comment-card:hover .h-comm-hero-img {
    transform: scale(1.04);
}

.h-comm-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,10,0.08) 0%,
        rgba(10,10,10,0.45) 45%,
        rgba(10,10,10,0.82) 100%
    );
}

.no-image .h-comm-overlay {
    background: linear-gradient(160deg, #1e272e 0%, #2d3436 100%);
}

.h-comm-body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 24px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.h-comm-text {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.93);
    font-style: italic;
}

.h-comm-author {
    display: flex;
    align-items: center;
    gap: 11px;
}

.h-comm-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 0.85rem;
    position: relative;
    border: 2px solid rgba(255,255,255,0.35);
}

.h-comm-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.h-comm-avatar span {
    position: relative;
    z-index: 1;
    line-height: 1;
}

.h-comm-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.h-comm-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    display: block;
}

.h-comm-recipe {
    font-size: 0.73rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .editorial-comment-grid {
        grid-template-columns: 1fr;
    }
    .editorial-comment-card {
        height: 300px;
    }
}

/* ── Secondary Heroes Grid ── */
.secondary-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 80px;
}

.secondary-hero-item {
    position: relative;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease;
}

.secondary-hero-item:hover {
    transform: translateY(-8px);
}

.secondary-hero-img {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.secondary-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secondary-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 2;
}

.secondary-hero-content {
    position: relative;
    z-index: 3;
    padding: 30px;
}

.sec-hero-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.sec-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 0;
    color: white;
    font-weight: 700;
}

/* ── Adsense Integration ── */
.ad-editorial-banner {
    margin: 40px auto;
    max-width: 728px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ad-editorial-banner img {
    width: 100%;
    display: block;
}

.ad-editorial-label {
    padding: 4px 10px;
    background: #f8f9fa;
    width: 100%;
    text-align: center;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.65rem;
    border-bottom: 1px solid var(--border);
}

/* ── Mobile Responsive for Grid Components ── */
@media (max-width: 991px) {
    .editorial-comment-grid {
        grid-template-columns: 1fr;
    }

    .secondary-hero-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .secondary-hero-item {
        height: 300px;
    }

    .featured-hero-wrapper {
        height: 450px;
    }

    .editorial-featured-content {
        padding: 40px 30px;
    }

    .featured-title {
        font-size: 2rem;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .editorial-title-wrap h1,
    .editorial-title-wrap .editorial-site-name {
        font-size: 1.1rem;
        line-height: 1.2;
        white-space: normal;
        word-break: break-word;
    }

    .editorial-tagline {
        display: none; /* nasconde il sottotitolo per risparmiare spazio */
    }

    .editorial-logo {
        width: 36px;
        height: 36px;
    }

    .header-container {
        gap: 8px;
    }
}

/* ── Ad Slots ── */
.ad-slot {
    text-align: center;
    margin: var(--space-md) auto;
    overflow: hidden;
    max-width: 970px;
    /* Evita spazio vuoto quando non c'è annuncio */
    min-height: 0;
}
/* Nascondi slot vuoti (nessun figlio) */
.ad-slot:empty { display: none; margin: 0; }

/* Slot nella griglia: stesse proporzioni delle immagini ricetta */
.ad-slot--index_in_grid,
.ad-slot--category_in_grid {
    width: 100%;
    aspect-ratio: 1;
    align-self: start;
    margin: 0;
}

/* Sopra la griglia categoria: respiro generoso prima delle card */
.ad-slot.ad-slot--category_top {
    margin-top: 0 !important;
    margin-bottom: 64px !important;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

/* Prima dei commenti: separazione netta dal contenuto sopra */
#ad-inject-recipe-before-comments {
    display: block;
    margin: 64px auto 48px !important;
    padding-top: 48px;
    border-top: 1px solid var(--border);
    text-align: center;
    max-width: 970px;
}

/* Nasconde il div vuoto (prima che JS inietti il contenuto) */
#ad-inject-recipe-before-comments:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0;
    border: none;
}

/* Sidebar verticale ricetta */
#ad-inject-recipe-sidebar:not(:empty) {
    min-height: 250px;
}
/* ============================================================
   RECIPE BADGES — Feature 11
   ============================================================ */
.recipe-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.recipe-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 9px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.recipe-badge--time {
    background: #e8f8f0;
    color: #1a7a4a;
}

.recipe-badge--diff {
    background: #fff3e8;
    color: #c45c00;
}

.recipe-badge--cost {
    background: #edf2ff;
    color: #3b5bdb;
}

/* ============================================================
   TIMELINE STEP ICONS — Feature 9
   ============================================================ */
.step-item {
    animation: stepFadeIn 0.45s ease both;
    animation-delay: calc(var(--step-i, 0) * 0.07s);
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.step-marker {
    flex-direction: column;
    gap: 1px;
}

.step-num {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

.step-icon {
    font-size: 0.9rem;
    line-height: 1;
}

/* ============================================================
   COMMENTI CON FOTO — Feature 15
   ============================================================ */
.comm-photo-upload {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comm-photo-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: all 0.2s;
    width: fit-content;
}

.comm-photo-label:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.comm-photo-input {
    display: none;
}

.comm-photo-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
}

.comment-photo-wrap {
    margin-top: 10px;
}

.comment-photo-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: zoom-in;
    transition: transform 0.2s, border-color 0.2s;
}

.comment-photo-thumb:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

/* ============================================================
   PAGINA CHI SONO — Feature 12
   ============================================================ */
.cs-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--grad-primary);
    text-align: center;
    color: #fff;
    padding: var(--space-lg) var(--space-sm);
}

.cs-hero-bg {
    position: absolute;
    inset: 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}

.cs-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.cs-hero-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.6;
    margin-bottom: 16px;
    font-weight: 700;
}

.cs-hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.cs-hero-tagline {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

.cs-quote-section {
    padding: var(--space-lg) var(--space-sm);
    background: var(--bg-secondary);
    text-align: center;
}

.cs-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-style: italic;
    color: var(--primary);
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.4;
}

.cs-quote-author {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cs-stats-section {
    padding: var(--space-lg) var(--space-sm);
    background: var(--white);
}

.cs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cs-stat-item {
    padding: 30px 20px;
    border-radius: var(--radius);
    background: var(--bg-secondary);
}

.cs-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.cs-stat-label {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cs-bio-section {
    padding: var(--space-lg) var(--space-sm);
    background: var(--bg-secondary);
}

.cs-bio-inner {
    max-width: 780px;
    margin: 0 auto;
}

.cs-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.cs-timeline {
    position: relative;
    padding-left: 40px;
}

.cs-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    border-radius: 2px;
}

.cs-tl-item {
    position: relative;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.cs-tl-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.cs-tl-dot {
    position: absolute;
    left: -36px;
    top: 4px;
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--accent);
}

.cs-tl-year {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.cs-tl-text {
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .cs-hero-bg { background-attachment: scroll; }
    .cs-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   NOTIFICHE COMMENTI — checkbox
   ============================================================ */
.comm-notify-wrap {
    margin: 14px 0 18px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
}

.comm-notify-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.comm-notify-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.comm-notify-hint {
    margin: 8px 0 0 26px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.comm-notify-hint a {
    color: var(--accent);
    font-weight: 600;
}

/* ============================================================
   NEWSLETTER — profilo e sezione iscrizioni
   ============================================================ */
.nl-section {
    margin-top: 40px;
    padding: 30px 40px;
    border-top: 1px solid var(--border);
}

.nl-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.nl-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.nl-toggle-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.nl-toggle-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nl-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nl-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.nl-switch input { display: none; }

.nl-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s;
}

.nl-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.nl-switch input:checked + .nl-slider { background: var(--accent); }
.nl-switch input:checked + .nl-slider::before { transform: translateX(20px); }

.nl-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

.nl-status-badge.active { background: #e8f8f0; color: #1a7a4a; }
.nl-status-badge.inactive { background: #f4f4f4; color: var(--text-muted); }

.nl-recipe-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.nl-recipe-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}

.nl-recipe-item a { color: var(--primary); font-weight: 600; }
.nl-recipe-item a:hover { color: var(--accent); }

.nl-unsub-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.nl-unsub-btn:hover { border-color: var(--accent); color: var(--accent); }

.nl-empty { font-size: 0.88rem; color: var(--text-muted); font-style: italic; }

@media (max-width: 768px) {
    .nl-section { padding: 20px; }
    .nl-toggle-row { flex-direction: column; align-items: flex-start; }
}
