/* ========================================
   PAGES CSS - Internal page styles
   ======================================== */

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-parchment) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23060606' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header__overline {
    display: block;
    font-family: var(--font-ui);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    margin-bottom: var(--space-4);
    position: relative;
}

.page-header__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
    font-weight: 400;
    color: var(--color-primary);
    position: relative;
}

.page-header__intro {
    font-size: var(--text-xl);
    color: var(--color-text-light);
    max-width: 600px;
    margin: var(--space-4) auto 0;
    position: relative;
}

/* ========================================
   STORY SECTION (Chi Siamo)
   ======================================== */
.story-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.story__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 400;
    color: var(--color-primary);
    margin: var(--space-4) 0 var(--space-8);
}

.story__body {
    font-size: var(--text-lg);
    line-height: 1.8;
}

.story__body p {
    margin-bottom: var(--space-6);
}

.story__body .lead {
    font-size: var(--text-xl);
    color: var(--color-text);
    font-weight: 500;
}

/* Sidebar info cards */
.story-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    position: sticky;
    top: 120px;
}

.info-card {
    background: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.info-card p {
    font-size: var(--text-base);
    color: var(--color-text-light);
    line-height: 1.6;
}

.info-card--highlight {
    background: var(--color-primary);
    color: var(--color-white);
}

.info-card--highlight h3,
.info-card--highlight p {
    color: var(--color-white);
}

.info-card__number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 600;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.info-card__label {
    display: block;
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: var(--space-3);
}

@media (max-width: 768px) {
    .story-layout {
        grid-template-columns: 1fr;
    }
    
    .story-sidebar {
        position: static;
    }
}

/* ========================================
   FOUNDERS GRID
   ======================================== */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.founder-card {
    background: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-align: center;
}

.founder-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.founder-card__image {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-4);
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-secondary);
}

.founder-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-gold);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-parchment) 100%);
}

.founder-card__name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-1);
}

.founder-card__role {
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gold);
    margin-bottom: var(--space-3);
}

.founder-card__bio {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
}

.founder-card--more {
    background: var(--color-primary);
    color: var(--color-white);
}

.founder-card--more .founder-card__name,
.founder-card--more .founder-card__bio {
    color: var(--color-white);
}

.founder-card--more .founder-card__placeholder {
    background: rgba(255,255,255,0.1);
    color: var(--color-gold);
}

/* ========================================
   MISSION SECTION
   ======================================== */
.mission-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.mission__quote {
    background: var(--color-parchment);
    padding: var(--space-8);
    border-left: 4px solid var(--color-gold);
    margin: var(--space-8) 0 var(--space-12);
    position: relative;
}

.mission__quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: var(--space-4);
    font-family: var(--font-display);
    font-size: 120px;
    color: var(--color-gold);
    opacity: 0.3;
    line-height: 1;
}

.mission__quote blockquote {
    margin: 0;
    position: relative;
    z-index: 1;
}

.mission__quote p {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-style: italic;
    line-height: 1.6;
    color: var(--color-primary);
}

/* Objectives list */
.objectives-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.objectives-list li {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.objective-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold);
    color: var(--color-white);
    font-family: var(--font-ui);
    font-weight: 600;
    border-radius: var(--radius-md);
}

.objective-content h4 {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-1);
}

.objective-content p {
    font-size: var(--text-base);
    color: var(--color-text-light);
}

/* Location card */
.location-card {
    background: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 120px;
}

.location-card h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.location-card__image {
    margin-bottom: var(--space-4);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.location-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-parchment) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-base);
    color: var(--color-text-muted);
    text-align: center;
    padding: var(--space-4);
}

.location-card address {
    font-style: normal;
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.location-card__note {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.5;
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-secondary);
}

@media (max-width: 768px) {
    .mission-layout {
        grid-template-columns: 1fr;
    }
    
    .location-card {
        position: static;
    }
    
    .objectives-list li {
        flex-direction: column;
        gap: var(--space-2);
    }
}

/* ========================================
   TIMELINE LINK SECTION
   ======================================== */
.section--timeline-link {
    background: var(--color-secondary-dark);
}

.timeline-link-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    background: var(--color-white);
    padding: var(--space-12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.timeline-link__content h2 {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 400;
    color: var(--color-primary);
    margin: var(--space-4) 0 var(--space-4);
}

.timeline-link__content p {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    margin-bottom: var(--space-6);
}

.timeline-preview-mini {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    position: relative;
}

.timeline-preview-mini::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-gold);
}

