/* Educação — porta de entrada (Para Crianças / Para Jovens e Adultos) */

body.edu-porta {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f7f4ee !important;
    color: #1f1d1b;
    font-family: "Outfit", system-ui, sans-serif;
}
html:has(> body.edu-porta) { background: #f7f4ee; }
.edu-porta a { color: inherit; }
.edu-porta img { display: block; max-width: 100%; }

.porta-top {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.4rem 1.5rem 0;
    box-sizing: border-box;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}
.porta-brand {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
}
.porta-crumb {
    font-size: 0.85rem;
    color: #7a746b;
}
.porta-crumb::before { content: "/"; margin-right: 0.75rem; color: #c9c2b7; }

.porta-main {
    flex: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
    box-sizing: border-box;
}
.porta-intro { max-width: 40rem; margin-bottom: 2.25rem; }
.porta-kicker {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7a746b;
}
.edu-porta h1 {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(2.3rem, 5vw, 3.4rem);
    font-weight: 500;
    line-height: 1.05;
    margin: 0;
    color: #1f1d1b;
}
.edu-porta h1 em { font-style: italic; }
.porta-intro > p:last-child { margin: 0.9rem 0 0; color: #5f5a52; font-size: 1.02rem; }

.porta-group + .porta-group { margin-top: 3rem; }
.porta-group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 1rem;
    margin: 0 0 1.1rem;
    padding: 0 0 0.7rem;
    border-bottom: 1px solid #e6e0d6;
}
.porta-group-head h2 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 600;
    font-style: italic;
    color: #1f1d1b;
}
.porta-group-head p { margin: 0; font-size: 0.92rem; color: #7a746b; }

.porta-doors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}
.porta-door {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.porta-door-media { aspect-ratio: 16 / 10; overflow: hidden; }
.porta-door-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.porta-door:hover .porta-door-media img { transform: scale(1.04); }
.porta-door-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 1.5rem 1.6rem 1.7rem;
}
.porta-door-tag { font-size: 0.78rem; font-weight: 600; }
.porta-door h3 { margin: 0; line-height: 1.05; }
.porta-door p { margin: 0 0 0.6rem; line-height: 1.55; max-width: 26rem; }
.porta-door-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.25rem;
    font-weight: 600;
    font-size: 0.92rem;
}

