/* ==========================================================================
   Homepage Terre di Cosenza (index.html, blocco HOME:START / HOME:END)
   ========================================================================== */
body.tdc-home-page,
body.tdc-home-page .neve-main {
    background: #fbf6ef;
}

.tdc-home {
    --home-wine: #7f1d16;
    --home-wine-dark: #4e120e;
    --home-gold: #e5a33b;
    --home-cream: #fbf6ef;
    --home-paper: #fffdfa;
    --home-ink: #2d2521;
    --home-muted: #6f5b51;
    --home-line: rgba(127, 29, 22, 0.13);
    --home-sans: Arial, Helvetica, sans-serif;
    color: var(--home-ink);
    overflow-x: clip;
}

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

.tdc-home-wrap {
    width: min(100% - 40px, 1180px);
    margin-inline: auto;
}

.tdc-home h1,
.tdc-home h2,
.tdc-home h3 {
    margin: 0;
    color: var(--home-wine-dark);
    font-weight: 400;
    letter-spacing: -0.02em;
    text-transform: none;
}

.tdc-home p {
    margin: 0;
}

.tdc-home a {
    text-decoration: none;
}

.tdc-home-eyebrow {
    margin: 0 0 12px !important;
    color: #b2721f;
    font-family: var(--home-sans);
    font-size: 0.72rem !important;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* ---------- Pulsanti ---------- */
.tdc-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
    font-family: var(--home-sans);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    backdrop-filter: blur(6px);
}

.tdc-home-btn:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.tdc-home-btn--primary {
    border-color: var(--home-gold);
    color: #3a1408 !important;
    background: var(--home-gold);
}

.tdc-home-btn--primary:hover {
    border-color: #f2bb5e;
    background: #f2bb5e;
}

.tdc-home-btn--dark {
    border-color: var(--home-wine);
    color: #fff !important;
    background: var(--home-wine);
    backdrop-filter: none;
}

.tdc-home-btn--dark:hover {
    border-color: var(--home-wine-dark);
    background: var(--home-wine-dark);
}

.tdc-home a:focus-visible,
.tdc-home button:focus-visible {
    outline: 3px solid var(--home-gold);
    outline-offset: 3px;
}

/* ---------- Apertura ---------- */
.tdc-home-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(88vh, 760px);
    padding: 120px 0 72px;
    overflow: hidden;
    color: #fff;
    background: #2a0f0b;
    isolation: isolate;
}

.tdc-home-hero-media,
.tdc-home-hero-media img,
.tdc-home-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tdc-home-hero-media {
    z-index: -1;
}

.tdc-home-hero-media img,
.tdc-home-hero-video {
    object-fit: cover;
}

.tdc-home-hero-video {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.tdc-home-hero-video.is-ready {
    opacity: 1;
}

.tdc-home-hero-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(180deg, rgba(30, 8, 6, 0.15) 0%, rgba(30, 8, 6, 0.1) 35%, rgba(36, 9, 7, 0.82) 100%),
        linear-gradient(90deg, rgba(60, 14, 10, 0.72) 0%, rgba(60, 14, 10, 0.2) 65%, transparent 100%);
}

.tdc-home-hero-inner {
    position: relative;
}

.tdc-home-hero .tdc-home-eyebrow {
    color: #f3c77c;
}

.tdc-home-hero h1 {
    max-width: 15ch;
    color: #fff;
    font-size: clamp(2.6rem, 6.4vw, 5.4rem);
    line-height: 0.98;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.tdc-home-hero h1 span {
    color: #f6dfb6;
    font-style: italic;
}

.tdc-home-lead {
    max-width: 40rem;
    margin-top: 22px !important;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.55;
}

.tdc-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.tdc-home-video-toggle {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 1;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    font-family: var(--home-sans);
    font-size: 0.75rem;
    cursor: pointer;
}

.tdc-home-video-toggle[hidden] {
    display: none;
}

/* ---------- Avviso in evidenza ---------- */
.tdc-home-notice {
    border-bottom: 1px solid var(--home-line);
    background: var(--home-paper);
}

.tdc-home-notice-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding: 16px 0;
    font-family: var(--home-sans);
    font-size: 0.9rem;
}

.tdc-home-notice-inner p {
    flex: 1 1 320px;
    color: var(--home-muted);
}

.tdc-home-notice-inner strong {
    color: var(--home-wine-dark);
}

