/* ================================================================
   SAN NICODEMO ABATE
   STORIE E TRADIZIONI
================================================================ */

.stories-page {
    width: min(94%, 1280px);
    margin: 34px auto 90px;
}


/* ================================================================
   ARCHIVE HERO
================================================================ */

.stories-hero {
    position: relative;
    overflow: hidden;

    padding:
        clamp(54px, 8vw, 96px)
        clamp(30px, 7vw, 86px);

    border: 1px solid rgba(183, 141, 34, 0.24);
    border-radius: 32px;

    background:
        radial-gradient(
            circle at 88% 16%,
            rgba(212, 175, 55, 0.16),
            transparent 30%
        ),
        linear-gradient(
            125deg,
            #0c2033 0%,
            #122f4d 58%,
            #1a3f65 100%
        );

    box-shadow:
        0 28px 70px rgba(13, 27, 42, 0.16);
}

.stories-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.04),
            rgba(0, 0, 0, 0.08)
        );
}

.stories-hero > * {
    position: relative;
    z-index: 2;
}

.stories-hero .eyebrow,
.story-article-header .eyebrow,
.stories-intro-panel .eyebrow,
.story-card .eyebrow,
.story-language-heading .eyebrow {
    margin: 0 0 14px;
    color: #b18117;
    font-size: 0.70rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.stories-hero .eyebrow {
    color: #f0c75a;
    margin-bottom: 18px;
}

.stories-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.stories-hero-lead {
    max-width: 760px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.8;
}


/* ================================================================
   ARCHIVE INTRO
================================================================ */

.stories-intro-panel {
    max-width: 1000px;
    margin: 38px auto 0;
    padding: clamp(30px, 5vw, 48px);
    text-align: center;

    border: 1px solid rgba(183, 141, 34, 0.18);
    border-radius: 26px;

    background:
        linear-gradient(
            135deg,
            #fffdf9,
            #f8f0df
        );

    box-shadow:
        0 18px 44px rgba(13, 27, 42, 0.07);
}

.stories-intro-panel h2 {
    max-width: 780px;
    margin: 0 auto 18px;
    color: #0d1b2a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.stories-intro-panel > p:not(.eyebrow) {
    max-width: 790px;
    margin: 0 auto;
    color: #53606c;
    font-size: 1rem;
    line-height: 1.8;
}


/* ================================================================
   STORY ARCHIVE CARDS
================================================================ */

.stories-grid {
    max-width: 1100px;
    margin: 34px auto 0;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.story-card {
    position: relative;
    overflow: hidden;

    display: grid;
    grid-template-rows: auto 1fr;

    min-height: 100%;

    border: 1px solid rgba(183, 141, 34, 0.20);
    border-radius: 28px;

    background: #fffdf9;

    box-shadow:
        0 20px 50px rgba(13, 27, 42, 0.09);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.story-card:hover {
    transform: translateY(-4px);
    border-color: rgba(183, 141, 34, 0.42);
    box-shadow:
        0 28px 64px rgba(13, 27, 42, 0.13);
}

.story-card-featured {
    grid-column: 1 / -1;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: none;
}

.story-card-media {
    min-height: 360px;
    background: #e8e0d3;
}

.story-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.story-card-place {
    min-height: 220px;

    display: grid;
    place-content: center;
    gap: 8px;

    text-align: center;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 65% 20%,
            rgba(231, 194, 93, 0.24),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #0d2236,
            #214b70
        );
}

.story-card-place-mammola {
    background:
        radial-gradient(
            circle at 30% 18%,
            rgba(231, 194, 93, 0.22),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #173149,
            #315d72
        );
}

.story-card-place span {
    width: 62px;
    height: 62px;
    margin: 0 auto;

    display: grid;
    place-items: center;

    border: 1px solid rgba(244, 205, 93, 0.55);
    border-radius: 50%;

    color: #f3cc63;

    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.story-card-place strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;
}

.story-card-body {
    position: relative;
    padding: 34px 34px 38px;
}

.story-card-featured .story-card-body {
    align-self: center;
    padding: clamp(36px, 6vw, 62px);
}

.story-card-number {
    margin: 0 0 22px;
    color: rgba(13, 27, 42, 0.34);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.story-card h2 {
    margin: 0 0 14px;
    color: #0d1b2a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.story-card-body > p:not(.eyebrow):not(.story-card-number) {
    margin: 0 0 22px;
    color: #56626e;
    line-height: 1.75;
}

.story-card-language {
    display: inline-flex;
    margin: 0 0 20px;
    padding: 7px 11px;

    border: 1px solid rgba(183, 141, 34, 0.24);
    border-radius: 999px;

    color: #8c6b20;
    background: #fbf5e9;

    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.05em;
}

.story-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #0d1b2a;

    font-size: 0.90rem;
    font-weight: 850;
    text-decoration: none;
}

.story-card-link span {
    color: #b78922;
    transition: transform 160ms ease;
}

.story-card-link:hover span,
.story-card-link:focus-visible span {
    transform: translateX(4px);
}


/* ================================================================
   BACK LINK
================================================================ */

.story-back-link {
    display: inline-flex;
    align-items: center;

    margin: 0 0 18px;

    color: #705a28;

    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.story-back-link:hover,
.story-back-link:focus-visible {
    color: #0d1b2a;
}


/* ================================================================
   INDIVIDUAL ARTICLE
================================================================ */

.story-article {
    position: relative;

    max-width: 1050px;
    margin: 0 auto;

    overflow: hidden;

    border: 1px solid rgba(183, 141, 34, 0.20);
    border-radius: 30px;

    background: #fffdf9;

    box-shadow:
        0 24px 60px rgba(13, 27, 42, 0.09);
}

.story-article-header {
    padding:
        clamp(40px, 6vw, 70px)
        clamp(28px, 7vw, 78px)
        36px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            #f8f0df 0%,
            #fffdf9 100%
        );
}

.story-article-header h1,
.story-article-header h2 {
    margin: 0;
    color: #0d1b2a;

    font-family: Georgia, "Times New Roman", serif;

    font-size:
        clamp(
            2.6rem,
            5vw,
            4.8rem
        );

    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1;
}

.story-subtitle {
    margin: 14px 0 0;

    color: #87671e;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-style: italic;
}


/* ================================================================
   FEATURED IMAGE
================================================================ */

.story-featured-image {
    width: min(88%, 760px);
    margin: 0 auto 38px;
}

.story-featured-image img {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 22px;

    box-shadow:
        0 18px 40px rgba(13, 27, 42, 0.12);
}


/* ================================================================
   PLACE HERO
================================================================ */

.story-place-hero {
    width: min(86%, 760px);
    margin: 0 auto 24px;
    min-height: 240px;

    display: grid;
    place-content: center;

    text-align: center;

    border-radius: 24px;

    color: #ffffff;

    background:
        radial-gradient(
            circle at 70% 20%,
            rgba(225, 190, 88, 0.24),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0d2236,
            #28506f
        );

    box-shadow:
        0 18px 40px rgba(13, 27, 42, 0.12);
}

.story-place-hero-mammola {
    background:
        radial-gradient(
            circle at 28% 18%,
            rgba(225, 190, 88, 0.24),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #132b40,
            #376171
        );
}

.story-place-hero span {
    color: #efc85e;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.story-place-hero strong {
    margin-top: 6px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 5.6rem);
    font-weight: 500;
    line-height: 1;
}

.story-place-hero small {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
}


/* ================================================================
   STORY CONTENT
================================================================ */

.story-content {
    max-width: 780px;
    margin: 0 auto;

    padding:
        38px
        clamp(26px, 6vw, 64px)
        54px;
}

.story-content p {
    margin: 0 0 24px;

    color: #45515d;

    font-size: 1.03rem;
    line-height: 1.9;
}

.story-content .story-intro {
    color: #263748;

    font-family: Georgia, "Times New Roman", serif;

    font-size:
        clamp(
            1.25rem,
            2vw,
            1.55rem
        );

    line-height: 1.65;
}

.story-content h2,
.story-content h3 {
    position: relative;

    margin: 48px 0 18px;
    padding-top: 20px;

    color: #0d1b2a;

    font-family: Georgia, "Times New Roman", serif;

    font-size:
        clamp(
            1.6rem,
            3vw,
            2.25rem
        );

    font-weight: 500;
    letter-spacing: -0.025em;
}

.story-content h2::before,
.story-content h3::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 54px;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            #b78922,
            #e4c269
        );
}

