* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #234b2f;
    --primary-strong: #183521;
    --secondary: #5f8f4e;
    --accent: #2e7d32;
    --accent-hover: #1f5f24;
    --accent-soft: #eaf5ea;
    --text: #1f2937;
    --text-soft: #5b6472;
    --white: #ffffff;
    --light: #f7f8f5;
    --light-2: #f1f5ef;
    --border: #dde6dc;
    --footer: #102a1b;
    --footer-text: #c9d8cd;
    --overlay: rgba(0, 0, 0, 0.38);
    --success-bg: #e9f8ec;
    --success-text: #1f6b2b;
    --error-bg: #fdecec;
    --error-text: #b42318;
    --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 15px 35px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.18);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: 0.28s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background-color: var(--white);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a,
button,
input,
textarea {
    font: inherit;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* HEADER */
header.container {
    width: min(1280px, 96%);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px;
    width: 100%;
    background-color: var(--white);
    position: relative;
    z-index: 20;
}

#logo {
    flex-shrink: 0;
}

#logo img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin-right: 0;
    transition: transform var(--transition);
}

#logo img:hover {
    transform: scale(1.03);
}

.item_nav {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.item_nav > li > a {
    padding: 10px 12px;
    color: var(--primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-block;
}

.letras:hover {
    background-color: rgba(46, 125, 50, 0.08);
    color: var(--accent);
}

/* Bandeiras */
.flag-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 4px;
    flex-shrink: 0;
}

.flag-item:last-child {
    margin-right: 14px;
}

#flag1,
#flag2,
#flag3 {
    width: 26px;
    height: 26px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

#flag1:hover,
#flag2:hover,
#flag3:hover {
    transform: scale(1.08);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 250px;
    background-color: var(--white);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 9999;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.dropdown-menu li b {
    font-style: normal;
    font-weight: 600;
}

.dropdown-menu li a:hover {
    background-color: var(--accent-soft);
    color: var(--accent);
}

/* HERO */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 74vh;
    overflow: hidden;
}

.hero-section > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    min-height: 74vh;
    background: linear-gradient(to bottom, rgba(16, 42, 27, 0.28), rgba(16, 42, 27, 0.58));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 20px;
}

.hero-content {
    width: min(900px, 100%);
    color: var(--white);
}

#hero-title {
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1.05;
    margin-bottom: 18px;
    text-shadow: 2px 2px 14px rgba(0, 0, 0, 0.55);
}

#hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    line-height: 1.75;
    margin-bottom: 30px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.45);
    max-width: 760px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--white);
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: var(--transition);
    display: inline-block;
    box-shadow: 0 10px 24px rgba(46, 125, 50, 0.25);
}

.hero-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--primary));
    transform: translateY(-2px);
}

/* HISTÓRIA */
.livro-section {
    display: flex;
    justify-content: center;
    align-items: center;
    background: url(../img/mesa.jpg) center/cover no-repeat;
    padding: 70px 20px;
}

.book-wrap {
    width: min(1150px, 100%);
    background: #1d120d;
    padding: 18px;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    background-image: url("https://www.transparenttextures.com/patterns/leather.png");
}

.book {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.3fr);
    background: #fcfbf7;
    background-image: url("https://www.transparenttextures.com/patterns/paper-fibers.png");
    border-radius: 14px;
    overflow: hidden;
    color: #3a251a;
    position: relative;
}

.book::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: clamp(280px, 43%, 430px);
    width: 6px;
    background: linear-gradient(to bottom, #b6b6b6, #6c6c6c, #b6b6b6);
    transform: translateX(-50%);
    z-index: 2;
}

.page {
    padding: 38px 32px;
    position: relative;
    z-index: 1;
}

.page h1 {
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 18px;
    line-height: 1.2;
    color: var(--primary-strong);
}

.page p {
    font-size: clamp(1rem, 1.2vw, 1.12rem);
    line-height: 1.9;
    color: #4a3528;
}

.page.left::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 35px 0 45px -30px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.page.right::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset -35px 0 45px -30px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.image-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.image-container img {
    width: min(100%, 360px);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.22));
}

/* SERVIÇOS / CARROSSEL */
.services-section {
    width: 100%;
    padding: 70px 20px;
    background: linear-gradient(to bottom, #ffffff, #f7faf6);
}

.carousel-container {
    position: relative;
    width: min(1100px, 100%);
    height: 620px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}

.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12));
}

.slide-text {
    position: absolute;
    bottom: 14%;
    left: 5%;
    max-width: 80%;
    color: var(--white);
    text-align: left;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.75);
    z-index: 2;
}

