/*
Theme Name: Klodge Tozan Theme
Author: WebSardinia
Description: A high-fidelity pixel-perfect clone of the Tozan theme for KlodgePM.
Version: 1.1
*/

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

/* FactorA Premium Font Integration */
@font-face {
    font-family: 'FactorA';
    src: url('./assets/fonts/FactorA-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'FactorA';
    src: url('./assets/fonts/FactorA-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'FactorA';
    src: url('./assets/fonts/FactorA-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'FactorA';
    src: url('./assets/fonts/FactorA-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --tozan-lime: #d3fd1a;
    --tozan-dark: #120B14;
    --tozan-bg: #ffffff;
    --container-width: 1200px;
    --container-gutter: 20px;
    --font-heading: 'FactorA', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--tozan-bg);
    color: var(--tozan-dark);
    font-family: var(--font-body);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(18, 11, 20, 0.05);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.site-header.is-scrolled {
    background: rgba(18, 11, 20, 0.95); /* Swaps to Dark on Scroll */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: height 0.4s ease;
}

.site-header.is-scrolled .header-container {
    height: 70px;
}

/* Header Color Logic - TOP State */
.header-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -1.5px;
    text-decoration: none;
    color: #120B14;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 10px 0;
}

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

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

/* Scrolled Color Logic */
.site-header.is-scrolled .header-logo,
.site-header.is-scrolled .nav-links a {
    color: #FFFFFF;
}

.site-header.is-scrolled .hamburger-menu .bar {
    background-color: #FFFFFF;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Slightly reduced gap */
    justify-content: flex-end;
}

/* Hamburger Menu Icon */
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Ensure centered bars */
    gap: 6px;
    padding: 0 0 0 15px; /* Removed vertical padding for alignment, added left gap */
    height: 40px; /* Fixed height for consistent alignment */
    width: 40px;
}

.hamburger-menu .bar {
    display: block;
    height: 2px;
    background-color: #120B14;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.hamburger-menu .bar:nth-child(1) { width: 16px; }
.hamburger-menu .bar:nth-child(2) { width: 28px; }
.hamburger-menu .bar:nth-child(3) { width: 16px; }

.hamburger-menu:hover .bar:nth-child(1),
.hamburger-menu:hover .bar:nth-child(3) {
    width: 28px;
}

.hamburger-menu:hover .bar:nth-child(2) {
    width: 16px;
}

/* Button: Prenota */
.btn-prenota {
    background: #120B14;
    color: #FFFFFF !important;
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(18,11,20,0.15);
}

.btn-prenota:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 30px rgba(18,11,20,0.25);
}

.site-header.is-scrolled .btn-prenota {
    background: var(--tozan-lime);
    color: #120B14 !important;
}

/* Off-Canvas Menu FULL SCREEN REWRITE */
.off-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #120B14 !important;
    color: #FFFFFF;
    z-index: 999999;
    transform: translateX(100%);
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    visibility: hidden;
}

body.is-menu-open .off-menu {
    transform: translateX(0);
    visibility: visible;
}

.off-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 11, 20, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
}

body.is-menu-open .off-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.off-menu-inner {
    padding: 100px 40px;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.close-menu {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    position: absolute;
    top: 40px;
    right: 40px;
    cursor: pointer;
    color: #FFFFFF;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.close-menu:hover {
    background: var(--tozan-lime);
    color: #120B14;
    transform: rotate(90deg) scale(1.1);
}

.off-menu-header {
    margin-bottom: 60px;
}

.off-menu-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 48px;
    letter-spacing: -3px;
    color: #FFFFFF;
}

.off-menu-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.off-menu-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: clamp(32px, 8vw, 84px);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -4px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0.3;
}

.off-menu-links a:hover {
    color: #FFFFFF;
    opacity: 1;
    transform: scale(1.05);
}

@media (min-width: 992px) {
    .off-menu-links a.desktop-hide {
        display: none;
    }
}

.off-menu-footer {
    margin-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 50px;
    width: 100%;
}

.footer-tagline {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 800;
    color: rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.footer-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
}

.latest-post-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.footer-info a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.6;
}

.footer-info a:hover {
    color: #FFFFFF;
    opacity: 1;
}

