/* STORIA PAGE - specifico */

/* PAGE HERO */
.page-hero {
    height: 70vh;
    height: 70svh;
    min-height: 500px; width: 100%;
    background: url('../../foto/storia/header.jpg') no-repeat center center/cover;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,0.4);
}
.page-hero-content {
    position: relative; z-index: 2; text-align: center;
    padding: 0 20px;
}
.page-hero-content .hero-subtitle {
    font-size: clamp(0.75rem, 0.3vw + 0.65rem, 0.9rem);
    letter-spacing: 6px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 15px; display: block;
}
.page-hero h1, .page-hero h2 {
    font-family: var(--font-title);
    font-size: var(--fs-page-h1);
    color: #fff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    line-height: 1.1;
}

/* INTRO */
.intro-section {
    max-width: 900px; margin: 0 auto;
    padding: 100px 40px; text-align: center;
}
.intro-section h2 {
    font-family: var(--font-title);
    font-size: var(--fs-h2);
    color: var(--gold); margin-bottom: 30px;
}
.intro-section p {
    font-size: var(--fs-body); color: var(--text-muted);
    line-height: 2; max-width: 750px; margin: 0 auto;
}
.gold-line { width: 60px; height: 2px; background: var(--gold); margin: 40px auto; }

/* TIMELINE */
.timeline-section {
    padding: 80px 40px; max-width: 1200px; margin: 0 auto;
}
.timeline-section h2 {
    font-family: var(--font-title);
    font-size: var(--fs-h2);
    text-align: center; color: var(--gold); margin-bottom: 60px;
}
.timeline { position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
    transform: translateX(-50%);
    opacity: 0.5;
}
.timeline-item {
    display: flex; align-items: center;
    margin-bottom: 90px; position: relative;
}
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content { flex: 1; padding: 0 40px; }
.timeline-item:nth-child(odd) .timeline-content { text-align: right; padding-right: 110px; }
.timeline-item:nth-child(even) .timeline-content { text-align: left; padding-left: 110px; }

.timeline-year {
    font-family: var(--font-title); font-size: 1.2rem;
    color: var(--gold); letter-spacing: 3px;
    margin-bottom: 10px; display: block;
}
.timeline-content h3 {
    font-family: var(--font-title);
    font-size: clamp(1.4rem, 1vw + 0.8rem, 1.8rem);
    margin-bottom: 15px; color: #fff;
}
.timeline-content p {
    color: #aaa; line-height: 1.8;
    font-size: var(--fs-body);
}

.timeline-img { flex: 1; height: 350px; overflow: hidden; }
.timeline-img img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(20%);
    transition: 0.5s;
}
.timeline-img img:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
}
.timeline-dot {
    position: absolute; left: 50%;
    transform: translateX(-50%);
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--gold); border: 2px solid var(--dark);
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(197,160,89,0.12), 0 0 8px rgba(197,160,89,0.45);
}
.timeline-dot::before {
    content: ''; position: absolute; inset: -3px; border-radius: 50%;
    border: 1px solid rgba(197,160,89,0.25);
    animation: pulseDot 2.5s ease-in-out infinite;
}
@keyframes pulseDot {
    0%,100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.15); opacity: 0; }
}

/* FULL BREAK */
.full-break {
    height: 60vh; width: 100%;
    background: url('../../foto/storia/panoramica.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
}
.full-break::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,0.5);
}
.full-break-content {
    position: relative; z-index: 2; height: 100%;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 0 20px;
}
.full-break-content blockquote {
    font-family: var(--font-title);
    font-size: clamp(1.2rem, 1.2vw + 0.8rem, 2rem);
    color: #fff; font-style: italic;
    max-width: 700px; line-height: 1.5;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}
.full-break-content { display: flex; flex-direction: column; align-items: center; }
.stone-ornament { margin-bottom: 30px; opacity: 0; animation: fadeIn 1s ease 0.5s forwards; }

/* VALUES */
.values-section {
    padding: 100px 40px; max-width: 1200px; margin: 0 auto;
}
.values-section h2 {
    font-family: var(--font-title);
    font-size: var(--fs-h2);
    text-align: center; color: var(--gold); margin-bottom: 60px;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}
