/**
 * Stylesheet: Landing Presentazione Rivista - La Civiltà Cattolica
 * Design System: Font istituzionale Euclid Circular A con BodoniFLF per citazione d'autore
 */

/* ==========================================================================
   0. Font-Face Dedicati già presenti nel tema parent
   ========================================================================== */
@font-face {
    font-family: 'BodoniFLF';
    src: url('../../../civiltacattolica/fonts/bodoniflf-roman-webfont.woff2') format('woff2'),
         url('../../../civiltacattolica/fonts/bodoniflf-roman-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BodoniFLF';
    src: url('../../../civiltacattolica/fonts/bodoniflf-italic-webfont.woff2') format('woff2'),
         url('../../../civiltacattolica/fonts/bodoniflf-italic-webfont.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BodoniFLF';
    src: url('../../../civiltacattolica/fonts/bodoniflf-bold-webfont.woff2') format('woff2'),
         url('../../../civiltacattolica/fonts/bodoniflf-bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BodoniFLF';
    src: url('../../../civiltacattolica/fonts/bodoniflf-bolditalic-webfont.woff2') format('woff2'),
         url('../../../civiltacattolica/fonts/bodoniflf-bolditalic-webfont.woff') format('woff');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ==========================================================================
   1. Typography & General Layout Constraints
   ========================================================================== */
html,
body.page-template-template-presentazione,
.landing-presentazione-page,
#main-wrapper.push_container {
    overflow-x: hidden !important;
    max-width: 100vw;
}

.section-landing-hero,
.section-landing-valori,
.section-landing-promo,
.section-landing-newsletter,
.section-landing-citazione,
.section-landing-rivista-unica {
    font-family: var(--cc-body-font-family, "Euclid Circular A", sans-serif);
    color: #2b3542;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    overflow-x: hidden;
    max-width: 100%;
}

/* ==========================================================================
   2. Block 1: Hero Presentazione
   ========================================================================== */
.section-landing-hero {
    position: relative;
    overflow: hidden;
    padding: 50px 0 70px 0;
    background-color: #fcfbfa;
    border-bottom: 1px solid #edf1f5;
}

.landing-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: center right;
    z-index: 1;
    opacity: 0.95;
}

.landing-hero-gradient-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.94) 40%, 
        rgba(255, 255, 255, 0.6) 65%, 
        rgba(255, 255, 255, 0.15) 100%);
    z-index: 2;
}

.landing-hero-container {
    position: relative;
    z-index: 3;
}

.landing-hero-title {
    font-family: "Euclid Circular A", sans-serif;
    color: #0f2b48;
    font-size: clamp(2.1rem, 3.6vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.landing-hero-lead p {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #2b3542;
    margin-bottom: 18px;
}

.landing-hero-lead p:last-child {
    margin-bottom: 0;
}

.landing-hero-mockup-wrap {
    text-align: center;
    padding: 10px;
}

.landing-hero-mockup-img {
    max-height: 520px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 15px 35px rgba(15, 43, 72, 0.18));
    transition: transform 0.4s ease;
}

.landing-hero-mockup-wrap:hover .landing-hero-mockup-img {
    transform: translateY(-4px);
}

/* ==========================================================================
   3. Block 2: Abbonamento e Azioni Rapide
   ========================================================================== */
.section-landing-valori {
    border-bottom: 1px solid #edf1f5;
}

.landing-valori-title {
    font-family: "Euclid Circular A", sans-serif;
    color: #0f2b48;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    font-weight: 700;
    line-height: 1.25;
}

.landing-valori-text p {
    font-size: 1.08rem;
    line-height: 1.68;
    color: #3b4654;
    margin-bottom: 16px;
}

.landing-quick-actions-row {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: #fbfcfd;
    border-radius: 8px;
    border: 1px solid #e7ecf2;
    overflow: hidden;
}

.landing-action-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 24px 14px;
    text-decoration: none !important;
    color: #0f2b48 !important;
    border-right: 1px solid #e7ecf2;
    transition: all 0.25s ease;
}

.landing-action-card:last-child {
    border-right: none;
}

.landing-action-card:hover {
    background-color: #ffffff;
    box-shadow: inset 0 3px 0 #9f0038, 0 8px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.landing-action-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0f2b48;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: all 0.25s ease;
}

.landing-action-card:hover .landing-action-icon-circle {
    background-color: #9f0038;
    transform: scale(1.08);
}

.landing-action-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 12px;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.landing-action-arrow {
    font-size: 1.2rem;
    color: #0f2b48;
    transition: transform 0.2s ease, color 0.2s ease;
}

.landing-action-card:hover .landing-action-arrow {
    color: #9f0038;
    transform: translateX(4px);
}

/* ==========================================================================
   4. Block 3: Banner Promozionale Sconto
   ========================================================================== */
.section-landing-promo {
    margin: 30px 0;
}

.landing-promo-banner-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 140px;
    background-color: #f7f9fa;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Left Chevron Carmine Box */
