/* ============================================
   NEWS - HERO SECTION (archivio)
   ============================================ */

.news-hero {
    padding: 120px 20px 80px;
    background: #FFFFFF;
}

@media (min-width: 768px) {
    .news-hero {
        padding: 160px 20px 120px;
    }
}

.news-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .news-hero .container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

@media (min-width: 1024px) {
    .news-hero .container {
        gap: 80px;
    }
}

.news-hero__left {
    text-align: left;
}

.news-hero__title {
    margin: 0 0 16px 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #000000;
}

.news-hero__subtitle {
    margin: 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--sd-color-ripe-tomato, #e86a4d);
}

.news-hero__right {
    text-align: left;
}

.news-hero__description {
    margin: 0;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.6;
    color: #333333;
}

@media (min-width: 768px) {
    .news-hero__description {
        font-size: clamp(20px, 2vw, 28px);
    }
}

/* ============================================
   NEWS - CATEGORIES SECTION (archivio)
   ============================================ */

.news-categories {
    padding: 80px 20px;
    background: #FFFFFF;
}

@media (min-width: 768px) {
    .news-categories {
        padding: 120px 20px;
    }
}

.news-categories .container {
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.category-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .category-card {
        padding-bottom: 60px;
        margin-bottom: 60px;
    }
}

.category-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .category-card__header {
        margin-bottom: 40px;
        flex-wrap: nowrap;
    }
}

.category-card__title {
    margin: 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(28px, 5vw, 50px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #000000;
}

.category-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(14px, 1.5vw, 18px);
    color: var(--sd-color-deep-ocean);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: gap 0.3s ease;
}

/* Underline animato - applica solo al testo, non alla freccia */
.category-card__cta::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--sd-color-deep-ocean);
    transition: width 0.3s ease;
}

.category-card__cta:hover::after {
    width: calc(100% - 32px); /* Sottrae lo spazio della freccia e del gap */
}

.category-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: var(--sd-color-deep-ocean);
    background: transparent; /* Nessuno sfondo */
    transition: transform 0.3s ease;
    font-style: normal;
}

.category-card__cta:hover {
    gap: 12px;
}

.category-card__cta:hover .category-card__arrow {
    transform: rotate(45deg); /* Ruota da ↗ a → */
}


.category-card__image {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.category-card__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (min-width: 768px) {
    .category-card__image {
        max-height: 400px;
    }
    
    .category-card__image img {
        height: 400px;
    }
}

/* ============================================
   NEWS ELENCO - BREADCRUMB
   ============================================ */

.news-breadcrumb {
    padding: 100px 20px 0;
    background: #FFFFFF;
}

.news-breadcrumb .container {
    max-width: 1000px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    line-height: 1;
	letter-spacing:0px;
}

.breadcrumb__link {
    color: var(--sd-color-ripe-tomato);
    text-decoration: none;
    transition: opacity 0.3s ease;
	font-family: var(--sd-font-mono);
}

.breadcrumb__link:hover {
    opacity: 0.7;
	text-decoration:underline;
}

.breadcrumb__separator {
    color: #999999;
}

.breadcrumb__current {
    color: #333333;
	font-family: var(--sd-font-mono);
}

/* ============================================
   NEWS ELENCO - HERO
   ============================================ */

.news-elenco-hero {
    padding: 40px 20px 60px;
    background: #FFFFFF;
}

@media (min-width: 768px) {
    .news-elenco-hero {
        padding: 60px 20px 80px;
    }
}

.news-elenco-hero .container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .news-elenco-hero .container {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

@media (min-width: 1024px) {
    .news-elenco-hero .container {
        gap: 120px;
    }
}

.news-elenco-hero__left {
    text-align: left;
}

.news-elenco-hero__title {
    margin: 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #000000;
}

.news-elenco-hero__right {
    text-align: left;
}

.news-elenco-hero__description {
    margin: 0;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    color: #333333;
}

/* ============================================
   NEWS ELENCO - GRID
   ============================================ */

.news-elenco-grid {
    padding: 60px 20px 100px;
    background: #FFFFFF;
}

@media (min-width: 768px) {
    .news-elenco-grid {
        padding: 80px 20px 120px;
    }
}

.news-elenco-grid .container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Subsection */
.subsection {
    margin-bottom: 100px;
    padding-bottom: 60px;
    border-bottom: 1px solid #e0e0e0;
}

.subsection:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

@media (min-width: 768px) {
    .subsection {
        margin-bottom: 120px;
        padding-bottom: 80px;
    }
}

.subsection__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .subsection__header {
        margin-bottom: 48px;
        flex-wrap: nowrap;
    }
}

.subsection__title {
    margin: 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #000000;
}

.subsection__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(14px, 1.5vw, 18px);
    color: var(--sd-color-deep-ocean);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: gap 0.3s ease;
}


