body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Header */
/* header {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    height: 82px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-10deg);
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: rotate(0deg) scale(1.1);
}

.logo-icon::before {
    content: "📚";
    font-size: 20px;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1002;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
}

.nav-menu.active li {
    opacity: 1;
    transform: translateX(0);
}

.nav-menu.active li:nth-child(1) {
    transition-delay: 0.1s;
}
.nav-menu.active li:nth-child(2) {
    transition-delay: 0.2s;
}
.nav-menu.active li:nth-child(3) {
    transition-delay: 0.3s;
}
.nav-menu.active li:nth-child(4) {
    transition-delay: 0.4s;
}
.nav-menu.active li:nth-child(5) {
    transition-delay: 0.5s;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu li a:hover {
    background: linear-gradient(45deg, #e53e3e, #c53030);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
}

.mobile-menu {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1003;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.mobile-menu:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.mobile-menu.active {
    color: #e53e3e;
    transform: translateY(-50%) rotate(90deg);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(2px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
} */

/* Main Content */
main {
    padding-top: 8rem;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Hero Title Section */
.hero-title-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-title-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.title-content {
    color: #2d3748;
}

.main-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #2d3748;
}

.title-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #e53e3e, #c53030);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(229, 62, 62, 0.3);
}

.title-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(229, 62, 62, 0.4);
}

.title-bookshelf {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><defs><linearGradient id="bookBg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23d4a574;stop-opacity:0.3"/><stop offset="50%" style="stop-color:%23a0522d;stop-opacity:0.5"/><stop offset="100%" style="stop-color:%238b4513;stop-opacity:0.3"/></linearGradient></defs><rect width="800" height="400" fill="url(%23bookBg)"/><rect x="50" y="50" width="30" height="300" fill="%23c53030" opacity="0.4"/><rect x="100" y="80" width="25" height="270" fill="%232563eb" opacity="0.4"/><rect x="140" y="60" width="35" height="290" fill="%2310b981" opacity="0.4"/><rect x="190" y="70" width="28" height="280" fill="%23f59e0b" opacity="0.4"/><rect x="300" y="40" width="32" height="310" fill="%238b5cf6" opacity="0.4"/><rect x="350" y="55" width="27" height="295" fill="%23ef4444" opacity="0.4"/><rect x="400" y="65" width="30" height="285" fill="%2306b6d4" opacity="0.4"/><rect x="500" y="45" width="28" height="305" fill="%23f97316" opacity="0.4"/><rect x="550" y="70" width="25" height="280" fill="%2322c55e" opacity="0.4"/><rect x="600" y="50" width="33" height="300" fill="%23a855f7" opacity="0.4"/><circle cx="200" cy="150" r="20" fill="white" opacity="0.1"/><circle cx="600" cy="300" r="30" fill="white" opacity="0.08"/></svg>');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
}

.open-book {
    position: relative;
    width: 350px;
    height: 250px;
    perspective: 1200px;
    animation: bookFloat 4s ease-in-out infinite;
}