.landing-promo-content-side {
    flex: 0 0 65%;
    max-width: 65%;
    background-color: #d12b52;
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 30px 60px 30px 40px;
    position: relative;
    z-index: 2;
    clip-path: polygon(0 0, calc(100% - 35px) 0, 100% 50%, calc(100% - 35px) 100%, 0 100%);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

.landing-promo-sun-icon {
    flex-shrink: 0;
    margin-right: 24px;
    color: #ffffff;
    opacity: 0.95;
}

.landing-promo-title {
    font-family: "Euclid Circular A", sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.2;
}

.landing-promo-desc {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.45;
}

.landing-promo-inline-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.landing-promo-inline-link:hover {
    opacity: 0.85;
    text-decoration: underline !important;
}

.landing-promo-arrow {
    display: inline-block;
    font-size: 1.1rem;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.landing-promo-inline-link:hover .landing-promo-arrow {
    transform: translateX(4px);
}

/* Right Visual Side */
.landing-promo-visual-side {
    flex: 0 0 35%;
    max-width: 35%;
    background-size: cover;
    background-position: center center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.landing-promo-visual-side::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
}

.landing-promo-button-holder {
    position: relative;
    z-index: 3;
}

.landing-promo-pill-btn {
    background-color: #d12b52 !important;
    color: #ffffff !important;
    font-family: "Euclid Circular A", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    padding: 14px 38px;
    border-radius: 50px;
    border: none;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(209, 43, 82, 0.4);
    transition: all 0.25s ease;
    display: inline-block;
}

.landing-promo-pill-btn:hover {
    background-color: #b51f42 !important;
    transform: scale(1.05);
    box-shadow: 0 10px 28px rgba(209, 43, 82, 0.5);
    color: #ffffff !important;
}

/* ==========================================================================
   5. Block 4: Newsletter e Servizi
   ========================================================================== */
.section-landing-newsletter {
    border-bottom: 1px solid #edf1f5;
}

.landing-newsletter-heading {
    font-family: "Euclid Circular A", sans-serif;
    color: #0f2b48;
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    font-weight: 700;
    line-height: 1.3;
}

.landing-newsletter-text {
    font-size: 1.05rem;
    line-height: 1.68;
    color: #3b4654;
}

.landing-btn-newsletter {
    background-color: #0f2b48 !important;
    border-color: #0f2b48 !important;
    color: #ffffff !important;
    font-family: "Euclid Circular A", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 11px 26px;
    border-radius: 4px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.25s ease;
}

.landing-btn-newsletter:hover {
    background-color: #9f0038 !important;
    border-color: #9f0038 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 43, 72, 0.2);
}

.landing-services-column {
    border-left: 1px solid #edf1f5;
}

.landing-services-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.landing-service-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    background-color: #fbfcfd;
    border: 1px solid #e7ecf2;
    border-radius: 8px;
    text-decoration: none !important;
    color: #0f2b48 !important;
    transition: all 0.25s ease;
}

.landing-service-card:hover {
    background-color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-color: #0f2b48;
    transform: translateX(4px);
}

.landing-service-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #0f2b48;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.landing-service-card:hover .landing-service-icon-circle {
    background-color: #9f0038;
    transform: scale(1.08);
}

.landing-service-meta {
    flex: 1;
}

.landing-service-title {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0f2b48;
    margin-bottom: 2px;
    display: block;
}

.landing-service-arrow {
    font-size: 1.1rem;
    color: #0f2b48;
    transition: transform 0.2s ease, color 0.2s ease;
}

.landing-service-card:hover .landing-service-arrow {
    color: #9f0038;
    transform: translateX(3px);
}

/* ==========================================================================
   6. Block 5: Citazione Papale
   ========================================================================== */
.section-landing-citazione {
    position: relative;
    background-color: #ededeb;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    border-bottom: 1px solid #e2ded8;
    padding: 75px 0;
    min-height: 310px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.landing-citazione-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, 
        rgba(237, 237, 235, 1) 0%, 
        rgba(237, 237, 235, 0.96) 46%, 
        rgba(237, 237, 235, 0.4) 66%, 
        rgba(237, 237, 235, 0) 84%);
    pointer-events: none;
    z-index: 1;
}

.landing-quote-container {
    z-index: 2;
}

.landing-quote-box {
    position: relative;
    max-width: 780px;
}

.landing-quote-text {
    font-family: "BodoniFLF", "Cardo", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.42rem, 2.1vw, 1.82rem);
    line-height: 1.5;
    color: #07416b;
    margin-bottom: 22px;
    padding: 0;
    border: none;
    letter-spacing: -0.15px;
}

.landing-quote-mark {
    font-family: "BodoniFLF", "Cardo", Georgia, "Times New Roman", serif;
    font-style: normal;
    font-weight: 700;
    font-size: 1.25em;
    line-height: 0.8;
    color: #07416b;
    display: inline-block;
}

.landing-quote-author {
    font-family: "BodoniFLF", "Cardo", Georgia, "Times New Roman", serif;
    font-size: clamp(1.12rem, 1.25vw, 1.25rem);
    color: #07416b;
    line-height: 1.45;
}

.landing-quote-author strong {
    font-weight: 700;
    color: #07416b;
}

.landing-quote-author span {
    font-weight: 400;
    font-style: normal;
    color: #07416b;
}