.subsection__cta::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--sd-color-deep-ocean);
    transition: width 0.3s ease;
}

.subsection__cta:hover::after {
    width: calc(100% - 32px);
}

.subsection__cta:hover {
    gap: 12px;
}

.subsection__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: var(--sd-color-deep-ocean);
    background: transparent; /* Nessuno sfondo */
    transition: transform 0.3s ease;
    font-style: normal;
}

.subsection__cta:hover .subsection__arrow {
    transform: rotate(45deg);
}


/* Articles Grid */
.subsection__articles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 640px) {
    .subsection__articles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}

@media (min-width: 1024px) {
    .subsection__articles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
    }
}

/* Article Card */
.article-card {
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.article-card__image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
    background: #f5f5f5;
}

@media (min-width: 768px) {
    .article-card__image {
        height: 200px;
    }
}

.article-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-card__img {
    transform: scale(1.05);
}

.article-card__content {
    display: flex;
    flex-direction: column;
}

.article-card__title {
    margin: 0 0 12px 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(18px, 2.5vw, 20px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #000000;
    transition: color 0.3s ease;
}

.article-card:hover .article-card__title {
    color: var(--sd-color-ripe-tomato);
}

.article-card__excerpt {
    margin: 0 0 16px 0;
    font-size: clamp(12px, 1.5vw, 13px);
    line-height: 1.6;
    color: var(--sd-color-rich-black);
	font-family: var(--sd-font-mono);
}

.article-card__date {
    display: block;
    margin-top: auto;
    font-size: 13px;
    font-family: var(--sd-font-mono);
    text-transform: lowercase;
    letter-spacing: 0.02em;
    color: #999999;
}

/* ============================================
   CATEGORY - HERO
   ============================================ */

.category-hero {
    padding: 40px 20px 60px;
    background: #FFFFFF;
}

@media (min-width: 768px) {
    .category-hero {
        padding: 60px 20px 80px;
    }
}

.category-hero .container {
    max-width: 1000px;
    margin: 0 auto;
}

.category-hero__title {
    margin: 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #000000;
}

/* ============================================
   CATEGORY - GRID
   ============================================ */

.category-grid {
    padding: 40px 20px 100px;
    background: #FFFFFF;
}

@media (min-width: 768px) {
    .category-grid {
        padding: 60px 20px 120px;
    }
}

.category-grid .container {
    max-width: 1000px;
    margin: 0 auto;
}

.category-grid__articles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 32px;
}

@media (min-width: 640px) {
    .category-grid__articles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 28px;
    }
}

@media (min-width: 1024px) {
    .category-grid__articles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 48px 32px;
    }
}

.category-grid__empty {
    text-align: center;
    font-size: 18px;
    color: #666666;
    padding: 60px 20px;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    margin-top: 80px;
    text-align: center;
	font-family: var(--sd-font-mono);
	color: var(--sd-color-rich-black);
}

@media (min-width: 768px) {
    .pagination {
        margin-top: 100px;
    }
}

