/* =============================================
   AngoSchool - HomeAngoSchool Styles
   Usa variaveis do tema (shared/css/theme.css)
   ============================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
    --poppins-Font: "Poppins", sans-serif;
    --inter-Font: "Inter", sans-serif;
}

* {
    font-family: var(--inter-Font);
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, a {
    font-family: var(--poppins-Font);
}

body {
    margin: 0;
    padding: 0;
}

/* ===== Hero Animations ===== */
@keyframes heroKenBurns {
    0%   { transform: scale(1)   translate(0, 0); }
    25%  { transform: scale(1.08) translate(-1%, 1%); }
    50%  { transform: scale(1.12) translate(0.5%, -0.5%); }
    75%  { transform: scale(1.06) translate(1%, 0.5%); }
    100% { transform: scale(1)   translate(0, 0); }
}

@keyframes heroGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.18; }
    50%      { transform: translateY(-30px) scale(1.15); opacity: 0.3; }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.12; }
    50%      { transform: translateY(20px) scale(0.9); opacity: 0.22; }
}

/* ===== Hero Header ===== */
.home-hero {
    width: 100%;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.home-hero-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: heroKenBurns 25s ease-in-out infinite;
    will-change: transform;
    z-index: 0;
}

.home-hero-overlay {
    width: 100%;
    height: 100%;
    min-height: 70vh;
    background: linear-gradient(135deg, rgba(14, 77, 86, 0.85), rgba(27, 110, 122, 0.65), rgba(14, 77, 86, 0.80));
    background-size: 200% 200%;
    animation: heroGradientShift 12s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.home-hero-overlay::before,
.home-hero-overlay::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

.home-hero-overlay::before {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    top: 12%;
    left: 8%;
    animation: floatOrb 8s ease-in-out infinite;
}

.home-hero-overlay::after {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(20,184,166,0.18), transparent 70%);
    bottom: 15%;
    right: 10%;
    animation: floatOrb2 10s ease-in-out infinite 2s;
}

/* ===== Navbar ===== */
.home-navbar {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.home-navbar-logo {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    text-decoration: none;
}

.home-navbar-logo img {
    width: 36px;
    height: auto;
}

.home-navbar-logo span {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--poppins-Font);
}

.home-navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-btn-med,
.home-btn-install {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 24px;
    font-size: 0.82rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.home-btn-med:hover,
.home-btn-install:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.home-btn-hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.2s;
}

.home-btn-hamburger:hover {
    opacity: 0.7;
}

/* ===== Hero Content ===== */
.home-hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.home-hero-text {
    text-align: center;
    max-width: 800px;
}

.home-hero-text h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    min-height: 2.6em;
}

.home-hero-text h1.hero-shimmer {
    background: linear-gradient(
        90deg,
        #fff 0%,
        #fff 35%,
        rgba(20, 184, 166, 0.9) 45%,
        #b2f5ea 50%,
        rgba(20, 184, 166, 0.9) 55%,
        #fff 65%,
        #fff 100%
    );
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerSweep 4s ease-in-out infinite;
}

@keyframes shimmerSweep {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.typewriter-cursor {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    animation: cursorBlink 0.6s step-end infinite;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

.home-hero-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 14px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    min-height: 1.6em;
}

/* ===== Stats Bar ===== */
.home-stats-bar {
    max-width: 420px;
    width: 75%;
    margin: -14px auto 0;
    position: relative;
    z-index: 5;
    background: linear-gradient(135deg, #29707D, #0e4d56);
    border-radius: 24px;
    padding: 8px 12px;
    box-shadow: 0 2px 10px rgba(41, 112, 125, 0.18);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.home-stats-bar > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 0;
}

.home-stats-bar > div:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== Scroll to top ===== */
.home-scroll-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #29707D, #0e4d56);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(41, 112, 125, 0.35);
    transition: all 0.2s;
    z-index: 50;
}

.home-scroll-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 112, 125, 0.5);
}

/* ===== Institutions Section ===== */
.home-institutions {
    padding: 28px 20px 40px;
}

.home-section-title {
    text-align: center;
    margin-bottom: 10px;
}

.home-section-title h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
}