.story-content blockquote {
    position: relative;

    margin: 44px 0;

    padding:
        30px
        34px
        30px
        42px;

    border-left: 4px solid #c69a2b;
    border-radius: 0 20px 20px 0;

    background:
        linear-gradient(
            135deg,
            #f7eedc,
            #fffaf0
        );

    color: #273747;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-style: italic;
    line-height: 1.65;
}

.story-content blockquote::before {
    content: "“";

    position: absolute;
    top: 4px;
    left: 12px;

    color: rgba(183, 137, 34, 0.26);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 4.5rem;
    line-height: 1;
}


/* ================================================================
   HISTORICAL NOTE
================================================================ */

.story-note {
    margin-top: 42px;
    padding: 24px 26px;

    border: 1px solid rgba(183, 141, 34, 0.22);
    border-radius: 18px;

    background: #faf4e8;
}

.story-note strong {
    display: block;
    margin-bottom: 8px;

    color: #815f13;
    font-size: 0.80rem;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.story-note p {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.75;
}


/* ================================================================
   BILINGUAL MAMMOLA PAGE
================================================================ */

.story-language-section {
    padding-top: 18px;
}

.story-language-section-english {
    background:
        linear-gradient(
            180deg,
            rgba(247, 240, 223, 0.38),
            transparent 180px
        );
}

.story-language-heading {
    width: min(86%, 780px);
    margin: 22px auto 0;

    display: flex;
    align-items: center;
    gap: 18px;
}

.story-language-heading > span {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(183, 141, 34, 0.30);
    border-radius: 50%;

    color: #9b7317;
    background: #fffaf0;

    font-size: 0.76rem;
    font-weight: 900;
}

.story-language-heading .eyebrow {
    margin-bottom: 4px;
}

.story-language-heading h2 {
    margin: 0;

    color: #0d1b2a;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 500;
}

.story-bilingual-divider {
    width: min(84%, 760px);
    margin: 16px auto 36px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;

    color: #94711f;
}

.story-bilingual-divider span {
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(183, 141, 34, 0.40)
        );
}