.tdc-home-notice-tag,
.tdc-home-event-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #6b4a3e;
    background: rgba(127, 29, 22, 0.08);
    font-family: var(--home-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tdc-home-notice-tag,
.tdc-home-event-tag--live {
    color: #1f5b2c;
    background: rgba(46, 140, 70, 0.12);
}

.tdc-home-notice-tag::before,
.tdc-home-event-tag--live::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: #2e8c46;
}

.tdc-home-notice-inner a {
    color: var(--home-wine) !important;
    font-weight: 700;
}

/* ---------- Sezioni ---------- */
.tdc-home-section {
    padding: clamp(64px, 9vw, 112px) 0;
}

.tdc-home-heading {
    max-width: 720px;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.tdc-home-heading h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}

.tdc-home-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px 56px;
    align-items: end;
    max-width: none;
}

.tdc-home-heading--split > p {
    color: var(--home-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* ---------- Esplora ---------- */
.tdc-home-explore-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tdc-home-explore-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 22px;
    color: inherit !important;
    background: var(--home-paper);
    box-shadow: 0 14px 34px rgba(66, 40, 26, 0.07);
    transition: transform 0.28s cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 0.28s ease;
}

.tdc-home-explore-card:hover {
    box-shadow: 0 22px 44px rgba(66, 40, 26, 0.14);
    transform: translateY(-6px);
}

.tdc-home-explore-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tdc-home-explore-card:hover img {
    transform: scale(1.04);
}

.tdc-home-explore-card > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
}

.tdc-home-explore-kicker {
    color: #b2721f;
    font-family: var(--home-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tdc-home-explore-card h3 {
    font-size: 1.55rem;
    line-height: 1.12;
}

.tdc-home-explore-card p {
    color: var(--home-muted);
    line-height: 1.55;
}

.tdc-home-explore-link {
    margin-top: auto;
    padding-top: 8px;
    color: var(--home-wine);
    font-family: var(--home-sans);
    font-size: 0.85rem;
    font-weight: 700;
}

/* ---------- Numeri ---------- */
.tdc-home-figures {
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(229, 163, 59, 0.3), transparent 30%),
        linear-gradient(120deg, #4c120e, #7f1d16 60%, #9c4a22);
}

.tdc-home-figures-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tdc-home-figures-grid > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 42px 24px;
    border-left: 1px solid rgba(255, 240, 210, 0.18);
}

.tdc-home-figures-grid > div:first-child {
    border-left: 0;
    padding-left: 0;
}

.tdc-home-figures strong {
    color: #f6dfb6;
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1;
}

.tdc-home-figures span {
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--home-sans);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* ---------- Sottozone ---------- */
.tdc-home-zones-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 22px;
    background: var(--home-line);
    list-style: none;
}

.tdc-home-zones-list li {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 26px 24px 28px;
    background: var(--home-paper);
    transition: background-color 0.2s ease;
}

.tdc-home-zones-list li:hover {
    background: #fff;
}