.home-section-divider {
    width: 56px;
    height: 6px;
    border-radius: 4px;
    background: linear-gradient(135deg, #29707D, #1b6e7a);
    margin: 0 auto 30px;
    border: none;
}

.home-institutions-grid {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* ===== Institution Card (AJAX) ===== */
a.itemLista {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cardInstituicoes {
    background: #fff;
    border: 1px solid rgba(41, 112, 125, 0.12);
    padding: 20px;
    border-radius: 18px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.cardInstituicoes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #29707D, #14b8a6, #29707D);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.cardInstituicoes:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 28px rgba(41, 112, 125, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.04);
    border-color: rgba(41, 112, 125, 0.22);
    background: linear-gradient(168deg, #fff 60%, rgba(41, 112, 125, 0.03));
}

.cardInstituicoes:hover::before {
    opacity: 1;
    animation: cardAccentSlide 2s linear infinite;
}

@keyframes cardAccentSlide {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.home-card-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.home-card-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(41, 112, 125, 0.18);
    transition: all 0.35s ease;
}

.cardInstituicoes:hover .home-card-img {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(41, 112, 125, 0.35);
    transform: scale(1.06);
}

.nomeInstituicao {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    transition: color 0.25s ease;
}

.cardInstituicoes:hover .nomeInstituicao {
    color: #29707D;
}

.labelDesde {
    font-size: 11px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.cardInstituicoes:hover .labelDesde {
    color: #29707D;
}

/* ===== Stats Values (AJAX) ===== */
.home-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1;
    margin: 0;
}

.home-stat-label {
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
    margin: 2px 0 0;
}

/* ===== About Section ===== */
.home-about {
    padding: 70px 20px;
    background: #f5fafa;
}

.home-about-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.home-about-header {
    text-align: center;
    margin-bottom: 50px;
}

.home-about-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #29707D;
    margin: 0 0 12px;
}

.home-about-header p {
    font-size: 1rem;
    color: #475569;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

.home-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-about-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.home-about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(41, 112, 125, 0.10), 0 2px 8px rgba(41, 112, 125, 0.06);
    border-color: rgba(41, 112, 125, 0.13);
}

.home-about-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    color: #fff;
}

.home-about-icon--teal { background: linear-gradient(135deg, rgba(20,184,166,0.90), rgba(13,148,136,0.94)); }
.home-about-icon--blue { background: linear-gradient(135deg, rgba(41,112,125,0.90), rgba(27,110,122,0.94)); }
.home-about-icon--green { background: linear-gradient(135deg, rgba(16,185,129,0.90), rgba(5,150,105,0.94)); }
.home-about-icon--purple { background: linear-gradient(135deg, rgba(139,92,246,0.90), rgba(124,58,237,0.94)); }
.home-about-icon--orange { background: linear-gradient(135deg, rgba(245,158,11,0.90), rgba(217,119,6,0.94)); }
.home-about-icon--cyan { background: linear-gradient(135deg, rgba(6,182,212,0.90), rgba(8,145,178,0.94)); }

.home-about-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}

.home-about-card p {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.home-about-cta {
    text-align: center;
    margin-top: 44px;
}

.home-about-cta p {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 16px;
}

.home-about-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #29707D, #0e4d56);
    color: #fff;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(41, 112, 125, 0.3);
}

.home-about-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 112, 125, 0.45);
}

/* ===== Contact Section ===== */
.home-contact-section {
    padding: 20px 20px 60px;
}

.home-section-title-contact {
    text-align: center;
    margin-bottom: 30px;
}

.home-section-title-contact h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
}

.home-contact {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.home-contact-info {
    background: linear-gradient(160deg, #1b6e7a, #0e4d56);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

.home-contact-info img {
    width: 36px;
    height: 36px;
    margin-bottom: 20px;
}

.home-contact-info h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 24px;
    line-height: 1.5;
}

.home-contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
    font-size: 0.88rem;
}

.home-contact-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.home-contact-detail i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.home-contact-form {
    background: #fff;
    padding: 32px 28px;
}

.home-contact-form .home-form-group {
    margin-bottom: 14px;
}

.home-contact-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
    padding-left: 4px;
    font-family: var(--poppins-Font);
}

.home-contact-form input,
.home-contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.88rem;
    outline: none;
    transition: all 0.2s;
}

