html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
    background: #2B543A;
    color: #fff;
}

/* ============================================================
   HEADER
============================================================ */

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    padding: 0.6rem 2rem;
    background: #21412D;
    transition: background .4s, box-shadow .4s;
}

header.scrolled {
    background: #21412D;
    box-shadow: 10px 5px 15px rgba(0, 0, 0, .3);
}

/* ------ LOGO ------ */

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    order: 1;
    margin-left: 30rem;
}

.logo img {
    height: 100px;
    width: auto;
    display: block;
}

/* ------ WRAPPER DAS 3 SEÇÕES ------ */

.secoes-wrapper {
    position: relative;
    background: #2B543A;
}

.bg-png {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    opacity: 0.18;
    pointer-events: none;
}

.hero,
.cards,
.diferenciais {
    position: relative;
    z-index: 1;
}

/* ------ ANIMAÇÃO CARDS ------ */

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

.card.visivel                { animation: fadeUp 0.7s ease forwards; }
.card.visivel:nth-child(2)   { animation-delay: 0.15s; }
.card.visivel:nth-child(3)   { animation-delay: 0.30s; }
.card.visivel:nth-child(4)   { animation-delay: 0.45s; }

/* ------ HAMBURGUER ------ */

.hamburger {
    display: none;
    order: 2;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------ NAV / MENU ------ */

nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 3;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.menu li a {
    text-decoration: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    display: block;
    white-space: nowrap;
    transition: color .2s, background .2s;
}

.menu li a:hover {
    color: #DE7512;
}

/* ------ DROPDOWN / SUBMENU ------ */

.menu .dropdown {
    position: relative;
}

.menu .dropdown > a::after {
    content: " ▾";
    font-size: 0.7em;
    opacity: .6;
}

.menu .dropdown .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    background: #21412D;
    border-radius: 8px;
    padding: 6px 0.4rem 0;
    margin: 0;
    min-width: 155px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    z-index: 200;
}

.menu .dropdown .submenu li a {
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    border-radius: 0;
    white-space: nowrap;
}

.menu .dropdown .submenu li a:hover {
    background: rgba(255, 255, 255, .07);
    color: #DE7512;
}

.menu .dropdown:hover .submenu,
.menu .dropdown:focus-within .submenu {
    display: block;
}

/* ============================================================
   BOTÕES
============================================================ */

.btn-header,
.btn {
    background: #DE7512;
    color: #1f1f1f;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn-outline {
    border: 2px solid #DE7512;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
}

/* ============================================================
   INDEX — HERO
============================================================ */

.hero {
    min-height: 50vh;
    padding: 120px 8% 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 60px;
}

.hero-text {
    flex: 0 1 45%;
    font-size: 2rem;
    text-align: left;
}

.hero-text p {
    text-align: justify;
}

.hero-image {
    flex: 1;
    align-self: stretch;
}

/* ============================================================
   INDEX — CARDS
============================================================ */

.cards {
    padding: 80px 8%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    opacity: 0;
    background: #35694A;
    padding: 30px;
    border-radius: 15px;
}

.card h2 {
    color: #DE7512;
}

.icon {
    font-size: 40px;
    margin-bottom: 15px;
}

/* ============================================================
   INDEX — DIFERENCIAIS
============================================================ */

.diferenciais {
    padding: 80px 8%;
    text-align: center;
}

.diferenciais h2 {
    margin-bottom: 40px;
}

.lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ============================================================
   ESTATÍSTICAS
============================================================ */

.stats {
    padding: 80px 8%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
}

.stat h3 {
    font-size: 3rem;
    color: #DE7512;
}

/* ============================================================
   CTA
============================================================ */

.cta h2 {
    text-align: center;
    height: 3vh;
}

.cta p {
    text-align: center;
    margin-top: 20px;
    height: 5vh;
}

.btn-cta {
    display: block;
    color: #DE7512;
    padding: 10px 10px;
    border-radius: 20px;
    font-weight: bolder;
    text-align: center;
}

/* ============================================================
   QUEM SOMOS — HERO
============================================================ */

.heroquemsomos {
    min-height: 40vh;
    padding: 120px 8% 60px;
    background: #2B543A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text-qs {
    flex: 1;
}