.tdc-home-zone-n {
    color: var(--home-gold);
    font-family: var(--home-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.tdc-home-zones-list h3 {
    font-size: 1.45rem;
    line-height: 1.1;
}

.tdc-home-zones-list p {
    color: var(--home-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tdc-home-zones-list .tdc-home-zones-more {
    justify-content: center;
    background: var(--home-cream);
}

.tdc-home-zones-more a {
    color: var(--home-wine) !important;
    font-family: var(--home-sans);
    font-weight: 700;
}

/* ---------- Magliocco ---------- */
.tdc-home-feature {
    background: #f3e8dc;
}

.tdc-home-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.tdc-home-feature-media {
    margin: 0;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 24px 50px rgba(66, 40, 26, 0.18);
}

.tdc-home-feature-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.tdc-home-feature-copy h2 {
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    line-height: 1;
}

.tdc-home-feature-copy > p:not(.tdc-home-eyebrow) {
    color: #4f3f37;
    font-size: 1.08rem;
    line-height: 1.65;
}

.tdc-home-feature-names {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 28px !important;
}

.tdc-home-feature-names span {
    padding: 6px 12px;
    border: 1px solid rgba(127, 29, 22, 0.2);
    border-radius: 999px;
    color: var(--home-wine-dark);
    background: rgba(255, 255, 255, 0.6);
    font-family: var(--home-sans);
    font-size: 0.8rem;
    font-style: italic;
}

/* ---------- Cantine ---------- */
.tdc-home-area-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.tdc-home-area-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid rgba(127, 29, 22, 0.18);
    border-radius: 999px;
    color: var(--home-wine-dark) !important;
    background: #fff;
    font-family: var(--home-sans);
    font-size: 0.85rem;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tdc-home-area-links a:hover {
    border-color: var(--home-wine);
    color: #fff !important;
    background: var(--home-wine);
}

.tdc-home-area-links span {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(127, 29, 22, 0.08);
    font-size: 0.72rem;
}

.tdc-home-area-links a:hover span {
    background: rgba(255, 255, 255, 0.2);
}

.tdc-home-logos {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
}

.tdc-home-logos li {
    margin: 0;
}

.tdc-home-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 14px;
    border: 1px solid var(--home-line);
    border-radius: 16px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tdc-home-logos a:hover {
    border-color: rgba(127, 29, 22, 0.35);
    box-shadow: 0 10px 24px rgba(66, 40, 26, 0.1);
    transform: translateY(-3px);
}

.tdc-home-logos img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(0.35);
    transition: filter 0.2s ease;
}

.tdc-home-logos a:hover img {
    filter: none;
}

/* ---------- Eventi ---------- */
.tdc-home-events {
    padding-top: 0;
}

.tdc-home-events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tdc-home-event {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 22px;
    padding: 26px;
    border: 1px solid var(--home-line);
    border-radius: 22px;
    color: inherit !important;
    background: var(--home-paper);
    transition: transform 0.28s cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 0.28s ease;
}

.tdc-home-event:hover {
    box-shadow: 0 18px 38px rgba(66, 40, 26, 0.1);
    transform: translateY(-4px);
}

.tdc-home-event-date {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 14px 10px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(140deg, #5e1612, #9c4a22);
    font-family: var(--home-sans);
    font-size: 0.75rem;
    text-align: center;
}

.tdc-home-event-date strong {
    color: #fff;
    font-family: Georgia, serif;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.05;
}

.tdc-home-event > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.tdc-home-event h3 {
    font-size: 1.4rem;
    line-height: 1.15;
}

.tdc-home-event p {
    color: var(--home-muted);
    line-height: 1.55;
}

/* ---------- Consorzio ---------- */
.tdc-home-consortium {
    border-top: 1px solid var(--home-line);
    background: var(--home-paper);
}

.tdc-home-consortium-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.tdc-home-consortium h2 {
    margin-bottom: 18px;
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    line-height: 1.05;
}

.tdc-home-consortium-grid > div > p:last-child {
    color: var(--home-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.tdc-home-links {
    display: grid;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--home-line);
    list-style: none;
}

.tdc-home-links li {
    margin: 0;
    border-bottom: 1px solid var(--home-line);
}

.tdc-home-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    color: var(--home-wine-dark) !important;
    font-size: 1.15rem;
    transition: color 0.2s ease, padding 0.2s ease;
}

.tdc-home-links a:hover {
    padding-left: 12px;
    color: var(--home-wine) !important;
}

.tdc-home-links a span {
    color: var(--home-gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .tdc-home-zones-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tdc-home-logos {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .tdc-home-explore-grid,
    .tdc-home-events-grid,
    .tdc-home-feature-grid,
    .tdc-home-consortium-grid,
    .tdc-home-heading--split {
        grid-template-columns: 1fr;
    }

    .tdc-home-explore-card {
        display: grid;
        grid-template-columns: 38% minmax(0, 1fr);
    }

    .tdc-home-explore-card img {
        height: 100%;
        aspect-ratio: auto;
    }

    .tdc-home-figures-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tdc-home-figures-grid > div:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .tdc-home-figures-grid > div:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 240, 210, 0.18);
    }
}

@media (max-width: 640px) {
    .tdc-home-hero {
        min-height: 82vh;
        padding: 96px 0 44px;
    }

    .tdc-home-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tdc-home-explore-card {
        display: flex;
    }

    .tdc-home-explore-card img {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .tdc-home-zones-list {
        grid-template-columns: 1fr;
    }

    .tdc-home-figures-grid > div {
        padding: 28px 12px;
    }

    .tdc-home-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .tdc-home-logos a {
        height: 76px;
        padding: 10px;
    }

    .tdc-home-event {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px;
    }

    .tdc-home-event-date {
        flex-direction: row;
        align-items: baseline;
        justify-content: flex-start;
        gap: 8px;
        width: fit-content;
        padding: 8px 14px;
        text-align: left;
    }

    .tdc-home-event-date strong {
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tdc-home *,
    .tdc-home *::before,
    .tdc-home *::after {
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   Pagine editoriali (es. I vini): apertura compatta e componenti dei vini
   ========================================================================== */
body.tdc-editorial-page,
body.tdc-editorial-page .neve-main {
    background: #fbf6ef;
}

.tdc-page-hero {
    position: relative;
    padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 7vw, 84px);
    overflow: hidden;
    color: #fff;
    background: #2a0f0b;
    isolation: isolate;
}

.tdc-page-hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.tdc-page-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tdc-page-hero-media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(48, 11, 8, 0.92) 0%, rgba(60, 14, 10, 0.7) 55%, rgba(60, 14, 10, 0.35) 100%);
}

.tdc-page-hero h1 {
    color: #fff;
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1;
}

.tdc-page-hero .tdc-home-eyebrow {
    color: #f3c77c;
}

.tdc-page-hero .tdc-home-lead {
    max-width: 38rem;
}

.tdc-page-breadcrumb {
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--home-sans);
    font-size: 0.8rem;
}

.tdc-page-breadcrumb a {
    color: #fff !important;
}

.tdc-page-breadcrumb a:hover {
    text-decoration: underline;
}

/* Tipologie base */
.tdc-wine-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tdc-wine-type {
    --wine-tone: #8f1f17;
    --wine-soft: rgba(143, 31, 23, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 26px 26px;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 22px;
    background: var(--home-paper);
}

.tdc-wine-type::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    content: "";
    background: var(--wine-tone);
}

.tdc-wine-type--bianco {
    --wine-tone: #d4b04a;
    --wine-soft: rgba(212, 176, 74, 0.16);
}

.tdc-wine-type--rosato {
    --wine-tone: #d9737a;
    --wine-soft: rgba(217, 115, 122, 0.14);
}

.tdc-wine-type-glass {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 32%),
        var(--wine-tone);
    box-shadow: 0 0 0 8px var(--wine-soft);
}

.tdc-wine-type h3 {
    margin-top: 6px !important;
    font-size: 1.9rem;
}

.tdc-wine-type p {
    color: var(--home-muted);
    line-height: 1.6;
}

.tdc-wine-versions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: auto 0 0 !important;
    padding: 12px 0 0 !important;
    list-style: none;
}

.tdc-wine-versions li {
    margin: 0;
    padding: 5px 11px;
    border-radius: 999px;
    color: var(--home-wine-dark);
    background: var(--wine-soft);
    font-family: var(--home-sans);
    font-size: 0.78rem;
    font-weight: 700;
}

/* Tabella varietali */
.tdc-wine-varietals {
    padding-top: 0;
}

.tdc-wine-varietals .tdc-filter-group {
    margin-bottom: 18px;
}

.tdc-wine-table-wrap {
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 22px;
    background: var(--home-paper);
}

.tdc-wine-table {
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse;
    font-size: 1rem;
}

.tdc-wine-table th,
.tdc-wine-table td {
    padding: 14px 20px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--home-line) !important;
    text-align: left;
    vertical-align: middle;
}

.tdc-wine-table thead th {
    color: #967e71;
    background: #f6ede3;
    font-family: var(--home-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tdc-wine-table thead th:nth-child(n + 3),
.tdc-wine-table td:nth-child(n + 3) {
    width: 13%;
    text-align: center;
}

.tdc-wine-table tbody tr:last-child th,
.tdc-wine-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.tdc-wine-table tbody tr:hover {
    background: #fff;
}

.tdc-wine-table tbody th {
    color: var(--home-wine-dark);
    font-size: 1.15rem;
    font-weight: 400;
}

.tdc-wine-table tbody th a {
    color: var(--home-wine) !important;
    border-bottom: 1px solid rgba(127, 29, 22, 0.3);
}

.tdc-wine-table small {
    color: var(--home-muted);
    font-size: 0.8em;
}

.tdc-wine-table td[data-label="Colore"] {
    color: var(--home-muted);
    font-family: var(--home-sans);
    font-size: 0.85rem;
}

.tdc-wine-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 12px;
    border-radius: 50%;
    vertical-align: 0.05em;
}

.tdc-wine-dot--rosso {
    background: #8f1f17;
}

.tdc-wine-dot--bianco {
    background: #d4b04a;
}

.tdc-wine-yes {
    color: var(--home-wine);
    font-size: 0.95rem;
}

.tdc-wine-yes small {
    font-family: var(--home-sans);
    font-size: 0.72rem;
}

.tdc-wine-no {
    color: #cbb9ad;
}

.tdc-wine-table tr[hidden] {
    display: none;
}

.tdc-wine-note {
    margin-top: 14px !important;
    color: #88776e;
    font-family: var(--home-sans);
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .tdc-wine-types {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tdc-wine-table thead {
        display: none;
    }

    .tdc-wine-table,
    .tdc-wine-table tbody,
    .tdc-wine-table tr {
        display: block;
    }

    .tdc-wine-table tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px 10px;
        padding: 16px 18px;
        border-bottom: 1px solid var(--home-line);
    }

    .tdc-wine-table tbody tr:last-child {
        border-bottom: 0;
    }

    .tdc-wine-table th,
    .tdc-wine-table td {
        display: block;
        width: auto !important;
        padding: 0 !important;
        border: 0 !important;
        text-align: left !important;
    }

    .tdc-wine-table tbody th {
        grid-column: 1 / -1;
    }

    .tdc-wine-table td[data-label="Colore"] {
        display: none;
    }

    .tdc-wine-table td[data-label]::before {
        display: block;
        margin-bottom: 2px;
        color: #967e71;
        content: attr(data-label);
        font-family: var(--home-sans);
        font-size: 0.64rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
}

/* Pagina Il territorio */
.tdc-territory-geo {
    padding-top: 0;
}

.tdc-territory-geo-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tdc-territory-geo-list li {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 22px;
    background: var(--home-paper);
}

.tdc-territory-geo-list img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.tdc-territory-geo-list li > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
}

.tdc-territory-geo-list h3 {
    font-size: 1.4rem;
    line-height: 1.12;
}

.tdc-territory-geo-list p {
    color: var(--home-muted);
    font-size: 0.96rem;
    line-height: 1.55;
}

.tdc-territory-grapes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.tdc-territory-grapes h2 {
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    line-height: 1;
}

.tdc-territory-grapes > div:first-child > p:last-child {
    color: #4f3f37;
    font-size: 1.08rem;
    line-height: 1.65;
}

.tdc-territory-grape-groups h3 {
    font-size: 1.3rem;
}

.tdc-territory-grape-groups .tdc-home-feature-names {
    margin: 12px 0 26px !important;
}

.tdc-territory-area-links {
    margin: 24px 0 0;
}

.tdc-home-feature-copy > p + p {
    margin-top: 14px !important;
}

@media (max-width: 1080px) {
    .tdc-territory-geo-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .tdc-territory-grapes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tdc-territory-geo-list {
        grid-template-columns: 1fr;
    }

    .tdc-territory-geo-list img {
        aspect-ratio: 16 / 9;
    }
}

/* Pagina I percorsi del vino */
.tdc-routes-intro-copy p {
    color: var(--home-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.tdc-routes-intro-copy p + p {
    margin-top: 12px !important;
}

.tdc-routes-atlas {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: stretch;
}

.tdc-routes-index {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 22px;
    background: var(--home-paper);
    list-style: none;
}

.tdc-routes-index li {
    margin: 0;
    border-bottom: 1px solid var(--home-line);
}

.tdc-routes-index li:last-child {
    border-bottom: 0;
}

.tdc-routes-index a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 12px;
    align-items: baseline;
    padding: 14px 20px;
    color: inherit !important;
    transition: background-color 0.2s ease;
}

.tdc-routes-index a:hover,
.tdc-routes-index a.is-active {
    background: #fff;
}

.tdc-routes-index a.is-active strong {
    color: var(--home-wine);
}

.tdc-routes-index strong {
    color: var(--home-wine-dark);
    font-size: 1.15rem;
    font-weight: 400;
}

.tdc-routes-index small {
    grid-column: 2;
    color: var(--home-muted);
    font-family: var(--home-sans);
    font-size: 0.78rem;
}

.tdc-routes-map-panel {
    display: flex;
    flex-direction: column;
}

.tdc-routes-map {
    position: relative;
    z-index: 0;
    flex: 1;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 30% 30%, rgba(229, 163, 59, 0.18), transparent 40%),
        linear-gradient(140deg, #f3e8dc, #ead8c6);
}

.tdc-routes-map-cta {
    display: flex;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px;
    text-align: center;
}

.tdc-routes-map-cta p {
    max-width: 22rem;
    color: var(--home-wine-dark);
    font-size: 1.1rem;
    line-height: 1.45;
}

.tdc-routes-map-cta small,
.tdc-routes-map-error {
    color: var(--home-muted);
    font-family: var(--home-sans);
    font-size: 0.75rem;
}

.tdc-routes-map-error {
    padding: 28px;
    text-align: center;
}

.tdc-routes-map.is-loading .tdc-routes-map-cta {
    opacity: 0.4;
    pointer-events: none;
}

.tdc-route-pin {
    background: none;
    border: 0;
}

.tdc-route-pin span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--home-wine, #7f1d16);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.tdc-route-pin.is-active span {
    background: #e5a33b;
    color: #3a1408;
    transform: scale(1.18);
}

.tdc-routes-list {
    padding-bottom: clamp(48px, 7vw, 88px);
}

.tdc-route {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(24px, 5vw, 72px);
    padding: clamp(40px, 6vw, 72px) 0;
    border-top: 1px solid var(--home-line);
    scroll-margin-top: 90px;
}

.tdc-route-head {
    position: relative;
    align-self: start;
}

.tdc-route-n {
    display: block;
    margin-bottom: 10px;
    color: rgba(229, 163, 59, 0.55);
    font-size: clamp(3.4rem, 7vw, 5.6rem);
    line-height: 0.9;
}

.tdc-route-head h2 {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.02;
}

.tdc-route-lead {
    margin-top: 12px !important;
    color: #b2721f;
    font-size: 1.1rem;
    font-style: italic;
}

.tdc-route-body > p {
    color: #4f3f37;
    font-size: 1.06rem;
    line-height: 1.7;
}

.tdc-route-body > p + p {
    margin-top: 14px !important;
}

.tdc-route-grapes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.tdc-route-grapes + .tdc-route-grapes {
    margin-top: 10px;
}

.tdc-route-grapes span {
    min-width: 92px;
    color: #967e71;
    font-family: var(--home-sans);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tdc-route-grapes em {
    padding: 5px 11px;
    border-radius: 999px;
    font-family: var(--home-sans);
    font-size: 0.8rem;
    font-style: normal;
    font-weight: 700;
}

.tdc-route-grapes em.is-red {
    color: #fff;
    background: #8f1f17;
}

.tdc-route-grapes em.is-white {
    color: #5c4513;
    background: rgba(212, 176, 74, 0.28);
}

.tdc-route-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 28px;
}

.tdc-route-nolink {
    margin: 0 !important;
    color: var(--home-muted);
    font-family: var(--home-sans);
    font-size: 0.85rem;
}

.tdc-route-top {
    color: var(--home-muted) !important;
    font-family: var(--home-sans);
    font-size: 0.8rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .tdc-routes-atlas,
    .tdc-route {
        grid-template-columns: 1fr;
    }

    .tdc-routes-map {
        min-height: 360px;
    }

    .tdc-route {
        gap: 18px;
    }

    .tdc-route-n {
        font-size: 3rem;
    }
}

/* ==========================================================================
   Pagine editoriali generate da tools/pagine-editoriali.py
   ========================================================================== */
.tdc-article-subnav {
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid var(--home-line);
    background: rgba(255, 253, 250, 0.96);
    backdrop-filter: blur(8px);
}

.tdc-article-subnav .tdc-home-wrap {
    display: flex;
    gap: 4px 22px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tdc-article-subnav .tdc-home-wrap::-webkit-scrollbar {
    display: none;
}

.tdc-article-subnav a {
    flex: 0 0 auto;
    padding: 16px 0 14px;
    border-bottom: 2px solid transparent;
    color: var(--home-muted) !important;
    font-family: var(--home-sans);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.tdc-article-subnav a:hover {
    color: var(--home-wine) !important;
}

.tdc-article-subnav a[aria-current="page"] {
    border-bottom-color: var(--home-gold);
    color: var(--home-wine-dark) !important;
}

.tdc-article-body {
    padding-top: clamp(16px, 3vw, 32px);
}

.tdc-article-body .tdc-home-wrap > :first-child.tdc-route {
    border-top: 0;
}

.tdc-article-strong {
    margin-top: 18px !important;
    color: var(--home-wine) !important;
    font-size: 1.6rem !important;
    font-style: italic;
}

.tdc-article-quote {
    margin: clamp(32px, 5vw, 56px) 0;
    padding: clamp(32px, 5vw, 56px);
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(229, 163, 59, 0.3), transparent 30%),
        linear-gradient(130deg, #4c120e, #7f1d16 60%, #9c4a22);
}

.tdc-article-quote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
}

.tdc-article-quote blockquote p {
    max-width: 30em;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    font-style: italic;
    line-height: 1.25;
}

.tdc-article-quote figcaption {
    max-width: 46rem;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.02rem;
    line-height: 1.6;
}

.tdc-article-figures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: clamp(24px, 4vw, 40px) 0;
    border: 1px solid var(--home-line);
    border-radius: 22px;
    background: var(--home-paper);
}

.tdc-article-figures > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 26px 24px;
    border-left: 1px solid var(--home-line);
}

.tdc-article-figures > div:first-child {
    border-left: 0;
}

.tdc-article-figures strong {
    color: var(--home-wine);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1;
}

.tdc-article-figures span {
    color: var(--home-muted);
    font-family: var(--home-sans);
    font-size: 0.85rem;
    line-height: 1.4;
}

.tdc-article-facts {
    display: grid;
    margin: 0;
    border-top: 1px solid var(--home-line);
}

.tdc-article-facts > div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--home-line);
}