.home-contact-form input:focus,
.home-contact-form textarea:focus {
    border-color: #29707D;
    box-shadow: 0 0 0 3px rgba(41, 112, 125, 0.12);
}

.home-contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

.home-contact-form button[type="submit"] {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #29707D, #0e4d56);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.home-contact-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #1b6e7a, #0e4d56);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(41, 112, 125, 0.35);
}

#infoMsgSuccess {
    font-size: 0.82rem;
    color: #29707D;
    text-align: justify;
    min-height: 18px;
}

/* ===== Footer ===== */
.home-footer {
    background: #f5fafa;
    border-top: 1px solid #e2e8f0;
    padding: 40px 20px 20px;
}

.home-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.home-footer-brand img {
    width: 40px;
    height: 40px;
}

.home-footer-brand h6 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin: 10px 0 4px;
}

.home-footer-brand p {
    font-size: 0.82rem;
    color: #475569;
    margin: 0;
}

.home-footer-contact {
    margin-top: 16px;
}

.home-footer-contact p {
    font-size: 0.82rem;
    color: #475569;
    margin: 2px 0;
}

.home-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 12px;
}

.home-footer-bottom p {
    font-size: 0.82rem;
    color: #475569;
    margin: 0;
}

.home-footer-socials {
    display: flex;
    gap: 10px;
}

.home-footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(41, 112, 125, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #29707D;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.9rem;
}

.home-footer-socials a:hover {
    background: #29707D;
    color: #fff;
    transform: translateY(-2px);
}

/* ===== Off Canvas ===== */
.home-offcanvas-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 40;
}

.home-offcanvas {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 360px;
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 41;
}

.home-offcanvas.open {
    transform: translateX(0);
}

.home-offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.home-offcanvas-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(41, 112, 125, 0.09);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.home-offcanvas-close:hover {
    background: #29707D;
    color: #fff;
}

.home-offcanvas-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.home-offcanvas-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-offcanvas-nav a {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    background: linear-gradient(135deg, #29707D, #0e4d56);
    color: #fff;
}

.home-offcanvas-nav a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(41, 112, 125, 0.35);
}

/* ===== Skeleton Loading ===== */
@keyframes skeletonShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.home-skeleton-card {
    background: #fff;
    border: 1px solid rgba(41, 112, 125, 0.08);
    padding: 20px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: skeletonFadeIn 0.3s ease;
}

@keyframes skeletonFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.home-skeleton-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 400% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.home-skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 400% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.home-skeleton-line--title {
    width: 70%;
    height: 14px;
}

.home-skeleton-line--sub {
    width: 45%;
    height: 10px;
}

.home-skeleton-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.home-skeleton-stat-value {
    width: 40px;
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.2) 75%);
    background-size: 400% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.home-skeleton-stat-label {
    width: 60px;
    height: 10px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255,255,255,0.15) 25%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.15) 75%);
    background-size: 400% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

@media (min-width: 1025px) {
    .home-skeleton-card {
        flex-direction: row;
        gap: 14px;
    }

    .home-skeleton-avatar {
        width: 80px;
        height: 80px;
    }

    .home-skeleton-line--title {
        width: 120px;
    }

    .home-skeleton-line--sub {
        width: 80px;
    }
}