.story-bilingual-divider span:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(183, 141, 34, 0.40),
            transparent
        );
}

.story-bilingual-divider strong {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-style: italic;
}


/* ================================================================
   LOCATIONS
================================================================ */

.story-locations {
    padding: 24px 30px 30px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;

    border-top:
        1px solid rgba(183, 141, 34, 0.16);

    background: #f9f3e7;
}

.story-locations span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 36px;

    padding: 7px 15px;

    border:
        1px solid rgba(183, 141, 34, 0.25);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.72);

    color: #354354;

    font-size: 0.82rem;
    font-weight: 750;
}

.story-locations span::before {
    content: "•";
    margin-right: 7px;
    color: #b58924;
}


/* ================================================================
   TABLET
================================================================ */

@media (max-width: 900px) {

    .stories-page {
        width: calc(100% - 28px);
    }

    .stories-hero,
    .story-article,
    .story-card {
        border-radius: 26px;
    }

    .story-card-featured {
        grid-template-columns: 1fr;
    }

    .story-card-media {
        min-height: 320px;
        max-height: 520px;
    }

}


/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 760px) {

    .stories-page {
        width: calc(100% - 24px);
        margin: 18px auto 70px;
    }

    .stories-hero {
        padding: 48px 24px;
        border-radius: 22px;
    }

    .stories-hero h1 {
        font-size: clamp(2.6rem, 13vw, 4rem);
    }

    .stories-hero-lead {
        line-height: 1.7;
    }

    .stories-intro-panel {
        margin-top: 24px;
        padding: 28px 22px;
        border-radius: 22px;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 24px;
    }

    .story-card-featured {
        grid-column: auto;
    }

    .story-card,
    .story-article {
        border-radius: 22px;
    }

    .story-card-media {
        min-height: 260px;
    }

    .story-card-body,
    .story-card-featured .story-card-body {
        padding: 28px 24px 32px;
    }

    .story-article-header {
        padding: 38px 22px 30px;
    }

    .story-article-header h1,
    .story-article-header h2 {
        font-size: clamp(2.3rem, 11vw, 3.4rem);
    }

    .story-featured-image,
    .story-place-hero {
        width: calc(100% - 36px);
    }

    .story-place-hero {
        min-height: 190px;
        border-radius: 20px;
    }

    .story-content {
        padding: 30px 22px 42px;
    }

    .story-content p {
        font-size: 0.98rem;
        line-height: 1.8;
    }

    .story-content h2,
    .story-content h3 {
        margin-top: 40px;
    }

    .story-content blockquote {
        margin: 34px 0;
        padding: 26px 22px 26px 30px;
        font-size: 1.2rem;
    }

    .story-language-heading {
        width: calc(100% - 44px);
    }

    .story-bilingual-divider {
        width: calc(100% - 44px);
    }

    .story-locations {
        padding: 20px 18px 24px;
    }

}