.tdc-article-facts dt {
    color: #b2721f;
    font-family: var(--home-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tdc-article-facts dd {
    margin: 0;
    color: #4f3f37;
    font-size: 1.05rem;
    line-height: 1.5;
}

.tdc-article-names {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tdc-article-names li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--home-line);
    border-radius: 16px;
    background: var(--home-paper);
}

.tdc-article-names strong {
    color: var(--home-wine-dark);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 400;
}

.tdc-article-names span {
    color: var(--home-muted);
    font-family: var(--home-sans);
    font-size: 0.8rem;
}

.tdc-article-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: clamp(24px, 4vw, 40px) 0;
    padding: 0;
    list-style: none;
}

.tdc-article-pillars li {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 26px 24px;
    border: 1px solid var(--home-line);
    border-radius: 22px;
    background: var(--home-paper);
}

.tdc-article-pillars h3 {
    font-size: 1.6rem;
}

.tdc-article-pillars p {
    color: var(--home-muted);
    line-height: 1.55;
}

.tdc-article-docs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 20px;
    padding: clamp(32px, 5vw, 56px) 0 0;
}

.tdc-article-doc {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--home-line);
    border-radius: 22px;
    background: var(--home-paper);
}

.tdc-article-doc-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 70px;
    border-radius: 8px 18px 8px 8px;
    color: #fff;
    background: linear-gradient(150deg, #7f1d16, #a3442a);
    font-family: var(--home-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.tdc-article-doc > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.tdc-article-doc h3 {
    font-size: 1.35rem;
    line-height: 1.15;
}

.tdc-article-doc p {
    color: var(--home-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tdc-article-doc .tdc-company-link {
    margin-top: 4px;
    padding-top: 0;
}

@media (max-width: 900px) {
    .tdc-article-docs,
    .tdc-article-pillars {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tdc-article-figures {
        grid-template-columns: 1fr;
    }

    .tdc-article-figures > div {
        border-top: 1px solid var(--home-line);
        border-left: 0;
    }

    .tdc-article-figures > div:first-child {
        border-top: 0;
    }

    .tdc-article-names {
        grid-template-columns: 1fr;
    }

    .tdc-article-facts > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.tdc-article-doc-size {
    margin-left: 8px;
    opacity: 0.7;
    font-weight: 400;
}

.tdc-route-comuni {
    margin-top: 18px !important;
    color: var(--home-muted) !important;
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
}

.tdc-route-comuni strong {
    display: block;
    margin-bottom: 2px;
    color: #967e71;
    font-family: var(--home-sans);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Organigramma */
.tdc-article-people {
    display: grid;
    gap: 22px;
}

.tdc-article-people-group h3 {
    margin-bottom: 10px !important;
    color: #b2721f !important;
    font-family: var(--home-sans);
    font-size: 0.72rem !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tdc-article-people-group ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tdc-article-people-group li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--home-line);
    border-radius: 16px;
    background: var(--home-paper);
}

.tdc-article-people-group strong {
    color: var(--home-wine-dark);
    font-size: 1.15rem;
    font-weight: 400;
}

.tdc-article-people-group span {
    color: var(--home-muted);
    font-family: var(--home-sans);
    font-size: 0.82rem;
    line-height: 1.4;
}