.slide-text h3 {
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(1.4rem, 2.8vw, 2.5rem);
    line-height: 1.22;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(16, 42, 27, 0.55);
    color: white;
    border: none;
    padding: 11px 13px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    border-radius: 999px;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(16, 42, 27, 0.82);
}

.prev-btn {
    left: 16px;
}

.next-btn {
    right: 16px;
}

.carousel-nav-buttons {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-btn {
    padding: 0;
    border: 2px solid transparent;
    cursor: pointer;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.nav-btn img {
    width: 78px;
    height: 52px;
    object-fit: cover;
    display: block;
}

.nav-btn.active {
    transform: scale(1.05);
    border: 3px solid rgba(255, 255, 255, 0.95);
}

/* CONTACTOS */
.contact-section {
    padding: 70px 20px;
    background-color: var(--light);
}

.contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding: 10px 0 20px;
}

.contact-box h2 {
    font-family: "Inter", Arial, sans-serif;
    color: var(--primary);
    font-size: clamp(2.2rem, 4vw, 2.8rem);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 20px;
    width: min(1100px, 100%);
}

.contact-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 28px 18px;
    text-decoration: none;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    min-height: 160px;
    border: 1px solid rgba(46, 125, 50, 0.08);
}

.contact-card:hover {
    transform: translateY(-6px);
    color: var(--accent);
    box-shadow: var(--shadow-md);
}

.contact-card i {
    font-size: 30px;
    color: var(--accent);
}

/* FOOTER */
.site-footer {
    background: var(--footer);
    color: #e8f3eb;
    padding-top: 55px;
}

.footer-container {
    width: min(1200px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-column h3,
.footer-column h4 {
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-column h3 {
    font-family: "Inter", Arial, sans-serif;
    font-size: 30px;
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
}

.footer-column p {
    color: var(--footer-text);
    line-height: 1.7;
    font-size: 15px;
}

.footer-column a {
    display: block;
    color: var(--footer-text);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: #7ee081;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #b8c8bc;
}

/* MODAIS */
#cortina {
    display: none;
    position: fixed;
    backdrop-filter: blur(3px);
    background-color: rgba(0, 0, 0, 0.48);
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
}

.formulario {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: min(92vw, 650px);
    max-height: 90vh;
    overflow-y: auto;
    background-image: linear-gradient(rgba(16, 42, 27, 0.78), rgba(16, 42, 27, 0.78)), url(../img/tronco.jpg);
    background-size: cover;
    color: #eee;
    padding: 22px;
    z-index: 10000;
    box-shadow: var(--shadow-lg);
}

.formulario h2,
.formulario h3 {
    margin-bottom: 16px;
}

.formulario label {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 600;
}

.formulario input,
.formulario textarea {
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    margin-bottom: 12px;
    padding: 11px 12px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
}

.formulario textarea {
    resize: vertical;
    min-height: 120px;
}

.campo-oculto {
    display: none !important;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

#login {
    width: min(92vw, 340px);
    height: auto;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.767);
}

#btn-reset,
#btn-reset-login {
    background-color: #eeeeeece;
    color: rgba(0, 0, 0, 0.793);
}

.btn,
#btn-submeter,
#btn-enter {
    background-color: var(--accent);
    color: #eee;
    height: 42px;
    border-radius: 8px;
    margin-right: 0;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

#btn-fechar1,
#btn-fechar2 {
    background-color: var(--primary);
    color: #eee;
    height: 42px;
    border-radius: 8px;
    margin-right: 0;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

#btn-fechar2:hover,
#btn-enter:hover,
#btn-fechar1:hover,
#btn-reset:hover,
#btn-submeter:hover,
#btn-reset-login:hover {
    transform: translateY(-1px);
}

#btn-submeter.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

#btn-submeter.is-loading::after {
    content: " ...";
}

.mensagem-retorno {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    font-weight: 600;
    line-height: 1.5;
}

.mensagem-retorno.sucesso {
    display: block;
    background: var(--success-bg);
    color: var(--success-text);
}

.mensagem-retorno.erro {
    display: block;
    background: var(--error-bg);
    color: var(--error-text);
}

/* MOBILE MENU */
.invis {
    display: none;
}

.btn-abrir-menu {
    display: none;
}

.btn-abrir-menu i {
    font-size: 40px;
    padding-left: 2.5vw;
    color: var(--primary);
}

.menu-mobile {
    background-color: var(--secondary);
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999999;
    width: 0;
    overflow: hidden;
    transition: 0.25s ease;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.18);
}