@media (max-width: 768px) {
    /* Skeleton: estilo flutuante, sem box */
    .home-skeleton-card {
        padding: 10px 4px 6px;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        flex-direction: column;
        gap: 7px;
    }

    .home-skeleton-avatar {
        width: 60px;
        height: 60px;
        box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(41, 112, 125, 0.12);
    }

    .home-skeleton-line--title {
        width: 75%;
        height: 9px;
    }

    .home-skeleton-line--sub {
        display: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    /* Hero: altura reduzida para melhor UX */
    .home-hero {
        min-height: 56vh;
    }

    .home-hero-bg {
        animation-duration: 30s;
    }

    .home-hero-overlay {
        min-height: 56vh;
    }

    .home-hero-overlay::before {
        width: 140px;
        height: 140px;
        filter: blur(40px);
    }

    .home-hero-overlay::after {
        width: 120px;
        height: 120px;
        filter: blur(40px);
    }

    /* Hero content mais compacto */
    .home-hero-content {
        padding: 16px 20px 22px;
    }

    .home-hero-text h1 {
        font-size: clamp(1.2rem, 5.5vw, 1.7rem);
        min-height: 2em;
    }

    .home-hero-text p {
        font-size: 0.82rem;
        margin-top: 10px;
        min-height: 1.4em;
    }

    .home-institutions {
        padding-top: 22px;
    }

    .home-btn-med,
    .home-btn-install {
        display: none;
    }

    .home-btn-hamburger {
        display: flex;
    }

    .home-stats-bar {
        border-radius: 16px;
        margin-top: -10px;
        padding: 4px 6px;
    }

    /* Grid: 3 colunas — estilo app launcher */
    .home-institutions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 0 4px;
    }

    /* Card completamente removido — só o círculo e o nome flutuam */
    .cardInstituicoes {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0;
        padding: 10px 4px 6px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .cardInstituicoes::before {
        display: none;
    }

    .cardInstituicoes:hover {
        transform: none;
        background: transparent;
        box-shadow: none;
    }

    /* Círculo com anel e sombra elegante */
    .home-card-img {
        width: 60px;
        height: 60px;
        max-width: 60px;
        max-height: 60px;
        box-shadow:
            0 4px 16px rgba(41, 112, 125, 0.22),
            0 0 0 3px #fff,
            0 0 0 5px rgba(41, 112, 125, 0.15);
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                    box-shadow 0.2s ease;
    }

    /* Tap: efeito de pressão + anel expansivo */
    .cardInstituicoes:hover .home-card-img {
        transform: scale(1.12);
        box-shadow:
            0 6px 20px rgba(41, 112, 125, 0.30),
            0 0 0 3px #fff,
            0 0 0 7px rgba(41, 112, 125, 0.18);
    }

    .cardInstituicoes:active .home-card-img {
        transform: scale(0.91);
        box-shadow:
            0 2px 8px rgba(41, 112, 125, 0.18),
            0 0 0 3px #fff,
            0 0 0 4px rgba(41, 112, 125, 0.10);
        transition-duration: 0.08s;
    }

    .home-card-layout {
        gap: 7px;
    }

    /* Nome abaixo do círculo, estilo legenda de app */
    .nomeInstituicao {
        font-size: 9.5px;
        font-weight: 600;
        text-align: center;
        line-height: 1.25;
        color: #374151;
        margin-top: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        padding: 0 3px;
    }

    .cardInstituicoes:hover .nomeInstituicao {
        color: #29707D;
    }

    .labelDesde {
        display: none;
    }

    .home-stat-value {
        font-size: 0.95rem;
    }

    .home-stat-label {
        font-size: 0.58rem;
    }

    .home-section-title h3,
    .home-section-title-contact h3 {
        font-size: 1.3rem;
    }

    .home-about-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-contact {
        grid-template-columns: 1fr;
        border-radius: 14px;
    }

    .home-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .home-about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-institutions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .home-card-img {
        width: 68px;
        height: 68px;
    }
}

@media (min-width: 1025px) {
    .home-institutions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .home-card-layout {
        flex-direction: row;
    }

    .home-card-img {
        width: 80px;
        height: 80px;
    }

    .nomeInstituicao {
        font-size: 1rem;
    }

    .labelDesde {
        justify-content: flex-start;
    }
}

/* ===== Download Apps Section ===== */
.home-download-apps {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.home-download-apps h3 {
    font-family: var(--poppins-Font);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 0.5rem;
}

.home-download-apps > p {
    color: var(--text-secondary, rgba(255,255,255,0.6));
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.home-download-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-family: var(--inter-Font);
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 190px;
}

.home-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.home-download-btn:active {
    transform: translateY(0);
}

.home-download-btn i {
    font-size: 1.8rem;
}

.home-download-btn small {
    display: block;
    font-size: 0.65rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-download-btn strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
}

.home-download-btn--win {
    background: linear-gradient(135deg, #0078d4, #005a9e);
    border: 1px solid rgba(255,255,255,0.15);
}

.home-download-btn--android {
    background: linear-gradient(135deg, #3ddc84, #2d9f63);
    border: 1px solid rgba(255,255,255,0.15);
}

@media (max-width: 480px) {
    .home-download-btns {
        flex-direction: column;
        align-items: center;
    }
    .home-download-btn {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
}