.footer-info span {
    color: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero-section {
    padding: 100px 0 60px;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 110px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -4px;
    margin: 0;
}

/* Category Pill Mosaic (Static) */
.category-grid-tiles {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.category-pill {
    display: flex;
    height: 80px; /* Increased height for editorial impact */
    border-radius: 40px; /* High rounding to match pills */
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #F9F9F9;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
}

.category-pill.has-image {
    /* Background handled dynamically via PHP */
}

.category-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.category-pill .icon-box {
    width: 80px; /* Matches height for square block */
    height: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--tozan-lime);
    flex-shrink: 0;
    border-radius: 40px 0 0 40px; /* Rounded only on the outer edge */
}

.category-pill .text-box {
    padding: 0 40px;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-family: var(--font-heading);
    white-space: nowrap; /* Prevent tag name from wrapping */
    transition: color 0.3s ease;
}

.category-pill .tozan-tag {
    display: inline-block;
    transform: none; /* Removed Signature Tilt to match screenshot */
    font-size: 1.2rem;
}

/* Variant: Solid Pills */
.category-pill.is-solid .text-box {
    padding: 0 32px;
}

/* Mosaic Cleanup Guards */
.category-grid-tiles p, 
.category-grid-tiles br {
    display: none !important;
}

/* Curated Topics Section */
.curated-section {
    padding: 80px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.curated-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 26px;
    margin-bottom: 40px;
    color: #120B14;
}

.curated-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 350px;
    gap: 20px;
    align-items: stretch;
}

.curated-column {
    padding: 40px 30px;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.col-future { background-color: #FDF4E7; }
.col-innovation { background-color: #FCE8EB; }
.col-health { background-color: #E8FCEF; }

.column-header { margin-bottom: 30px; }
.column-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

.topic-loop {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topic-card-white {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative; /* For stretched link */
}

.topic-card-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.topic-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.topic-content {
    flex: 1;
}

.topic-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px; /* Force radius */
    overflow: hidden;
    flex-shrink: 0;
}

.topic-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-item:last-child { border-bottom: none; }

.topic-meta {
    font-size: 14px;
    font-weight: 500;
    color: rgba(18,11,20,0.6);
}

.topic-title a {
    font-family: var(--font-heading);
    font-weight: 580;
    font-size: 24px; /* Pixel-perfect bump */
    line-height: 1.25;
    text-decoration: none;
    color: #120B14;
    transition: opacity 0.2s;
    display: block;
    margin-bottom: 8px;
}

.topic-title a:hover { opacity: 0.7; }

.column-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
}

.btn-see-all {
    display: inline-block;
    font-size: 11px; /* Reduced font size to prevent wrap */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #120B14;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent wrap */
}

.btn-see-all:hover { transform: translateX(5px); }

/* Monday Pick Card */
.monday-pick-column { 
    display: flex;
    position: sticky;
    top: 100px; /* Offset for navbar */
    align-self: flex-start; /* Required for sticky inside grid/flex */
}

/* Monday Pick Card Enhancements */
.monday-pick-card {
    flex: 1;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    background: #120B14;
    color: white;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background-size: cover;
    background-position: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(18,11,20,0.1);
    min-height: 520px;
}

.monday-pick-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 40px 80px rgba(18,11,20,0.4);
}

.pick-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.pick-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(18,11,20,0.2) 0%, rgba(18,11,20,0.9) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.monday-pick-card:hover .pick-overlay {
    opacity: 0.8;
}

.pick-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255,255,255,0.2);
}