/* Crianças: livro de histórias ilustrado */
.porta-door--kids {
    background: #f6eedb;
    border: 1.5px solid #3b2a1a;
    border-radius: 0;
    box-shadow: inset 0 0 0 6px #f6eedb, inset 0 0 0 7.5px #c9a24a;
}
.porta-door--kids .porta-door-media {
    margin: 12px 12px 0;
    background: #efe4cc;
    border: 1px solid rgba(59, 42, 26, 0.35);
}
.porta-door--kids .porta-door-media img { object-position: center 60%; mix-blend-mode: multiply; }
.porta-door--kids:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 6px #f6eedb, inset 0 0 0 7.5px #c9a24a, 0 18px 36px -20px rgba(59, 42, 26, 0.6); }
.porta-door--kids .porta-door-tag {
    font-family: "Lora", Georgia, serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4f8a3c;
}
.porta-door--kids h3 {
    font-family: "IM Fell English", Georgia, serif !important;
    font-size: clamp(2rem, 3.6vw, 2.6rem);
    font-weight: 400;
    color: #3b2a1a;
}
.porta-door--kids p { color: #6b5440; font-family: "Lora", Georgia, serif; }
.porta-door--kids .porta-door-cta {
    background: #3b2a1a;
    color: #f6eedb;
    border-radius: 3px;
    font-family: "Lora", Georgia, serif;
    box-shadow: 0 0 0 3px #f6eedb, 0 0 0 4.5px #3b2a1a;
}
.porta-door--kids:hover .porta-door-cta { background: #c0392b; }

/* Jovens e adultos: verde */
.porta-door--adults {
    background: #fff;
    border: 1px solid #e2ebe5;
    border-radius: 16px;
}
.porta-door--adults .porta-door-media { background: #eaf6ee; }
.porta-door--adults .porta-door-media img { object-position: center 20%; }
.porta-door--adults:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(28, 42, 35, 0.12); }
.porta-door--adults .porta-door-tag { color: #2f8f5b; }
.porta-door--adults h3 {
    font-family: "Outfit", system-ui, sans-serif !important;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 600;
    color: #1c2a23;
}
.porta-door--adults p { color: #5d6d64; }
.porta-door--adults .porta-door-cta {
    background: #2f8f5b;
    color: #fff;
    border-radius: 8px;
}

/* Robótica e computação: planta técnica */
.porta-door--tech {
    background: #fff;
    border: 1.5px solid #13234d;
    border-radius: 18px;
}
.porta-door--tech:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 #2f6bff; }
.porta-door--tech .porta-door-media {
    border-bottom: 1.5px solid #13234d;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 26px 26px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 26px 26px,
        radial-gradient(ellipse 70% 80% at 70% 30%, rgba(47, 107, 255, 0.4), transparent 70%),
        #13234d;
}
.porta-tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 64px);
    gap: 14px;
    transition: transform 0.4s ease;
}
.porta-door--tech:hover .porta-tech-grid { transform: rotate(-4deg) scale(1.05); }
.porta-tech-grid .material-icons-outlined {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 2rem;
    color: #13234d;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}
.porta-tech-grid span:nth-child(1) { background: #f5b800; }
.porta-tech-grid span:nth-child(2) { background: #ff7a2f; color: #fff; }
.porta-tech-grid span:nth-child(3) { background: #2f6bff; color: #fff; }
.porta-tech-grid span:nth-child(4) { background: #14a37a; color: #fff; }
.porta-door--tech .porta-door-tag {
    font-family: ui-monospace, "Space Mono", monospace;
    color: #2f6bff;
}
.porta-door--tech h3 {
    font-family: "Space Grotesk", system-ui, sans-serif !important;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #13234d;
}
.porta-door--tech p { color: #5a6685; max-width: 34rem; }
.porta-door--tech .porta-door-cta {
    background: #13234d;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
}
.porta-door--tech .porta-door-media { display: grid; text-decoration: none; }
.porta-door-ctas {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.porta-door-ctas .porta-door-cta { margin-top: 0; }
.porta-door--tech .porta-door-cta--soft {
    background: transparent;
    color: #13234d;
    box-shadow: inset 0 0 0 1.5px #13234d;
}
.porta-door--tech .porta-door-cta:hover { background: #2f6bff; color: #fff; box-shadow: none; }

/* Idiomas: cartão-postal */
.porta-door--lang {
    position: relative;
    padding: 8px;
    border-radius: 18px;
    background: repeating-linear-gradient(-45deg, #d8453b 0 14px, #fff 14px 22px, #2f5f9e 22px 36px, #fff 36px 44px);
}
.porta-door--lang:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(31, 58, 95, 0.18); }
.porta-door--lang .porta-door-media {
    border-radius: 12px 12px 0 0;
    display: grid;
    place-items: center;
    background:
        repeating-linear-gradient(0deg, transparent 0 27px, rgba(31, 58, 95, 0.06) 27px 28px),
        #f6f0e4;
}
.porta-door--lang .porta-door-body {
    border-radius: 0 0 12px 12px;
    background: #fffaf0;
}
.porta-lang-stamps {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 14px 18px;
    transition: transform 0.4s ease;
}
.porta-door--lang:hover .porta-lang-stamps { transform: rotate(-3deg) scale(1.04); }
.porta-lang-stamps span {
    padding: 0.45rem 0.9rem;
    border: 2.5px solid currentColor;
    border-radius: 10px;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.5rem;
    line-height: 1;
    text-align: center;
    background: rgba(255, 250, 240, 0.8);
}
.porta-lang-stamps span:nth-child(1) { color: #d8453b; transform: rotate(-7deg); }
.porta-lang-stamps span:nth-child(2) { color: #2f5f9e; transform: rotate(5deg); }
.porta-lang-stamps span:nth-child(3) { color: #2d7f7a; transform: rotate(4deg); }
.porta-lang-stamps span:nth-child(4) { color: #b9811d; transform: rotate(-5deg); }
.porta-door--lang .porta-door-tag {
    font-family: "Courier Prime", ui-monospace, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d8453b;
}
.porta-door--lang h3 {
    font-family: "DM Serif Display", Georgia, serif !important;
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    font-weight: 400;
    color: #1f3a5f;
}
.porta-door--lang p { color: #5f6b7d; }
.porta-door--lang .porta-door-cta {
    background: #1f3a5f;
    color: #fff;
    border-radius: 999px;
}

.porta-foot {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem 5.5rem;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: #7a746b;
    border-top: 1px solid #e6e0d6;
}
.porta-foot nav { display: flex; gap: 1.25rem; }
.porta-foot a { text-decoration: none; }
.porta-foot a:hover { color: #1f1d1b; }

@media (max-width: 760px) {
    .porta-doors { grid-template-columns: 1fr; }
    .porta-main { padding-top: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .porta-door, .porta-door-media img, .porta-tech-grid, .porta-lang-stamps { transition: none; }
}
