:root {
    color-scheme: light;
    --ink: #171c18;
    --muted: #4e5850;
    --paper: #f1f4ee;
    --lime: #c8fa32;
    --line: #dbe3d8;
    --measure: 1180px;
    --gutter: clamp(1rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.65 "Poppins", system-ui, sans-serif;
}

main { flex: 1; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #26864d; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h2 { font-size: 1.35rem; margin-bottom: .8rem; }
h3 { margin-top: 1.35rem; }

.header { background: #050605; color: #fff; }

.header-container, .welcome-container, .info-grid, .footer-content {
    width: min(100% - 2 * var(--gutter), var(--measure));
    margin-inline: auto;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .65rem;
}

.logo { flex: 0 1 247px; }
.logo img { display: block; width: 100%; height: auto; }

.nav { display: flex; gap: .25rem; }
.nav a {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: .4rem .85rem;
    border-radius: .65rem;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 600;
}

.nav a:hover { background: #252925; }
.nav a.active { background: var(--lime); color: #14180c; }

.welcome {
    padding-block: clamp(2rem, 6vw, 5rem);
    background: radial-gradient(ellipse at 95% 0, #273022, #121713 63%);
    color: #f8faf6;
}

.welcome-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 4.5rem);
    align-items: center;
}

.welcome-text { grid-column: 1; grid-row: 1; overflow-wrap: anywhere; }
.welcome-text h1 {
    max-width: 17ch;
    font: 750 clamp(2.15rem, 4.5vw, 4rem)/1.04 system-ui, sans-serif;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.welcome-text p { margin-top: .9rem; color: #dee6da; }
.welcome-text ul, .card ul:not(.list), .card ol { padding-inline-start: 1.3rem; }
.welcome-text li + li, .card li + li { margin-top: .2rem; }

.slider {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #434d43;
    border-radius: 1.35rem;
    background: #283328;
}

.slider img, .slider iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slider img { object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.slider img.active { opacity: 1; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.15rem; margin-top: 1.4rem; }
.hero-actions .cta-button, .hero-actions .theorie-title { margin: 0; }
.theorie-title a { font-size: .95rem; font-weight: 600; }
.welcome-text .warning, .welcome-text .social { font-size: .9rem; }
.welcome-text .warning { border-left: 2px solid var(--lime); padding-inline-start: .75rem; }

.cta-button, .ig-button {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    margin: .9rem .35rem 0 0;
    padding: .6rem 1rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    background: var(--lime);
    color: var(--ink);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
}

.cta-button:hover { background: #b4e730; }
.cta-button.secondary, .cta-button.instagram, .ig-button { background: transparent; color: inherit; border-color: currentColor; }
.cta-button.secondary:hover, .cta-button.instagram:hover, .ig-button:hover { background: rgb(123 145 115 / 18%); }
.ig-button svg { display: none; }

.info-section { padding-block: clamp(1.5rem, 4vw, 3rem); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; align-items: start; }
.card { min-width: 0; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1.15rem; background: #fff; }
.card p + p { margin-top: .65rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .65rem; padding-block: .65rem; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.closed strong { color: #a43438; }

.footer {
    background: #0c100d;
    color: #e2e9df;
    padding-block: 1.6rem calc(4.75rem + env(safe-area-inset-bottom, 0px));
}

.footer-content { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; font-size: .92rem; }

.whatsapp {
    position: fixed;
    z-index: 10;
    right: calc(clamp(.75rem, 3vw, 1.5rem) + env(safe-area-inset-right, 0px));
    bottom: max(.85rem, env(safe-area-inset-bottom, 0px));
}

.whatsapp-toggle {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    list-style: none;
    border: 2px solid white;
    border-radius: 50%;
    background: #127c46;
    color: #fff;
    box-shadow: 0 6px 20px #092c2740;
    cursor: pointer;
}

.whatsapp-toggle::-webkit-details-marker { display: none; }
.whatsapp-toggle:hover { background: #0d693a; }

.whatsapp-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + .65rem);
    width: min(19rem, calc(100vw - 2rem - env(safe-area-inset-right, 0px) - env(safe-area-inset-left, 0px)));
    max-height: calc(100dvh - 6rem - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: white;
    color: var(--ink);
    box-shadow: 0 12px 36px #0e251c38;
}

.whatsapp-heading { font-weight: 700; font-size: 1.07rem; }
.whatsapp-heading + p { color: var(--muted); font-size: .88rem; }
.whatsapp-panel a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .6rem;
    padding: .55rem .75rem;
    border-radius: .6rem;
    background: #eef8f0;
    text-decoration: none;
}

.whatsapp-panel a:hover { background: #dff3e4; }
.whatsapp-panel small { display: block; color: var(--muted); }

@media (max-width: 740px) {
    .header-container { flex-direction: column; gap: .3rem; padding-bottom: .75rem; }
    .logo { flex: none; width: min(60vw, 225px); }
    .nav { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .nav a { padding-inline: .15rem; font-size: clamp(.75rem, 3.5vw, .92rem); }
    .welcome-container { grid-template-columns: minmax(0, 1fr); }
    .welcome-text, .slider { grid-column: auto; grid-row: auto; }
    .welcome-text { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
    .slider img { transition: none; }
}