.pick-content { 
    position: relative; 
    z-index: 2; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pick-title-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 35px 25px;
    border-radius: 30px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

.monday-pick-card:hover .pick-title-box {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.pick-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -1.5px;
}

.pick-title a {
    color: #FFFFFF;
    text-decoration: none;
}

.pick-date {
    font-size: 11px;
    color: #FFFFFF;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 800;
}

.btn-go-article {
    background: var(--tozan-lime);
    color: #120B14;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(210, 242, 62, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-go-article:hover {
    transform: scale(1.1);
    background: #FFFFFF;
    box-shadow: 0 20px 40px rgba(255,255,255,0.4);
}

/* Sidebar Mode Adjustments */
.monday-pick-card.sidebar-mode {
    min-height: 480px;
    padding: 30px 20px;
}

.monday-pick-card.sidebar-mode .pick-title {
    font-size: 26px;
    letter-spacing: -1px;
}

.monday-pick-card.sidebar-mode .pick-title-box {
    padding: 25px 15px;
}

/* Single Post Split Header */
.single-post-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.post-header-left {
    padding: 80px var(--container-gutter);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    margin-left: auto;
}

.post-header-right {
    position: relative;
    overflow: hidden;
    padding: 60px; /* Contain the image for a premium look */
    background-color: #FDFBF7; /* Soft paper background */
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-header-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px; /* High-fidelity rounded corners */
}

.entry-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.entry-meta-wrap {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: var(--tozan-dark);
}

.entry-meta-wrap a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1.5px solid var(--tozan-lime);
}

.meta-sep {
    margin: 0 8px;
    opacity: 0.4;
    font-weight: 400;
}

.entry-excerpt {
    font-size: 22px;
    line-height: 1.5;
    color: rgba(18,11,20,0.7);
    margin-top: 30px;
}

.entry-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 var(--container-gutter);
    line-height: 1.8;
    font-size: 20px;
}

/* Read Next Section Enhancements */
.read-next-section .wp-block-query .wp-block-post-template {
    gap: 30px;
}

.read-next-section .curated-card {
    background: #FFFFFF;
    border-radius: 30px;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(18,11,20,0.05);
}

.read-next-section .curated-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(18,11,20,0.05);
}

.read-next-section .curated-card .wp-block-post-featured-image {
    margin-bottom: 20px;
}

.read-next-section .curated-card .wp-block-post-featured-image img {
    border-radius: 20px;
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.read-next-section .curated-card .cat-label {
    margin-bottom: 15px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.read-next-section .curated-card .cat-label a {
    color: #120B14;
    text-decoration: none;
    border-bottom: 1.5px solid var(--tozan-lime);
}

.read-next-section .curated-card .wp-block-post-title {
    margin-top: 0;
}

/* Editorial Drop Cap (Capitello) */
.entry-content p:first-of-type::first-letter {
    float: left;
    font-size: 4.8rem;
    line-height: 0.85;
    margin-right: 0.8rem;
    margin-top: 0.2rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--tozan-dark);
}

.entry-content p {
    margin-bottom: 25px;
}

/* Newsletter Section Enhancements */
.newsletter-section {
    background: linear-gradient(135deg, #FDFBF7 0%, #F5F7F9 100%);
    padding: 120px 40px;
    text-align: center;
    border-radius: 60px;
    margin: 80px var(--container-gutter);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(18,11,20,0.03);
}

.newsletter-icon {
    margin-bottom: 30px;
    color: var(--tozan-lime);
    background: var(--tozan-dark);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 20px rgba(18,11,20,0.1);
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 25px;
    color: var(--tozan-dark);
}

.newsletter-subtitle {
    font-size: 18px;
    color: rgba(18, 11, 20, 0.6);
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 550px;
    margin: 0 auto 30px;
}

.input-wrapper {
    display: flex;
    background: #FFFFFF;
    padding: 8px;
    border-radius: 100px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid rgba(18,11,20,0.08);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--tozan-lime);
    box-shadow: 0 20px 50px rgba(210, 242, 62, 0.15);
}

.input-wrapper input {
    flex: 1;
    border: none;
    padding: 0 30px;
    font-size: 16px;
    font-family: var(--font-body);
    outline: none;
    background: transparent;
    color: var(--tozan-dark);
}

.input-wrapper button {
    background: var(--tozan-dark);
    color: #FFFFFF;
    border: none;
    padding: 18px 40px;
    border-radius: 100px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 1px;
}

.input-wrapper button:hover {
    background: var(--tozan-lime);
    color: var(--tozan-dark);
    transform: scale(1.05);
}

.newsletter-privacy {
    font-size: 13px;
    color: rgba(18, 11, 20, 0.4);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .curated-grid { grid-template-columns: 1fr; }
    .hero-title { letter-spacing: -2px; }
    .single-post-header { grid-template-columns: 1fr; }
    .post-header-left { padding: 40px var(--container-gutter); margin: 0; }
    .post-header-right { height: 400px; }
}

/* Archive Template Styles */
.archive-main {
    padding-bottom: 100px;
}

.archive-hero {
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE6EB 100%);
    padding: 120px 40px 80px;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.archive-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(40px);
    border-radius: 50%;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left {
    max-width: 700px;
}

.meta-label {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0.5;
    display: block;
    margin-bottom: 20px;
}

.archive-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 900;
    letter-spacing: -4px;
    margin: 0 0 20px 0;
    line-height: 0.9;
    color: #120B14;
}