.hero-text-qs h1 {
    font-size: 2rem;
    color: #DE7512;
    margin-bottom: 1rem;
}

.hero-text-qs h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: bold;
    font-style: italic;
}

.hero-text-qs p {
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.hero-image-qs {
    flex: 1;
    position: sticky;
    top: 120px;
    align-self: flex-start;
    opacity: 0;  /* 👈 começa invisível */
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: translateX(40px);
}

.hero-image-qs.visivel {
    opacity: 1;           /* 👈 aparece */
    transform: translateX(0);
}

.hero-image-qs img {
    width: 100%;
    border-radius: 20px;
}

/* ============================================================
   QUEM SOMOS — MVV
============================================================ */

.mvv {
    padding: 80px 8%;
}

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

.mvv-header h2 {
    font-size: 2rem;
    color: #DE7512;
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.mvv-card {
    background: #35694A;
    padding: 30px;
    border-radius: 15px;
    opacity: 0;
}

.mvv-card h3 {
    color: #DE7512;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
    font-style: italic;
    text-align: center;
}

.mvv-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify;
}

.mvv-card.visivel                { animation: fadeUp 0.7s ease forwards; }
.mvv-card.visivel:nth-child(2)   { animation-delay: 0.15s; }
.mvv-card.visivel:nth-child(3)   { animation-delay: 0.30s; }

/* ============================================================
   AGRO — HERO
============================================================ */

.heroagro {
    min-height: 100vh;
    padding: 140px 8% 80px;

    background:
        linear-gradient(rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.45)),
        url('herotransp.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text-ag { flex: 1; }

.hero-text-ag h1 {
    font-size: 1.2rem;
    color: #DE7512;
}

.hero-text-ag p { font-size: 7rem; }

.hero-image-ag { flex: 1; }

.hero-image-ag img {
    width: 100%;
    border-radius: 20px;
}

/* ============================================================
   ENERGIA SOLAR — HERO
============================================================ */

.heroenergia-solar {
    min-height: 100vh;
    padding: 140px 8% 80px;

    background:
        linear-gradient(rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.45)),
        url('herotransp.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* ============================================================
   ERP — HERO
============================================================ */

.heroerp {
    min-height: 100vh;
    padding: 140px 8% 80px;

    background:
        linear-gradient(rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.45)),
        url('herotransp.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* ============================================================
   IRRIGACERTO — HERO
============================================================ */

/* ============================================================
   IRRIGACERTO — HERO COM LOGIN
============================================================ */

.heroirrigacerto {
    min-height: 100vh;
    padding: 180px 8% 80px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.40)),
        url('../image/agro.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 48px;
}

/* -- Texto hero -- */
.hero-text-ic {
    width: 100%;
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge-ic {
    display: inline-block;
    background: rgba(222, 117, 18, 0.2);
    border: 1px solid #DE7512;
    color: #DE7512;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.hero-text-ic h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.1;
}

.hero-text-ic p {
    max-width: 100%;
    text-align: center;
}

.hero-features-ic {
    justify-content: center;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    backdrop-filter: blur(6px);
}

/* -- Card de login -- */
.hero-login-ic {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: rgba(33, 65, 45, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.login-header h2 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 6px;
}

.login-header p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    margin: 0;
}

.form-group-ic {
    margin-bottom: 18px;
}

.form-group-ic label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 7px;
}

.form-group-ic input {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    padding: 12px 14px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group-ic input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group-ic input:focus {
    border-color: #DE7512;
    box-shadow: 0 0 0 3px rgba(222, 117, 18, 0.18);
}

.input-senha-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-senha-wrapper input {
    padding-right: 44px;
}

.toggle-senha {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    padding: 0;
    line-height: 1;
}

.btn-login {
    width: 100%;
    background: #DE7512;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.15s;
}

.btn-login:hover {
    background: #c4660f;
    transform: translateY(-1px);
}

.login-erro {
    color: #ff7070;
    font-size: 0.85rem;
    text-align: center;
    min-height: 20px;
    margin-bottom: 8px;
}

.login-footer {
    text-align: center;
    margin-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 18px;
}

.login-footer p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 8px;
}

.btn-cadastro-link {
    color: #DE7512;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.btn-cadastro-link:hover {
    color: #f08c30;
}

/* ============================================================
   CADASTRO — PÁGINA COMPLETA
============================================================ */

.cadastro-section {
    min-height: 100vh;
    padding: 120px 4% 80px;
    background: #2B543A;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.cadastro-container {
    width: 100%;
    max-width: 720px;
    background: #21412D;
    border-radius: 20px;
    padding: 48px 48px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.cadastro-header {
    text-align: center;
    margin-bottom: 36px;
}

.cadastro-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cadastro-header h1 {
    font-size: 1.8rem;
    color: #DE7512;
    margin: 0 0 8px;
}

.cadastro-header p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    margin: 0 0 14px;
}

.voltar-link {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.voltar-link:hover {
    color: #DE7512;
}

/* -- Steps -- */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.step span:last-child {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    transition: color 0.3s;
}

.step.active .step-circle {
    background: #DE7512;
    border-color: #DE7512;
    color: #fff;
}

.step.active span:last-child {
    color: #DE7512;
}

.step.concluido .step-circle {
    background: #2B543A;
    border-color: #DE7512;
    color: #DE7512;
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.12);
    margin: 0 8px;
    margin-bottom: 22px;
    min-width: 40px;
}

/* -- Fieldsets / etapas -- */
fieldset.etapa {
    border: none;
    padding: 0;
    margin: 0;
    display: none;
}

fieldset.etapa.active {
    display: block;
}

fieldset.etapa legend {
    display: none;
}

/* -- Grupos de campos -- */
.form-row {
    margin-bottom: 18px;
}

.form-row.dois-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group-cad {
    display: flex;
    flex-direction: column;
}

.form-group-cad label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    margin-bottom: 7px;
}

.form-group-cad input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    color: #fff;
    padding: 12px 14px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group-cad input::placeholder {
    color: rgba(255,255,255,0.25);
}

.form-group-cad input:focus {
    border-color: #DE7512;
    box-shadow: 0 0 0 3px rgba(222,117,18,0.18);
}

.form-group-cad input[readonly] {
    opacity: 0.6;
    cursor: default;
}

.campo-erro {
    color: #ff7070;
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 16px;
}

.campo-invalido {
    border-color: #ff7070 !important;
}

/* -- Tipo de cadastro -- */
.tipo-cadastro-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 4px;
}

.tipo-opcao input[type="radio"] {
    display: none;
}

.tipo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 14px;
    border: 2px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    background: rgba(255,255,255,0.04);
}