/* ================================================================
   VERY SMALL PHONES
================================================================ */

@media (max-width: 420px) {

    .stories-hero {
        padding: 40px 20px;
    }

    .stories-hero h1 {
        font-size: 2.55rem;
    }

    .story-article-header h1,
    .story-article-header h2 {
        font-size: 2.35rem;
    }

    .story-content {
        padding: 28px 18px 38px;
    }

    .story-card-body,
    .story-card-featured .story-card-body {
        padding: 25px 20px 28px;
    }

}

/* ================================================================
   COMPACT + STATIC CIRÒ / MAMMOLA STORY CARD IMAGES
================================================================ */

.stories-grid > .story-card:not(.story-card-featured) .story-card-media {
    height: 330px;
    min-height: 330px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #f7f2e8;
}


/* Keep the complete portrait visible */

.stories-grid > .story-card:not(.story-card-featured) .story-card-media img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transform: none !important;
    transition: none !important;
}


/* NO movement when hovering */

.story-card:hover {
    transform: none;
}


.story-card-media:hover img,
.story-card-media:focus img {
    transform: none !important;
}


/* Mobile */

@media (max-width: 760px) {

    .stories-grid > .story-card:not(.story-card-featured) .story-card-media {
        height: 280px;
        min-height: 280px;
    }

}

/* ================================================================
   STORIES ARCHIVE
   ALL THREE CARDS — SAME SIZE + SAME STYLE
================================================================ */

.stories-grid {
    max-width: 1180px;
    margin: 34px auto 0;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}


/* ------------------------------------------------
   SAME CARD STRUCTURE
------------------------------------------------ */

.stories-grid > .story-card,
.stories-grid > .story-card.story-card-featured {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 310px 1fr;

    min-width: 0;
    min-height: 590px;

    grid-column: auto;

    overflow: hidden;

    border: 1px solid rgba(183, 141, 34, 0.20);
    border-radius: 26px;

    background: #fffdf9;

    box-shadow:
        0 20px 50px rgba(13, 27, 42, 0.09);

    transform: none !important;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}