.archive-description {
    font-size: 20px;
    line-height: 1.6;
    color: rgba(18, 11, 20, 0.7);
    margin-bottom: 40px;
}

.archive-explore-label {
    font-weight: 700;
    font-size: 14px;
    color: #120B14;
}

.article-count {
    opacity: 0.5;
    font-weight: 500;
}

.archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.archive-layout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

.archive-posts-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px 30px !important;
}

.archive-post-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.archive-post-card:hover {
    transform: translateY(-5px);
}

.post-thumb-wrap {
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f0f0f0;
}

.post-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-post-card:hover .post-thumb-wrap img {
    transform: scale(1.08);
}

.post-card-meta {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(18, 11, 20, 0.4);
    margin-bottom: 10px;
}

.post-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    margin: 0;
}

.post-card-title a {
    text-decoration: none;
    color: #120B14;
}

.sidebar-pick-wrapper {
    position: sticky;
    top: 120px;
}

.pick-label {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 30px;
    opacity: 0.5;
}

.sidebar-mode {
    min-height: 550px !important;
}

/* Pagination Styling */
.pagination-wrap {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.wp-block-query-pagination-numbers {
    display: flex;
    gap: 10px;
}

.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers .current {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    color: #120B14;
    background: rgba(0,0,0,0.03);
}

.wp-block-query-pagination-numbers .current {
    background: #120B14;
    color: white;
}

/* Responsive Archive */
@media (max-width: 1200px) {
    .archive-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .archive-layout-grid {
        grid-template-columns: 1fr;
    }
    .archive-hero {
        padding: 100px 30px 60px;
    }
}

@media (max-width: 600px) {
    .archive-posts-grid {
        grid-template-columns: 1fr !important;
    }
    .archive-title {
        font-size: 60px;
    }
}

/* Featured "What we love" Section */
.featured-section-wrap {
    margin: 80px auto;
    max-width: 1400px;
    padding: 0 40px;
}

.featured-label {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0.5;
    margin-bottom: 25px;
}

.featured-glass-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(40px);
    border-radius: 60px;
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Subtle glowing background elements */
.featured-glass-box::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(224, 195, 252, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.featured-main-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: -2px;
    margin: 0;
    color: #120B14;
}

.btn-see-all-featured {
    font-weight: 700;
    font-size: 14px;
    color: #120B14;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.btn-see-all-featured:hover {
    opacity: 1;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Responsive grid adjustments */
@media (max-width: 1300px) {
    .featured-posts-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    /* Optional: hide 5th card on 4-col view if desired */
    .featured-posts-grid article:nth-child(5) {
        display: none;
    }
}

@media (max-width: 1000px) {
    .featured-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .featured-posts-grid article:nth-child(5) {
        display: block; 
    }
}

@media (max-width: 600px) {
    .featured-posts-grid {
        grid-template-columns: 1fr;
    }
}

.featured-footer-cta {
    text-align: center;
    margin-top: 20px;
}

.btn-discover-more {
    display: inline-block;
    background: #120B14;
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-discover-more:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.featured-card {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 30px;
    padding: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.featured-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-meta {
    font-size: 12px;
    color: rgba(0,0,0,0.5);
    line-height: 1.5;
}

.featured-card-meta .author {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    color: #120B14;
}

/* Featured Section Responsive */
@media (max-width: 900px) {
    .featured-glass-box {
        padding: 40px 30px;
        border-radius: 40px;
    }
    .featured-section-wrap {
        padding: 0 20px;
    }
}

/* High-Fidelity 6-Column Footer */
.site-footer {
    background: #120B14;
    color: #fff;
    padding: 120px 40px 80px;
    margin-top: 120px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-column h4 {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 30px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}
/* Latest Posts Section (Cosa c'è di nuovo) */
.latest-posts-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.latest-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 60px;
    text-align: center;
}

.latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.latest-post-card {
    display: flex;
    flex-direction: column;
    position: relative; /* For stretched link */
    transition: all 0.3s ease;
}

.latest-post-card:hover {
    transform: translateY(-5px);
}

.latest-post-thumb {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    aspect-ratio: 4/3;
}

.latest-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-post-thumb:hover img {
    transform: scale(1.05);
}

.latest-post-title {
    font-weight: 580;
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.latest-post-title a {
    color: #120B14;
    text-decoration: none;
}

.latest-post-meta {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-author { font-weight: 700; }
.meta-details { opacity: 0.6; }

.footer-contact-info {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    max-width: 1400px;
    margin: 80px auto 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

/* Footer Responsive */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 60px 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Obsolete Search CSS Removed */

/* Pinned Area Section */
.pinned-area-wrap {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pinned-area-wrap {
        padding: 60px 20px;
    }
}

.pinned-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 26px;
    margin-bottom: 40px;
    color: #120B14;
}

.pinned-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .pinned-grid {
        grid-template-columns: 1fr;
    }
}

.pinned-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #FDFBF7;
    padding: 20px;
    border-radius: 24px;
    transition: all 0.3s ease;
    border: 1px solid rgba(18,11,20,0.03);
    position: relative; /* For stretched link */
}

.pinned-card:hover {
    background: #FFFFFF;
    box-shadow: 0 15px 40px rgba(18,11,20,0.05);
    transform: translateY(-5px);
}

.pinned-card-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.pinned-thumb {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.pinned-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pinned-card-content {
    flex: 1;
}

.pinned-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 8px;
}

.pinned-card-title a {
    color: #120B14;
    text-decoration: none;
}

.pinned-card-meta {
    font-size: 14px;
    color: rgba(18,11,20,0.5);
    font-weight: 600;
    text-transform: uppercase;
}

/* --- MOBILE RESPONSIVE OVERRIDES --- */
@media (max-width: 991px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Header & Navigation */
    .site-header {
        background: #ffffff !important; /* Solid background on mobile */
    }
    .site-header.is-scrolled {
        background: #120B14 !important;
    }
    
    .nav-links, .btn-prenota {
        display: none !important;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    /* Hamburger Adjustments */
    .header-right {
        gap: 0;
    }
    
    /* Off-Canvas Menu */
    .off-menu-inner {
        padding: 80px 20px;
    }
    .off-menu-links a {
        font-size: clamp(28px, 8vw, 48px);
        letter-spacing: -1px;
    }
    
    /* Hero */
    .hero-section {
        padding: 120px 20px 40px;
    }
    .hero-title {
        font-size: clamp(40px, 10vw, 64px);
    }
    
    /* Tag Mosaic */
    .category-pill {
        height: 60px;
        border-radius: 30px;
    }
    .category-pill .icon-box {
        width: 60px;
        height: 60px;
        border-radius: 30px 0 0 30px;
    }
    .category-pill .text-box {
        padding: 0 25px;
    }
    .category-pill.is-solid .text-box {
        padding: 0 20px;
    }
    .category-pill .tozan-tag {
        font-size: 1rem;
    }
    
    /* All Grids to 1 Column */
    .curated-grid, 
    .latest-posts-grid, 
    .pinned-grid,
    .featured-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .curated-section, .featured-section-wrap, .latest-posts-section, .pinned-area-wrap {
        padding: 40px 20px;
    }
    
    .curated-column {
        padding: 30px 20px;
        min-height: auto;
    }
    
    .monday-pick-column {
        position: relative;
        top: 0;
    }
    .monday-pick-card {
        min-height: 400px;
    }
    
    /* Single Post Layout */
    .single-post-header {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .post-header-left {
        padding: 40px 20px;
        order: 2;
    }
    .post-header-right {
        padding: 20px;
        order: 1;
        min-height: 300px;
    }
    .post-header-right img {
        border-radius: 20px;
    }
    
    .post-content-container, .post-container {
        padding: 0 20px;
    }
}