.value-card {
    text-align: center; padding: 40px 30px;
    border: 1px solid #222; transition: 0.4s;
}
.value-card:hover {
    border-color: var(--gold); transform: translateY(-5px);
}
.value-icon {
    font-size: 2rem; color: var(--gold);
    margin-bottom: 20px;
}
.value-card h3 {
    font-family: var(--font-title);
    font-size: 1.2rem; margin-bottom: 15px; color: #fff;
}
.value-card p {
    color: #999; line-height: 1.7; font-size: 0.95rem;
}

/* EVENTS */
.events-section {
    padding: 100px 40px; max-width: 1100px; margin: 0 auto;
}
.events-section h2 {
    font-family: var(--font-title);
    font-size: var(--fs-h2);
    text-align: center; color: var(--gold); margin-bottom: 20px;
}
.events-subtitle {
    text-align: center; color: #888;
    font-size: 1.05rem; margin-bottom: 60px;
    max-width: 600px; margin-left: auto; margin-right: auto;
}
.events-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;
}
.event-card {
    border: 1px solid #222; padding: 35px 30px;
    position: relative; transition: 0.4s; overflow: hidden;
}
.event-card:hover {
    border-color: var(--gold); transform: translateY(-3px);
}
.event-date {
    font-family: var(--font-title); font-size: 0.85rem;
    color: var(--gold); letter-spacing: 3px;
    text-transform: uppercase; margin-bottom: 12px; display: block;
}
.event-card h3 {
    font-family: var(--font-title);
    font-size: 1.3rem; color: #fff; margin-bottom: 12px;
}
.event-card p { color: #999; line-height: 1.7; font-size: 0.9rem; }
.event-tag {
    display: inline-block; margin-top: 15px;
    font-size: 0.7rem; letter-spacing: 2px;
    text-transform: uppercase; color: var(--gold);
    border: 1px solid rgba(197,160,89,0.3); padding: 4px 12px;
}
.events-note {
    text-align: center; margin-top: 50px;
    color: #666; font-size: 0.9rem;
}
.events-note a { color: var(--gold); }

/* CTA */
.cta-section {
    padding: 100px 40px; text-align: center;
    background: var(--light-dark);
    border-top: 1px solid #222; border-bottom: 1px solid #222;
}
.cta-section h2 {
    font-family: var(--font-title);
    font-size: var(--fs-h2); color: #fff; margin-bottom: 20px;
}
.cta-section p {
    color: #999; font-size: var(--fs-body);
    margin-bottom: 40px; max-width: 600px;
    margin-left: auto; margin-right: auto;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .timeline-item:nth-child(odd) .timeline-content { padding-right: 90px; }
    .timeline-item:nth-child(even) .timeline-content { padding-left: 90px; }
}
@media (max-width: 1024px) {
    .timeline-item:nth-child(odd) .timeline-content { padding-right: 70px; }
    .timeline-item:nth-child(even) .timeline-content { padding-left: 70px; }
}

@media (max-width: 900px) {
    .page-hero { min-height: 400px; }
    .intro-section { padding: 60px 20px; }
    .timeline { padding-left: 10px; }
    .timeline::before { left: 22px; }
    .timeline-item { flex-direction: column !important; align-items: flex-start; }
    .timeline-item .timeline-content {
        text-align: left !important; padding: 20px 0 20px 76px;
    }
    .timeline-dot { left: 22px; }
    .timeline-img { height: 250px; width: calc(100% - 76px); margin-left: 76px; margin-top: 10px; }
    .values-grid { grid-template-columns: 1fr; gap: 30px; }
    .events-grid { grid-template-columns: 1fr; }
    .values-section, .timeline-section, .events-section { padding: 60px 20px; }
}

@media (max-width: 480px) {
    .timeline::before { left: 20px; }
    .timeline-dot { left: 20px; }
    .timeline-item .timeline-content { padding: 20px 0 20px 68px; }
    .timeline-img { width: calc(100% - 68px); margin-left: 68px; }
}