.overlay-menu {
    background-color: rgba(0, 0, 0, 0.623);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 88888;
    display: none;
}

.menu-mobile.abrir-menu {
    width: min(85vw, 360px);
}

.menu-mobile .bnt-close {
    padding: 18px 20px;
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
}

.menu-mobile .bnt-close i {
    color: white;
    font-size: 36px;
    cursor: pointer;
}

.menu-mobile nav {
    background-color: var(--secondary);
    height: calc(100% - 60px);
    display: block;
    overflow-y: auto;
    min-height: auto;
}

.menu-mobile nav ul {
    text-align: left;
    padding: 0;
    margin: 0;
    list-style: none;
}

.menu-mobile nav ul li a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    text-decoration: none;
    color: #eee;
    font-size: 1.05rem;
    font-weight: 500;
}

.menu-mobile nav ul li a:hover {
    background-color: #9BDAF2;
    color: var(--primary);
}

.email {
    font-size: 18px;
}

/* RESPONSIVO */
@media screen and (max-width: 1100px) {
    #logo img {
        width: 64px;
        height: 64px;
    }

    .item_nav > li > a {
        font-size: 15px;
        padding: 8px 10px;
    }
}

@media screen and (max-width: 1024px) {
    .book {
        grid-template-columns: 1fr;
    }

    .book::before,
    .page.left::after,
    .page.right::after {
        display: none;
    }

    .image-container img {
        width: min(80%, 300px);
    }

    .carousel-container {
        height: 520px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 900px) {
    nav {
        min-height: 78px;
    }

    .item_nav > li > a {
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .inv00 {
        display: none;
    }

    .btn-abrir-menu,
    .bnt-close,
    .invis {
        display: block;
    }

    nav {
        justify-content: space-between;
        min-height: 76px;
    }

    #logo img {
        width: 58px;
        height: 58px;
    }

    .item_nav {
        gap: 6px;
        padding-top: 0;
    }

    .flag-item {
        width: 34px;
        height: 34px;
        margin-right: 2px;
    }

    .flag-item:last-child {
        margin-right: 0;
    }

    #flag1,
    #flag2,
    #flag3 {
        width: 24px;
        height: 24px;
    }

    .hero-section,
    .hero-overlay {
        min-height: 58vh;
    }

    .book-wrap {
        width: 96%;
        padding: 12px;
    }

    .page {
        padding: 24px 20px;
    }

    .page p {
        font-size: 1rem;
        line-height: 1.75;
    }

    .image-container img {
        width: min(80%, 260px);
    }

    .carousel-container {
        width: 94%;
        height: 430px;
    }

    .nav-btn img {
        width: 60px;
        height: 40px;
    }

    .slide-text {
        bottom: 12%;
        max-width: 88%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    header.container {
        width: 94%;
    }

    nav {
        gap: 10px;
        min-height: 72px;
    }

    #logo img {
        width: 52px;
        height: 52px;
    }

    .item_nav {
        gap: 4px;
    }

    .flag-item {
        width: 30px;
        height: 30px;
    }

    #flag1,
    #flag2,
    #flag3 {
        width: 22px;
        height: 22px;
    }

    .btn-abrir-menu i {
        font-size: 34px;
        padding-left: 0;
    }

    .hero-section,
    .hero-overlay {
        min-height: 50vh;
    }

    #hero-title {
        font-size: 2rem;
    }

    #hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
        padding: 12px 18px;
        font-size: 16px;
    }

    .livro-section {
        padding: 24px 12px;
    }

    .book-wrap {
        width: 100%;
        padding: 10px;
    }

    .page {
        padding: 18px 16px;
    }

    .page h1 {
        font-size: 1.6rem;
    }

    .page p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .image-container img {
        width: min(85%, 220px);
    }

    .carousel-container {
        height: 320px;
        width: 94%;
        border-radius: 14px;
    }

    .carousel-nav-buttons {
        display: none;
    }

    .slide-text h3 {
        font-size: 1.05rem;
    }

    .prev-btn,
    .next-btn {
        padding: 8px 10px;
        font-size: 20px;
    }

    .contact-section {
        padding: 40px 14px;
    }

    .contact-card {
        min-height: 130px;
        padding: 20px 14px;
    }

    .formulario {
        width: 92%;
        padding: 14px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn,
    .form-actions button,
    .form-actions input {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h3 {
        font-size: 24px;
    }

    .footer-column h4 {
        font-size: 17px;
    }
}