.tipo-opcao input[type="radio"]:checked + .tipo-card {
    border-color: #DE7512;
    background: rgba(222,117,18,0.12);
}

.tipo-icon {
    font-size: 1.8rem;
}

.tipo-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.tipo-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

/* -- CEP spinner -- */
.cep-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cep-wrapper input {
    flex: 1;
}

.cep-spinner {
    position: absolute;
    right: 12px;
    font-size: 0.9rem;
}

/* -- Força da senha -- */
.forca-senha {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.barra-forca {
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: width 0.3s, background 0.3s;
}

.barra-forca.fraca  { width: 25%; background: #e74c3c; }
.barra-forca.media  { width: 50%; background: #e67e22; }
.barra-forca.boa    { width: 75%; background: #f1c40f; }
.barra-forca.forte  { width: 100%; background: #2ecc71; }

/* -- Botões de navegação -- */
.etapa-btn {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
}

.etapa-btn.dois-btns {
    justify-content: space-between;
}

.btn-proximo {
    background: #DE7512;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-proximo:hover {
    background: #c4660f;
    transform: translateY(-1px);
}

.btn-voltar-etapa {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-voltar-etapa:hover {
    background: rgba(255,255,255,0.13);
}

.cadastro-sucesso {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    border-radius: 10px;
    padding: 12px 16px;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* ============================================================
   DASHBOARD — PAINÉIS (ADMIN E USUÁRIO)
============================================================ */

    .dash {
        min-height: 100vh;
        padding: 140px 8% 80px;
        background: #2B543A;
    }

    .dash-topo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 48px;
        padding-bottom: 28px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .dash-saudacao {
        color: rgba(255, 255, 255, 0.6);
        font-size: 1rem;
        margin: 0 0 4px;
    }

    .dash-nome {
        color: #fff;
        font-size: 2rem;
        margin: 0 0 10px;
    }

    .dash-badge {
        display: inline-block;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        font-size: 0.8rem;
        font-weight: 600;
        padding: 4px 14px;
        border-radius: 50px;
    }

    .dash-badge-admin {
        background: rgba(222, 117, 18, 0.2);
        border-color: #DE7512;
        color: #DE7512;
    }

    .btn-logout {
        background: transparent;
        border: 2px solid #DE7512;
        color: #DE7512;
        padding: 10px 24px;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }

    .btn-logout:hover {
        background: #DE7512;
        color: #fff;
    }

    .dash-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 25px;
    }

    .dash-card {
        background: #35694A;
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 30px;
        border-radius: 15px;
        position: relative;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .dash-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }

    .dash-card-icon {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }

    .dash-card h3 {
        color: #DE7512;
        font-size: 1.2rem;
        margin: 0 0 10px;
    }

    .dash-card p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.92rem;
        line-height: 1.6;
        margin: 0 0 16px;
    }

    .dash-card-tag {
        display: inline-block;
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.55);
        font-size: 0.75rem;
        font-weight: 600;
        padding: 4px 12px;
        border-radius: 50px;
    }

    /* ============================================================
    GESTÃO DE USUÁRIOS (ADMIN)
    ============================================================ */
    
    .gestao-usuarios {
        background: #21412D;
        border-radius: 15px;
        padding: 32px;
        margin-top: 10px;
    }
    
    .gestao-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .gestao-header h2 {
        color: #DE7512;
        font-size: 1.4rem;
        margin: 0;
    }
    
    .busca-input {
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 10px;
        color: #fff;
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 280px;
        outline: none;
        transition: border-color 0.2s;
    }
    
    .busca-input::placeholder { color: rgba(255, 255, 255, 0.4); }
    .busca-input:focus { border-color: #DE7512; }
    
    /* -- Tabela -- */
    .tabela-wrapper {
        overflow-x: auto;
    }
    
    .tabela-usuarios {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9rem;
    }
    
    .tabela-usuarios thead th {
        text-align: left;
        color: rgba(255, 255, 255, 0.6);
        font-weight: 600;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding: 12px 14px;
        border-bottom: 2px solid rgba(255, 255, 255, 0.12);
        white-space: nowrap;
    }
    
    .tabela-usuarios tbody td {
        padding: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        color: #fff;
        vertical-align: middle;
    }
    
    .tabela-usuarios tbody tr:hover {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .linha-inativa {
        opacity: 0.5;
    }
    
    .tabela-vazia {
        text-align: center;
        color: rgba(255, 255, 255, 0.5);
        padding: 30px !important;
    }
    
    /* -- Tags -- */
    .tag-papel, .tag-status {
        display: inline-block;
        font-size: 0.72rem;
        font-weight: 700;
        padding: 3px 10px;
        border-radius: 50px;
    }
    
    .tag-papel {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.8);
    }
    
    .tag-admin {
        background: rgba(222, 117, 18, 0.2);
        color: #DE7512;
    }
    
    .tag-ativo {
        background: rgba(46, 204, 113, 0.18);
        color: #2ecc71;
    }
    
    .tag-inativo {
        background: rgba(231, 76, 60, 0.18);
        color: #e74c3c;
    }
    
    /* -- Botões de ação -- */
    .td-acoes {
        display: flex;
        gap: 8px;
        white-space: nowrap;
    }
    
    .btn-acao {
        border: none;
        border-radius: 7px;
        padding: 6px 14px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        transition: opacity 0.2s, transform 0.15s;
    }
    
    .btn-acao:hover { transform: translateY(-1px); }
    
    .btn-acao-editar {
        background: #DE7512;
        color: #fff;
    }
    
    .btn-acao-excluir {
        background: rgba(231, 76, 60, 0.85);
        color: #fff;
    }
    
    .btn-acao-reativar {
        background: rgba(46, 204, 113, 0.85);
        color: #fff;
    }    

/* ============================================================
   MODAIS
============================================================ */
 
    .modal-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(3px);
        z-index: 1000;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    .modal-overlay.aberto {
        display: flex;
    }
    
    .modal-box {
        background: #21412D;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 16px;
        padding: 28px;
        width: 100%;
        max-width: 720px;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    
    .modal-box-pequeno {
        max-width: 440px;
    }
    
    .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 22px;
    }
    
    .modal-header h3 {
        color: #DE7512;
        font-size: 1.3rem;
        margin: 0;
    }
    
    .modal-close {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.6);
        font-size: 1.3rem;
        cursor: pointer;
        line-height: 1;
    }
    
    .modal-close:hover { color: #fff; }
    
    .modal-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .modal-col-2 {
        grid-column: 1 / -1;
    }
    
    .modal-grid select {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 10px;
        color: #fff;
        padding: 12px 14px;
        font-size: 0.95rem;
        outline: none;
    }
    
    .modal-grid select option {
        background: #21412D;
    }
    
    .modal-acoes {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        margin-top: 24px;
    }
    
    .confirma-texto {
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.6;
        margin: 0 0 10px;
    }
    
    .btn-perigo {
        background: #e74c3c;
        color: #fff;
        border: none;
        border-radius: 10px;
        padding: 12px 28px;
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s;
    }
    
    .btn-perigo:hover { background: #c0392b; }

/* ============================================================
   DASHBOARD ADMIN — LAYOUT SIDEBAR + CONTEÚDO
============================================================ */

.dash-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

/* -- Menu lateral -- */
.dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #21412D;
    border-radius: 15px;
    padding: 20px;
    position: sticky;
    top: 140px;
}

.side-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.side-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.side-btn.ativo {
    background: rgba(222, 117, 18, 0.18);
    border-color: #DE7512;
    color: #DE7512;
}

.side-icon {
    font-size: 1.3rem;
    line-height: 1;
}

/* -- Área de conteúdo -- */
.dash-conteudo {
    min-height: 400px;
    background: #21412D;
    border-radius: 15px;
    padding: 8px;
}

/* Quando a gestão de usuários está dentro do conteúdo,
   evita "card dentro de card": deixa o fundo transparente */
.dash-conteudo .gestao-usuarios {
    background: transparent;
    padding: 24px;
}

/* -- Boas-vindas / Em breve -- */
.secao-welcome,
.secao-em-breve {
    text-align: center;
    padding: 70px 30px;
}

.welcome-icon {
    font-size: 3.5rem;
    margin-bottom: 18px;
}

.secao-welcome h2,
.secao-em-breve h2 {
    color: #DE7512;
    font-size: 1.5rem;
    margin: 0 0 12px;
}

.secao-welcome p,
.secao-em-breve p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 460px;
    margin: 0 auto;
}

/* ============================================================
   TAG LIBERADO (coluna da gestão de usuários)
============================================================ */

.tag-liberado {
    display: inline-block;
    color: #2ecc71;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

/* ============================================================
   GESTÃO DE PROPRIEDADES — complementos
============================================================ */

/* Dica abaixo do campo (ex: "Informe em hectares") */
.campo-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    margin-top: 5px;
}

/* Container dos controles no cabeçalho (busca + botão) */
.gestao-acoes {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Botão "+ Nova Propriedade" não estica em largura total */
.gestao-acoes .btn-proximo {
    white-space: nowrap;
}

/* ============================================================
   EVENTOS — HERO
============================================================ */

.heroeventos {
    min-height: 100vh;
    padding: 140px 8% 80px;

    background:
        linear-gradient(rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.45)),
        url('herotransp.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* ============================================================
   SERVIÇOS — HERO
============================================================ */

.heroservicos {
    min-height: 100vh;
    padding: 140px 8% 80px;

    background:
        linear-gradient(rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.45)),
        url('herotransp.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ============================================================
   RODAPÉ
============================================================ */

footer {
    background: #21412D;
}

.logofooter img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 8%;
}

.endereco {
    text-align: center;
}

.linkendereco {
    margin-top: 10px;
    text-align: center;
}

.linkendereco a {
    color: white;
    text-decoration: none;
}

.linkendereco a img {
    margin-left: auto;
    margin-right: auto;
    width: 2.5%;
}

.social {
    margin-top: 10px;
    text-align: center;
}

.social a {
    color: white;
    text-decoration: none;
}

.social a img {
    margin-left: auto;
    margin-right: auto;
    width: 1.5%;
}

.copyright {
    margin-top: 50px;
    text-align: center;
}

/* ============================================================
   RESPONSIVO — até 768 px (GERAL + INDEX)
============================================================ */

@media (max-width: 768px) {

    header {
        padding: 0.6rem 1rem;
    }

    .logo {
        margin-left: 1rem;
    }

    .logo img {
        height: 60px;
    }

    .hamburger {
        display: flex;
        margin-right: 1rem;
    }

    nav {
        display: none;
        width: 100%;
        background: #21412D;
        justify-content: flex-start;
        order: 3;
    }

    nav.open {
        display: flex;
    }

    .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 0.5rem 0;
    }

    .menu li a {
        padding: 0.75rem 1.25rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .menu .dropdown .submenu {
        display: none;
        position: static;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, .18);
        border-radius: 0;
        border-left: 3px solid #DE7512;
        padding: 0;
        min-width: unset;
    }

    .menu .dropdown:hover .submenu,
    .menu .dropdown:focus-within .submenu {
        display: none;
    }

    .menu .dropdown.open .submenu {
        display: block;
    }

    .menu .dropdown .submenu li a {
        padding: 0.65rem 1.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, .05);
    }

    .hero {
        min-height: auto;
        padding: 120px 6% 50px;
    }

    .hero-text {
        flex: 1;
        font-size: 1rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
        text-align: justify;
    }

}

/* ============================================================
   RESPONSIVO — até 768 px (RODAPÉ)
============================================================ */

@media (max-width: 768px) {

    .logofooter img {
        width: 36%;
    }

    .social a img {
        width: 12%;
    }

    .linkendereco a img {
        width: 15%;
    }

}

/* ============================================================
   RESPONSIVO — até 768 px (QUEM SOMOS)
============================================================ */

@media (max-width: 768px) {

    .heroquemsomos {
        flex-direction: column;
        min-height: auto;
        padding: 120px 6% 50px;
        gap: 30px;
    }

    .hero-image-qs {
        position: static;
        display: block;  /* 👈 garante que a imagem apareça */
        width: 100%;
        transform: translateY(40px);
    }

    .hero-image-qs.visivel {
        transform: translateY(0);     /* 👈 */
    }

    .hero-text-qs h1 {
        font-size: 1.4rem;
    }

    .hero-text-qs h2 {
        font-size: 1.1rem;
    }

    .hero-text-qs p {
        font-size: 0.95rem;
        text-align: justify;
    }

    .hero-image-qs img {
        width: 100%;
        display: block;
    }

    .mvv {
        padding: 50px 6%;
    }

    .mvv-header h2 {
        font-size: 1.4rem;
    }

    .mvv-card {
        padding: 20px;
    }

    .mvv-card h3 {
        font-size: 1.2rem;
    }

    .mvv-card p {
        font-size: 0.9rem;
        text-align: justify;
    }

}

/* ============================================================
   RESPONSIVO — IRRIGACERTO / CADASTRO
============================================================ */

@media (max-width: 768px) {

    .heroirrigacerto {
        flex-direction: column;
        padding: 110px 6% 60px;
        gap: 40px;
    }

    .hero-text-ic h1 {
        font-size: 2.2rem;
    }

    .hero-login-ic {
        flex: unset;
        width: 100%;
    }

    .login-card {
        padding: 28px 22px;
    }

    .cadastro-container {
        padding: 32px 20px 28px;
    }

    .form-row.dois-col {
        grid-template-columns: 1fr;
    }

    .tipo-cadastro-group {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        gap: 0;
    }

    .step span:last-child {
        font-size: 0.65rem;
    }

    /* -- Responsivo -- */
    @media (max-width: 768px) {

        .dash {
            padding: 110px 6% 60px;
        }

        .dash-topo {
            flex-direction: column;
            align-items: flex-start;
        }

        .dash-nome {
            font-size: 1.6rem;
        }
    }

    /* -- Responsivo -- */
    @media (max-width: 768px) {
    
        .gestao-usuarios { padding: 20px; }
    
        .gestao-header { flex-direction: column; align-items: stretch; }
    
        .busca-input { min-width: unset; width: 100%; }
    
        .modal-grid { grid-template-columns: 1fr; }
    
        .modal-box { padding: 20px; }
    
    }

    /* -- Responsivo -- */
    @media (max-width: 900px) {

        .dash-layout {
            grid-template-columns: 1fr;
        }

        .dash-sidebar {
            position: static;
            flex-direction: row;
            flex-wrap: wrap;
        }

        .side-btn {
            flex: 1;
            min-width: 160px;
            justify-content: center;
        }

    }

    /* -- Responsivo -- */
    @media (max-width: 768px) {
    .gestao-acoes {
        width: 100%;
    }
    .gestao-acoes .busca-input {
        flex: 1;
        min-width: unset;
    }
    }

}


/* ============================================================
   AJUSTES DE TELA — CELULAR / TABLET  (20/11/2026)
   Bloco acrescentado ao FINAL do arquivo. Nada acima foi alterado.
============================================================ */

/* 1) Largura real = largura declarada (antes, o cabeçalho com width:100%
      + padding ficava ~32px maior que a tela e empurrava o botão do menu
      para fora, à direita). */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2) Imagens e mídias nunca passam da largura da tela. */
img, svg, video, iframe {
    max-width: 100%;
}
.logo img {
    max-width: none;            /* a logo mantém a altura definida acima */
}

/* 3) Logo: o recuo fixo de 30rem (480px) agora acompanha a largura da tela.
      Em 1920px continua igual (480px); em notebooks/tablets diminui até zero. */
.logo {
    margin-left: clamp(0px, calc(50vw - 480px), 30rem);
}

/* 4) Nada "vaza" para os lados: as animações de entrada (AOS fade-left /
      fade-right) começam deslocadas 100px para o lado — em alguns celulares
      isso alargava a página e o navegador reduzia/ampliava a tela. */
.secoes-wrapper,
section,
footer {
    overflow-x: clip;
}

/* 5) Tablet / notebook pequeno (769px a 1100px): menu em uma linha, compacto. */
@media (min-width: 769px) and (max-width: 1100px) {
    header {
        padding: 0.5rem 1rem;
    }
    .logo img {
        height: 70px;
    }
    .menu li a {
        padding: 6px 8px;
        font-size: 0.95rem;
    }
}

/* 6) Celular (até 768px). */
@media (max-width: 768px) {

    header {
        padding: 0.5rem 0.75rem;
    }

    .logo {
        margin-left: 0;
    }

    /* Menu aberto ocupa a linha inteira, abaixo da logo (o "flex: 1" do
       desktop fazia o menu abrir espremido ao lado da logo) */
    nav {
        flex: 0 0 100%;
    }

    .hamburger {
        margin-right: 0;
        padding: 0.6rem;        /* área de toque maior */
    }

    /* Menu aberto: rola por dentro se não couber na altura da tela */
    nav.open {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    /* No celular as animações laterais viram "subir", sem deslocar para os lados */
    [data-aos="fade-left"]:not(.aos-animate),
    [data-aos="fade-right"]:not(.aos-animate) {
        transform: translate3d(0, 30px, 0);
    }

    /* Textos longos (e-mails, links) quebram em vez de alargar a tela */
    p, h1, h2, h3, a, li, span, label {
        overflow-wrap: break-word;   /* quebra só palavras que não cabem; não espreme tabelas */
    }

    .menu li a,
    .menu .dropdown .submenu li a {
        white-space: normal;
    }
}

/* ============================================================
   CADASTRO — botões das etapas e campos de senha  (20/11/2026)
============================================================ */

/* "Criar Conta" do tamanho do texto, igual ao "Próximo →" */
.etapa-btn .btn-login {
    width: auto;
    margin-top: 0;
    padding: 12px 28px;
    font-size: 0.95rem;
}

/* "← Voltar" sempre em uma linha; botões alinhados pela altura */
.etapa-btn .btn-voltar-etapa,
.etapa-btn .btn-proximo,
.etapa-btn .btn-login {
    white-space: nowrap;
}
.etapa-btn.dois-btns {
    align-items: center;
    gap: 12px;
}

/* Campo de senha ocupa a largura toda (o olho fica dentro do campo) */
.input-senha-wrapper input {
    flex: 1;
    width: 100%;
    min-width: 0;
}

/* Cadastro: nomes das etapas não quebram no meio da palavra (4 etapas no celular) */
@media (max-width: 768px) {
    .progress-steps .step span {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
        font-size: 0.68rem;
        text-align: center;
    }
}