.book-spine {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 25px;
    background: linear-gradient(180deg, #8b4513, #654321);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.book-pages {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.page-left,
.page-right {
    position: absolute;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #fef7ed 0%, #f7fafc 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-left {
    left: 0;
    transform-origin: right center;
    transform: rotateY(-25deg);
    animation: pageFlutterLeft 6s ease-in-out infinite;
}

.page-right {
    right: 0;
    transform-origin: left center;
    transform: rotateY(25deg);
    animation: pageFlutterRight 6s ease-in-out infinite;
}

.page-content {
    padding: 15px;
    height: 100%;
    position: relative;
}

.page-lines {
    position: absolute;
    top: 20px;
    left: 15px;
    right: 15px;
    bottom: 20px;
}

.page-line {
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
    border-radius: 1px;
    animation: textAppear 8s ease-in-out infinite;
}

.page-line:nth-child(1) {
    width: 90%;
    animation-delay: 0s;
}

.page-line:nth-child(2) {
    width: 95%;
    animation-delay: 0.5s;
}

.page-line:nth-child(3) {
    width: 80%;
    animation-delay: 1s;
}

.page-line:nth-child(4) {
    width: 88%;
    animation-delay: 1.5s;
}

.page-line:nth-child(5) {
    width: 92%;
    animation-delay: 2s;
}

.page-line:nth-child(6) {
    width: 85%;
    animation-delay: 2.5s;
}

.page-line:nth-child(7) {
    width: 90%;
    animation-delay: 3s;
}

.page-line:nth-child(8) {
    width: 87%;
    animation-delay: 3.5s;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(229, 62, 62, 0.6);
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
}

.particle:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.particle:nth-child(2) {
    left: 60%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.particle:nth-child(3) {
    left: 80%;
    animation-delay: 4s;
    animation-duration: 10s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 6s;
    animation-duration: 9s;
}

@keyframes bookFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(1deg);
    }

    50% {
        transform: translateY(-5px) rotate(0deg);
    }

    75% {
        transform: translateY(-12px) rotate(-1deg);
    }
}

@keyframes pageFlutterLeft {

    0%,
    100% {
        transform: rotateY(-25deg);
    }

    25% {
        transform: rotateY(-30deg);
    }

    50% {
        transform: rotateY(-20deg);
    }

    75% {
        transform: rotateY(-28deg);
    }
}

@keyframes pageFlutterRight {

    0%,
    100% {
        transform: rotateY(25deg);
    }

    25% {
        transform: rotateY(20deg);
    }

    50% {
        transform: rotateY(30deg);
    }

    75% {
        transform: rotateY(22deg);
    }
}

@keyframes textAppear {

    0%,
    20% {
        opacity: 0;
        width: 0;
    }

    30%,
    70% {
        opacity: 1;
    }

    80%,
    100% {
        opacity: 0;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.bookshelf-container {
    display: none;
    /* Hide the old bookshelf */
}

/* Distribuidores Section */
.distribuidores-section {
    padding: 6rem 2rem;
    position: relative;
    background: white;
}

/* Responsive for hero title */
@media (max-width: 968px) {
    .hero-title-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .title-bookshelf {
        height: 300px;
        order: -1;
    }

    .bookshelf-container {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .hero-title-section {
        padding: 3rem 1rem;
    }

    .title-bookshelf {
        height: 250px;
    }

    .bookshelf-container {
        transform: scale(0.6);
    }
}

.distribuidores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

.distribuidores-grid:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #e53e3e, #c53030);
    border-radius: 2px;
    animation: dividerPulse 3s ease-in-out infinite;
}

.distribuidores-grid:last-child {
    justify-items: center;
    margin: 0 auto;
}

@keyframes dividerPulse {

    0%,
    100% {
        width: 100px;
        opacity: 0.7;
        box-shadow: 0 0 10px rgba(229, 62, 62, 0.3);
    }

    50% {
        width: 150px;
        opacity: 1;
        box-shadow: 0 0 20px rgba(229, 62, 62, 0.6);
    }
}

.distribuidor-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;


}

.distribuidor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.distribuidor-header {
    background: linear-gradient(45deg, #e53e3e, #c53030);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.distribuidor-content {
    padding: 1.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.distribuidor-details {
    display: none;
    animation: fadeIn 0.3s ease;
}

.distribuidor-details.active {
    display: block;
}

.detail-row {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: #4a5568;
    min-width: 80px;
    font-size: 0.9rem;
}

.detail-value {
    color: #2d3748;
    font-size: 0.9rem;
    line-height: 1.4;
}

.visualizar-btn {
    background: linear-gradient(45deg, #e53e3e, #c53030);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.visualizar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 62, 62, 0.4);
}

.visualizar-btn.active {
    background: linear-gradient(45deg, #4a5568, #2d3748);
}

.visualizar-btn.active:hover {
    box-shadow: 0 8px 20px rgba(74, 85, 104, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .distribuidores-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 968px) {
    .distribuidores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .nav-menu {
        width: 280px;
    }

    .mobile-menu {
        right: 1rem;
        font-size: 1.5rem;
        width: 45px;
        height: 45px;
        padding: 0.6rem;
    }

    main {
        padding-top: 6rem;
    }

    .distribuidores-section {
        padding: 3rem 1rem 4rem;
    }
}

@media (max-width: 768px) {
    .distribuidores-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .distribuidores-grid:last-child {
        grid-template-columns: 1fr;
    }


    header {
        padding: 1rem;
    }
}




.logo_colecoes {
    width: 35%;
}





/* FOOTER */