/* =========================================================
   PLATFORMA — Modern Minimal Template
   Premium, image-led, typographic, whitespace-rich
   ========================================================= */

/* ─── 1. TOKENS ─────────────────────────────────────────── */

:root {
    --mm-bg:           #FAFAF8;
    --mm-surface:      #FFFFFF;
    --mm-text:         #1A1A1A;
    --mm-text-soft:    #4A4A4A;
    --mm-text-muted:   #6B6B6B;
    --mm-text-faint:   #9A9A9A;
    --mm-accent:       #2C2C2C;
    --mm-accent-hover: #000000;
    --mm-border:       rgba(0, 0, 0, 0.08);
    --mm-border-mid:   rgba(0, 0, 0, 0.12);
    --mm-radius:       0.25rem;
    --mm-radius-lg:    0.375rem;
    --mm-shadow:       0 1px 2px rgba(0, 0, 0, 0.04);
    --mm-container:    960px;
    --mm-section-gap:  6rem;
    --mm-font:         system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ─── 2. PAGE SHELL ─────────────────────────────────────── */

.mm {
    background: var(--mm-bg);
    color: var(--mm-text);
    font-family: var(--mm-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mm-container {
    max-width: var(--mm-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.platforma-site-main:has(> .mm) {
    max-width: none;
    padding: 0;
}

/* ─── 3. PREVIEW BANNER ────────────────────────────────── */

.mm-preview-banner {
    background: var(--mm-accent);
    color: #fff;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.mm-preview-banner-link {
    color: rgba(255, 255, 255, 0.7);
    margin-left: 1rem;
    text-decoration: underline;
}

.mm-preview-banner-link:hover { color: #fff; }

/* ─── 4. HERO (image-led, full-width) ──────────────────── */

.mm-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #1A1A1A;
}

.mm-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.mm-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    padding: 4rem 0 3.5rem;
}

.mm-hero-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mm-hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #FFFFFF;
    margin: 0;
    max-width: 640px;
}

.mm-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 480px;
    margin: 0;
    font-weight: 400;
}

.mm-hero-actions {
    padding-top: 0.5rem;
}

@media (max-width: 768px) {
    .mm-hero { min-height: 400px; }
    .mm-hero-overlay { padding: 3rem 0 2.5rem; }
    .mm-hero-title { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .mm-hero { min-height: 340px; }
    .mm-hero-title { font-size: 1.8rem; }
    .mm-hero-subtitle { font-size: 0.95rem; }
}

/* ─── 4b. SUB-PAGE HERO + CTA (Slice 4.9b) ──────────────
   Editorial magazine variant. Generous whitespace, tiny uppercase
   eyebrow, large sans title, optional image sits BELOW the text
   stack (not behind it) so typography doesn't compete with the
   photo. Flat graphite CTA band — no gradient, no shadow. */

.mm-hero--subpage {
    min-height: 0;
    padding: 5.5rem 0 3.5rem;
    background: var(--mm-bg);
    display: block;
}

.mm-hero-content--subpage {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: left;
}

.mm-hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mm-text-muted);
    margin: 0;
}

.mm-hero-content--subpage .mm-hero-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: var(--mm-text);
    margin: 0;
}

.mm-hero-rule {
    display: block;
    width: 56px;
    height: 2px;
    background: var(--mm-text);
    margin: 0.25rem 0 0.5rem;
}

.mm-hero-content--subpage .mm-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--mm-text-soft);
    max-width: 560px;
    margin: 0;
}

.mm-hero-figure {
    margin: 3rem auto 0;
    max-width: var(--mm-container);
    padding: 0 2rem;
}

.mm-hero-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--mm-radius);
    box-shadow: var(--mm-shadow);
}

.mm-cta-section {
    padding: 4rem 2rem;
    background: var(--mm-bg);
}

.mm-cta-band--subpage {
    max-width: var(--mm-container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 2.5rem 2.5rem;
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
}

.mm-cta-text-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
}

.mm-cta-title {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--mm-text);
    margin: 0;
}

.mm-cta-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--mm-text-soft);
    margin: 0;
}

@media (max-width: 768px) {
    .mm-hero--subpage { padding: 3.5rem 0 2.5rem; }
    .mm-hero-content--subpage .mm-hero-title { font-size: 2.1rem; }
    .mm-hero-figure { margin-top: 2rem; }
    .mm-cta-band--subpage {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.75rem;
        gap: 1.25rem;
    }
}

/* ─── 5. SECTIONS (shared) ─────────────────────────────── */

.mm-section {
    padding: var(--mm-section-gap) 0;
}

.mm-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mm-text-muted);
    margin: 0 0 2.5rem;
}

.mm-section-more {
    margin-top: 2rem;
}

.mm-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mm-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--mm-border-mid);
    padding-bottom: 0.15rem;
    transition: border-color 0.15s ease;
}

.mm-link:hover {
    border-color: var(--mm-accent);
}