/* ------------------------------------------------
   SAME IMAGE AREA
------------------------------------------------ */

.stories-grid > .story-card .story-card-media,
.stories-grid > .story-card.story-card-featured .story-card-media {
    display: block;

    width: 100%;
    height: 310px;
    min-height: 310px;

    overflow: hidden;

    background: #eee9df;
}


/* ------------------------------------------------
   SAME IMAGE SIZE
------------------------------------------------ */

.stories-grid > .story-card .story-card-media img,
.stories-grid > .story-card.story-card-featured .story-card-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: none !important;
    transition: none !important;
}


/* San Nilo + San Nicodemo */

.stories-grid > .story-card:nth-child(1) .story-card-media img {
    object-position: center center;
}


/* Cirò */

.stories-grid > .story-card:nth-child(2) .story-card-media img {
    object-position: center 23%;
}


/* Mammola */

.stories-grid > .story-card:nth-child(3) .story-card-media img {
    object-position: center 23%;
}


/* ------------------------------------------------
   SAME CONTENT AREA
------------------------------------------------ */

.stories-grid > .story-card .story-card-body,
.stories-grid > .story-card.story-card-featured .story-card-body {
    display: flex;
    flex-direction: column;

    align-self: stretch;

    padding: 30px 28px 34px;
}


/* ------------------------------------------------
   SAME NUMBER
------------------------------------------------ */

.stories-grid .story-card-number {
    margin: 0 0 18px;

    color: rgba(13, 27, 42, 0.38);

    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}


/* ------------------------------------------------
   SAME CATEGORY
------------------------------------------------ */

.stories-grid .story-card .eyebrow {
    min-height: 18px;

    margin: 0 0 12px;

    color: #a47712;

    font-size: 0.68rem;
    font-weight: 850;

    letter-spacing: 0.13em;
}


/* ------------------------------------------------
   SAME TITLE
------------------------------------------------ */

.stories-grid .story-card h2,
.stories-grid .story-card.story-card-featured h2 {
    margin: 0 0 14px;

    color: #0d1b2a;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(1.8rem, 2.2vw, 2.35rem);

    font-weight: 500;

    letter-spacing: -0.035em;
    line-height: 1.08;
}


/* ------------------------------------------------
   SAME DESCRIPTION
------------------------------------------------ */

.stories-grid .story-card-body > p:not(.eyebrow):not(.story-card-number) {
    margin: 0 0 24px;

    color: #56626e;

    font-size: 0.96rem;
    line-height: 1.7;
}


/* ------------------------------------------------
   KEEP READ LINK AT BOTTOM
------------------------------------------------ */

.stories-grid .story-card-link {
    margin-top: auto;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #0d1b2a;

    font-size: 0.88rem;
    font-weight: 850;

    text-decoration: none;
}


/* ------------------------------------------------
   NO CARD MOVEMENT / NO IMAGE ZOOM
------------------------------------------------ */

.stories-grid > .story-card:hover,
.stories-grid > .story-card:focus-within {
    transform: none !important;

    border-color: rgba(183, 141, 34, 0.34);

    box-shadow:
        0 20px 50px rgba(13, 27, 42, 0.09);
}


.stories-grid .story-card-media:hover img,
.stories-grid .story-card-media:focus img {
    transform: none !important;
}


/* ================================================================
   TABLET
================================================================ */

@media (max-width: 1050px) {

    .stories-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 760px) {

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    .stories-grid > .story-card,
    .stories-grid > .story-card.story-card-featured {
        grid-template-rows: 280px auto;

        min-height: 0;
    }


    .stories-grid > .story-card .story-card-media,
    .stories-grid > .story-card.story-card-featured .story-card-media {
        height: 280px;
        min-height: 280px;
    }


    .stories-grid > .story-card .story-card-body,
    .stories-grid > .story-card.story-card-featured .story-card-body {
        padding: 26px 22px 30px;
    }

}