.timeline-point {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.timeline-point::before {
    content: '';
    width: 24px;
    height: 24px;
    background: var(--color-white);
    border: 3px solid var(--color-gold);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-point::after {
    content: attr(data-year);
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .timeline-link-block {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding: var(--space-6);
    }
}

/* ========================================
   SECTION-3D SHARED STYLES
   ======================================== */
.section-3d {
    padding: 6rem 0;
    position: relative;
    background: #fff;
}

.section-3d--manifesto {
    background: #fff;
}

.section-3d--cta {
    background: #060606;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
}

.section-3d--map {
    padding: 0;
    background: #fff;
}

.section-3d__header {
    margin-bottom: 3rem;
}

.section-3d__header--center {
    text-align: center;
}

.section-3d__eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #d4af37;
    margin-bottom: 0.75rem;
}

.section-3d--cta .section-3d__eyebrow {
    color: rgba(212,175,55,0.8);
}

.section-3d__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    color: #060606;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-3d--cta .section-3d__title {
    color: #fff;
}

/* ========================================
   CTA-3D SHARED STYLES
   ======================================== */
.cta-3d {
    max-width: 600px;
    margin: 0 auto;
}

.cta-3d__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.cta-3d__text {
    font-family: 'Lora', serif;
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.cta-3d__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.section-3d--cta .btn--primary {
    background: #d4af37;
    color: #060606;
}

.section-3d--cta .btn--primary:hover {
    background: #e8c547;
}

.section-3d--cta .btn--outline {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
}

.section-3d--cta .btn--outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* ========================================
   PARALLAX SHARED
   ======================================== */
.parallax-window {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-layer {
    position: absolute;
    inset: 0;
}

.parallax-layer--back {
    z-index: 1;
}

.parallax-layer--front {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    opacity: 0.35;
    filter: grayscale(30%);
}

.parallax-content {
    position: relative;
    z-index: 10;
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
}

.parallax-date {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #d4af37;
    margin-bottom: 0.75rem;
}

.parallax-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 1.25rem;
}

.parallax-text {
    font-family: 'Lora', serif;
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin: 0;
}

/* ========================================
   INTERNAL PAGE FOOTER (shared structure)
   ======================================== */
.footer {
    background: #060606;
    color: rgba(255,255,255,0.7);
    padding: 3.5rem 0 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer__brand {
    max-width: 400px;
}

.footer__tagline {
    font-family: 'Crimson Text', serif;
    font-size: 1.0625rem;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.footer__address {
    font-style: normal;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.4);
}

.footer__nav {
    padding-top: 0.25rem;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__list a {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__list a:hover {
    color: #d4af37;
}

.footer__bottom {
    text-align: center;
    padding-top: 1.5rem;
}

.footer__bottom p {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

/* ========================================
   TEXT PAGES (page.php) — Privacy, Cookie Policy
   ======================================== */
.page-header--compact {
    padding: 140px 0 56px;
}

.page-header__crumbs {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.page-header__crumbs a {
    color: var(--color-gold);
    text-decoration: none;
}

.page-header--compact .page-header__title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.prose {
    max-width: 760px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.prose > * + * {
    margin-top: 1.1em;
}

.prose h2 {
    margin-top: 2.5em;
    padding-top: 1.25em;
    border-top: 1px solid var(--color-secondary-dark);
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-primary);
}

.prose h2:first-child,
.prose .legal-meta + h2 {
    margin-top: 2em;
}

.prose h3 {
    margin-top: 1.75em;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

.prose a {
    color: #8a6d12;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: var(--color-primary);
}

.prose ul {
    padding-left: 1.25rem;
}

.prose li + li {
    margin-top: 0.4em;
}

.prose li::marker {
    color: var(--color-gold);
}

.prose strong {
    color: var(--color-text);
}

.prose code {
    padding: 0.1em 0.4em;
    border-radius: 3px;
    background: var(--color-secondary);
    font-size: 0.85em;
    word-break: break-word;
}

.prose .legal-meta {
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--color-gold);
    background: var(--color-secondary);
    font-family: var(--font-ui);
    font-size: 0.875rem;
    line-height: 1.6;
}

.prose table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    line-height: 1.55;
}

.prose th,
.prose td {
    min-width: 140px;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-secondary-dark);
    text-align: left;
    vertical-align: top;
}

.prose th {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--color-secondary);
}

.prose .btn {
    text-decoration: none;
}

@media (max-width: 768px) {
    .page-header--compact {
        padding: 120px 0 40px;
    }
}