@media (max-width: 991.98px) {
    .section-landing-citazione {
        background-position: right bottom;
        padding: 55px 0;
        min-height: auto;
    }
    .landing-citazione-overlay {
        background: linear-gradient(to bottom, 
            rgba(237, 237, 235, 0.98) 0%, 
            rgba(237, 237, 235, 0.94) 60%, 
            rgba(237, 237, 235, 0.35) 100%);
    }
    .landing-quote-box {
        max-width: 100%;
    }
}

/* ==========================================================================
   7. Block 6: Una Rivista Unica nel suo Genere
   ========================================================================== */
.section-landing-rivista-unica {
    border-bottom: 1px solid #edf1f5;
    background-color: #ffffff;
    padding: 65px 0 75px 0;
}

.landing-section-title {
    font-family: "Euclid Circular A", sans-serif;
    color: #0f2b48;
    font-size: clamp(1.85rem, 2.7vw, 2.45rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.4px;
    margin-bottom: 38px;
}

.landing-three-col {
    padding: 0 24px;
}

@media (min-width: 992px) {
    .landing-col-history {
        padding-right: 32px;
    }
    .landing-col-international {
        border-left: 1px solid #e2ded8;
        border-right: 1px solid #e2ded8;
        padding-left: 32px;
        padding-right: 32px;
    }
    .landing-col-quote {
        padding-left: 32px;
    }
}

/* Col 1: History & First Issue */
.landing-history-top-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.landing-history-thumb-wrap {
    flex: 0 0 135px;
    max-width: 140px;
    margin-bottom: 0;
}

.landing-thumb-1850 {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ded9ce;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.landing-thumb-1850:hover {
    transform: scale(1.02);
}

.landing-history-top-text {
    flex: 1;
}

.landing-history-p1 {
    margin-bottom: 14px;
}

.landing-history-bottom-text {
    width: 100%;
}

/* Common Typography across Col 1, Col 2 */
.landing-history-top-text p,
.landing-history-bottom-text p,
.landing-international-inner p {
    font-family: "Euclid Circular A", sans-serif;
    font-size: 1.05rem;
    line-height: 1.68;
    color: #3b4654;
}

.landing-history-top-text p em,
.landing-history-bottom-text p em,
.landing-international-inner p em {
    font-style: italic;
}

.landing-international-inner p:first-child {
    margin-bottom: 24px;
}

/* Editorial Link in Col 1 */
.landing-editorial-link-wrap {
    margin: 0 !important;
}

.landing-editorial-link {
    font-family: "Euclid Circular A", sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    color: #0f2b48 !important;
    text-decoration: underline !important;
    transition: color 0.2s ease;
    display: inline-block;
}

.landing-editorial-link:hover {
    color: #9f0038 !important;
}

.landing-link-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.landing-editorial-link:hover .landing-link-arrow {
    transform: translateX(4px);
}

/* Col 3: Pope Quote & Author */
.landing-col-quote-text {
    font-family: "Euclid Circular A", sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.08rem;
    line-height: 1.68;
    color: #0f2b48;
    margin-bottom: 24px;
    letter-spacing: 0;
    border: none;
    padding: 0;
}

.landing-col-quote-author {
    font-family: "Euclid Circular A", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f2b48;
    display: block;
}

@media (max-width: 480px) {
    .landing-history-top-row {
        flex-direction: column;
        gap: 14px;
    }
    .landing-history-thumb-wrap {
        max-width: 160px;
    }
}

/* ==========================================================================
   8. Responsive Adaptations (Mobile / Tablet)
   ========================================================================== */
@media (max-width: 991.98px) {
    .landing-promo-banner-wrapper {
        flex-direction: column;
    }
    .landing-promo-content-side {
        flex: 0 0 100%;
        max-width: 100%;
        clip-path: none;
        padding: 24px 20px;
    }
    .landing-promo-visual-side {
        flex: 0 0 100%;
        max-width: 100%;
        min-height: 180px;
    }
    .landing-services-column {
        border-left: none;
        border-top: 1px solid #edf1f5;
        padding-top: 24px;
        padding-left: 0 !important;
    }
    .landing-col-international {
        border-left: none;
        border-right: none;
        border-top: 1px solid #edf1f5;
        border-bottom: 1px solid #edf1f5;
        padding-top: 24px;
        padding-bottom: 24px;
        padding-left: 15px;
        padding-right: 15px;
        margin: 24px 0;
    }
    .landing-three-col {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 575.98px) {
    .landing-quick-actions-row {
        flex-direction: column;
    }
    .landing-action-card {
        border-right: none;
        border-bottom: 1px solid #e7ecf2;
    }
    .landing-action-card:last-child {
        border-bottom: none;
    }
    .landing-promo-sun-icon {
        display: none;
    }
    .landing-quote-box {
        padding-left: 0;
    }
    .landing-quote-symbol {
        position: static;
        display: block;
        margin-bottom: 8px;
    }
    .landing-history-top-row {
        gap: 15px;
    }
    .landing-history-thumb-wrap {
        flex: 0 0 110px;
        max-width: 110px;
    }
}