.pagination ul {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination .current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 15px;
    text-decoration: none;
    color: #333333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #f5f5f5;
    color: var(--sd-color-ripe-tomato);
}

.pagination .current {
    background: var(--sd-color-ripe-tomato);
    color: #FFFFFF;
    font-weight: 500;
}

.pagination .prev,
.pagination .next {
    font-size: 24px;
    font-weight: 300;
}

.pagination .dots {
    padding: 0 8px;
    color: #999999;
}

/* ============================================
   SINGLE - HEADER
   ============================================ */

.single-header {
    padding: 40px 20px 40px;
    background: #FFFFFF;
}

@media (min-width: 768px) {
    .single-header {
        padding: 60px 20px 60px;
    }
}

.single-header .container {
    max-width: 1000px;
    margin: 0 auto;
}

.single-header__title {
    margin: 0 0 24px 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #000000;
}

@media (min-width: 768px) {
    .single-header__title {
        margin-bottom: 32px;
    }
}

.single-header__excerpt {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.6;
    color: #333333;
}

.single-header__excerpt p {
    margin: 0 0 16px 0;
}

.single-header__excerpt p:last-child {
    margin-bottom: 0;
}

/* ============================================
   SINGLE - FEATURED IMAGE
   ============================================ */

.single-featured-image {
    width: 100%;
    height: 500px;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


@media (min-width: 768px) {
    .single-featured-image {
        padding: 0 20px 80px;
    }
}

.single-featured-image .container {
    max-width: 1200px;
    margin: 0 auto;
}

.single-featured-image__img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ============================================
   SINGLE - CONTENT
   ============================================ */

.single-content {
    padding: 40px 20px 80px;
    background: #FFFFFF;
}

@media (min-width: 768px) {
    .single-content {
        padding: 60px 20px 100px;
    }
}

.single-content .container {
    max-width: 1000px;
    margin: 0 auto;
}

.single-content__article {
    font-size: clamp(16px, 1.8vw, 18px);
    line-height: 1.7;
    color: #333333;
}

/* Stili per il contenuto WordPress */
.single-content__article h2 {
    margin: 48px 0 24px 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #000000;
}

.single-content__article h3 {
    margin: 40px 0 20px 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #000000;
}

.single-content__article h4 {
    margin: 32px 0 16px 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(18px, 2.5vw, 20px);
    font-weight: 500;
    line-height: 1.4;
    color: #000000;
}

.single-content__article p {
    margin: 0 0 20px 0;
}

.single-content__article p:last-child {
    margin-bottom: 0;
}

.single-content__article ul,
.single-content__article ol {
    margin: 24px 0;
    padding-left: 24px;
}

.single-content__article li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.single-content__article a {
    color: var(--sd-color-ripe-tomato, #e86a4d);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.single-content__article a:hover {
    opacity: 0.7;
}

.single-content__article blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    border-left: 4px solid var(--sd-color-ripe-tomato, #e86a4d);
    background: #f9f9f9;
    font-style: italic;
    color: #666666;
}

.single-content__article img {
    max-width: 100%;
    height: auto;
    margin: 32px 0;
    border-radius: 4px;
}

.single-content__article strong {
    font-weight: 600;
    color: #000000;
}

/* ============================================
   SINGLE - RELATED ARTICLES
   ============================================ */

.single-related {
    padding: 80px 20px 100px;
    background: #f9f9f9;
}

@media (min-width: 768px) {
    .single-related {
        padding: 100px 20px 120px;
    }
}

.single-related .container {
    max-width: 1000px;
    margin: 0 auto;
}

.single-related__title {
    margin: 0 0 40px 0;
    font-family: var(--sd-font-heading);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #000000;
}

@media (min-width: 768px) {
    .single-related__title {
        margin-bottom: 48px;
    }
}

.single-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 640px) {
    .single-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}

@media (min-width: 1024px) {
    .single-related__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
    }
}