/* ─── 6. INTRO ─────────────────────────────────────────── */

.mm-section--intro {
    padding: 5rem 0 4rem;
    text-align: center;
}

.mm-intro {
    max-width: 600px;
    margin: 0 auto;
}

.mm-intro-text {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--mm-text-soft);
    margin: 0;
}

/* ─── 7. NOTICES (typographic list) ────────────────────── */

.mm-section--notices {
    border-top: 1px solid var(--mm-border);
}

.mm-notices {
    display: flex;
    flex-direction: column;
}

.mm-notice {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--mm-border);
}

.mm-notice:first-child {
    padding-top: 0;
}

.mm-notice-date {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--mm-text-faint);
    letter-spacing: 0.03em;
    margin-bottom: 0.4rem;
}

.mm-notice-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--mm-text);
    margin: 0 0 0.4rem;
    line-height: 1.35;
}

.mm-notice-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.mm-notice-link:hover {
    color: var(--mm-text-muted);
}

.mm-notice-preview {
    font-size: 0.92rem;
    color: var(--mm-text-soft);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── 8. FACILITIES (image grid) ───────────────────────── */

.mm-section--facilities {
    border-top: 1px solid var(--mm-border);
}

.mm-facilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mm-facility {
    overflow: hidden;
}

.mm-facility-img {
    aspect-ratio: 4 / 3;
    background: #E8E8E6;
    overflow: hidden;
    border-radius: var(--mm-radius-lg);
}

.mm-facility-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mm-facility:hover .mm-facility-img img {
    transform: scale(1.03);
}

.mm-facility-info {
    padding: 1rem 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.mm-facility-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mm-text);
    margin: 0;
}

@media (max-width: 768px) {
    .mm-facilities { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .mm-facilities { grid-template-columns: 1fr; }
}

/* ─── 9. EVENTS (minimal list) ─────────────────────────── */

.mm-section--events {
    border-top: 1px solid var(--mm-border);
}

.mm-events {
    display: flex;
    flex-direction: column;
}

.mm-event {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--mm-border);
}

.mm-event:first-child {
    padding-top: 0;
}

.mm-event-date {
    display: flex;
    flex-direction: column;
    min-width: 7rem;
    flex-shrink: 0;
}

.mm-event-day {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mm-text);
}

.mm-event-time {
    font-size: 0.8rem;
    color: var(--mm-text-faint);
    margin-top: 0.15rem;
}

.mm-event-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mm-event-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--mm-text);
    margin: 0;
}

.mm-event-location {
    font-size: 0.85rem;
    color: var(--mm-text-muted);
}

@media (max-width: 480px) {
    .mm-event { flex-direction: column; gap: 0.3rem; }
    .mm-event-date { flex-direction: row; gap: 0.75rem; min-width: auto; }
}

/* ─── 10. CTA BAND ─────────────────────────────────────── */

.mm-section--cta {
    border-top: 1px solid var(--mm-border);
    padding: 5rem 0;
}

.mm-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.mm-cta-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--mm-text);
    margin: 0;
    line-height: 1.35;
}

@media (max-width: 640px) {
    .mm-cta-band { flex-direction: column; text-align: center; }
    .mm-cta-text { font-size: 1.1rem; }
}

/* ─── 11. BUTTONS ───────────────────────────────────────── */

.mm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border-radius: var(--mm-radius);
    border: 1px solid transparent;
    font-family: var(--mm-font);
    font-size: 0.88rem;
    font-weight: 550;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    line-height: 1;
}

.mm-btn--primary {
    background: var(--mm-accent);
    color: #FFFFFF;
    border-color: var(--mm-accent);
}

.mm-btn--primary:hover {
    background: var(--mm-accent-hover);
    border-color: var(--mm-accent-hover);
}

.mm-btn--small {
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    background: transparent;
    color: var(--mm-accent);
    border-color: var(--mm-border-mid);
}

.mm-btn--small:hover {
    background: var(--mm-accent);
    color: #FFFFFF;
    border-color: var(--mm-accent);
}

.mm-btn--disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* Slice 4.9b — ghost variant for the secondary hero CTA on sub-pages. */
.mm-btn--ghost {
    background: transparent;
    color: var(--mm-text);
    border-color: var(--mm-border-mid);
}

.mm-btn--ghost:hover {
    background: var(--mm-text);
    color: #FFFFFF;
    border-color: var(--mm-text);
}

/* ─── 12. EMPTY STATE ───────────────────────────────────── */

.mm-empty {
    text-align: center;
    color: var(--mm-text-faint);
    font-size: 0.95rem;
    padding: 4rem 0;
}

/* ─── 13. PRINT ─────────────────────────────────────────── */

@media print {
    .mm-preview-banner { display: none; }
    .mm-hero { min-height: auto; }
    .mm-section { padding: 1.5rem 0; }
    .mm-section--cta { display: none; }
}
