@media (max-width: 991px) {
    .hero-stats {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin: 18px 0 18px 0 !important;
    }
    .hero-stats .stat-item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        text-align: center !important;
        background: rgba(255,255,255,0.07) !important;
        border-radius: 8px !important;
        padding: 10px 4px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .hero-stats .stat-number {
        display: block !important;
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        color: #fff !important;
        margin-bottom: 2px !important;
    }
    .hero-stats .stat-label {
        display: block !important;
        font-size: 0.93rem !important;
        color: #e9ecef !important;
        font-weight: 400 !important;
    }
}
/* Ajustes mobile para Hero Section - primeira dobra */
@media (max-width: 991px) {
    .hero-stats {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 18px;
        margin: 18px 0 18px 0;
    }
    .hero-stats .stat-item {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
        background: rgba(255,255,255,0.07);
        border-radius: 8px;
        padding: 10px 6px;
        margin: 0;
    }
    .hero-stats .stat-number {
        display: block;
        font-size: 1.3rem;
        font-weight: 700;
        color: #fff;
        margin-bottom: 2px;
    }
    .hero-stats .stat-label {
        display: block;
        font-size: 0.93rem;
        color: #e9ecef;
        font-weight: 400;
    }
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 18px;
    }
    .hero-cta a {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}
/*
Theme Name: Victor's Logistics Theme
Description: Tema personalizado para Victor's Logistics - Logística Internacional e Serviços Expressos
Author: Amicatek
Version: 1.0
License: GPL v2 or later
Text Domain: victorslog
Domain Path: /languages
*/

/* ==========================================================================
   Reset e Base Styles
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    line-height: 1.6;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #1B4F72;
}

h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2E86C1;
}

h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2E86C1;
}

p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}

a {
    color: #2E86C1;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #DC3545;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 20px 0;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    background: linear-gradient(135deg, #DC3545 0%, #C82333 50%, #A71D2A 100%);
    position: relative;
    /* overflow: hidden;  // REMOVIDO: isso cortava o dropdown */
    overflow: visible;
    z-index: 1000; /* header acima do hero */
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/images/sunset-bg.jpg') center center/cover;
    opacity: 0.3;
    z-index: 1;
}

.header-top {
    background-color: #1B4F72;
    padding: 10px 0;
    font-size: 12px;
    position: relative;
    z-index: 2;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-selector {
    display: flex;
    gap: 10px;
}

.language-selector img {
    width: 20px;
    height: 15px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.language-selector img:hover {
    border-color: #DC3545;
}

.contact-info {
    color: white;
}

.header-main {
    background: linear-gradient(135deg, #F44336 0%, #E53935 30%, #D32F2F 70%, #C62828 100%);
    padding: 20px 0;
    position: relative;
    z-index: 2;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    max-width: 250px;
}

.site-logo img {
    max-width: 100%;
    height: auto;
}

.tagline {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    text-align: center;
    flex: 1;
    margin: 0 20px;
}

.tracking-section {
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 5px;
    min-width: 300px;
}

.tracking-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tracking-form input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
}

.tracking-form button {
    background: #2E86C1;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.tracking-form button:hover {
    background: #1B4F72;
}

/* ==========================================================================
   Navigation Styles
   ========================================================================== */

.main-navigation {
    background: #2E86C1;
    position: relative;
    z-index: 1200; /* acima do header pseudo-element & hero */
    overflow: visible; /* garantir que dropdown não seja cortado */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    overflow: visible; /* garantir que dropdown não seja cortado */
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative; /* necessário para submenu absoluto */
}

.primary-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: white;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    border-right: 1px solid #5DADE2;
    transition: background-color 0.3s ease;
}

.primary-menu > li > a:hover,
.primary-menu > li:hover > a {
    background-color: #1B4F72;
    color: #DC3545;
}

/* ==========================================
   DROPDOWN - SOLUÇÃO SIMPLES (DESKTOP)
   ========================================== */

@media (min-width: 992px) {
    .primary-menu .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #0f3a57; /* mais escuro que a barra */
        min-width: 260px;
        z-index: 9999;
        list-style: none;
        margin: 0;
        padding: 8px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.35);
        border-radius: 8px;
        border-top: 3px solid #DC3545;
    }
}

@media (min-width: 992px) {
    /* DESKTOP: Hover */
    .primary-menu > li:hover > .sub-menu {
        display: block !important;
    }

    .primary-menu .sub-menu li {
        width: 100%;
    }

    .primary-menu .sub-menu li a {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 13px;
        font-weight: 500;
        display: block;
        color: #fff;
        text-decoration: none;
        white-space: nowrap;
        transition: background-color 0.25s ease, padding-left 0.25s ease, color 0.25s ease;
    }

    .primary-menu .sub-menu li:last-child a {
        border-bottom: none;
        border-radius: 0 0 8px 8px;
    }

    .primary-menu .sub-menu li a:hover,
    .primary-menu .sub-menu li a:focus {
        background-color: #155a84;
        color: #F8C471;
        padding-left: 22px;
    }
}

/* Terceiro nível (flyout) no desktop */
@media (min-width: 992px) {
    .primary-menu .sub-menu li { position: relative; }
    .primary-menu .sub-menu .sub-menu {
        top: 0;
        left: 100%;
        margin-left: 8px;
        border-top: none;
        border-radius: 8px;
        min-width: 240px;
    }
    .primary-menu .sub-menu li:hover > .sub-menu { display: block !important; }
    .primary-menu li.menu-item-has-children > a::after { content: ' ▼'; font-size: 10px; }
    .primary-menu .sub-menu li.menu-item-has-children > a::after { content: ' ▶'; float: right; }
}

/* Mobile/Tablet: menu hamburguer + acordeão */
@media (max-width: 991px) {
    /* Esconder a barra de navegação desktop */
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.95);
        z-index: 9998;
        display: none;
        overflow-y: auto;
    }

    .main-navigation.active {
        display: block;
    }

    .nav-container {
        position: relative;
        z-index: 1;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 40px;
        max-width: 400px;
        margin: 0 auto;
        background: transparent;
        color: #fff;
    }

    .nav-container a { color: #fff; }

    /* Menu: visível quando .main-navigation estiver ativa */
    .main-navigation.active .primary-menu,
    .main-navigation.active #primary-menu { display: flex; flex-direction: column; width: 100%; background: transparent; }
    .main-navigation:not(.active) .primary-menu,
    .main-navigation:not(.active) #primary-menu { display: none; }

    /* Links de primeiro nível */
    .primary-menu > li > a {
        border-right: 0;
        padding: 16px 18px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    /* Submenus em modo acordeão - ESTILOS FORÇADOS */
    .primary-menu .sub-menu,
    #primary-menu .sub-menu,
    .main-navigation .primary-menu .sub-menu,
    .main-navigation #primary-menu .sub-menu {
        position: static !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: rgba(15,58,87,0.95) !important;
        background-color: rgba(15,58,87,0.95) !important;
        padding: 0 !important;
        margin-top: 6px !important;
        border-top: none !important;
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.25s ease-out !important;
        display: none !important;
    }

    .primary-menu li.open > .sub-menu,
    #primary-menu li.open > .sub-menu,
    .main-navigation .primary-menu li.open > .sub-menu,
    .main-navigation #primary-menu li.open > .sub-menu {
        display: block !important;
        max-height: 2000px !important;
        overflow: visible !important;
        transition: max-height 0.25s ease-in !important;
    }

    .primary-menu .sub-menu .sub-menu,
    #primary-menu .sub-menu .sub-menu,
    .main-navigation .primary-menu .sub-menu .sub-menu,
    .main-navigation #primary-menu .sub-menu .sub-menu {
        padding-left: 12px !important;
        background: rgba(15,58,87,0.85) !important;
        background-color: rgba(15,58,87,0.85) !important;
        margin-top: 0 !important;
    }

    .primary-menu .sub-menu li,
    #primary-menu .sub-menu li,
    .main-navigation .primary-menu .sub-menu li,
    .main-navigation #primary-menu .sub-menu li {
        background: transparent !important;
        width: 100% !important;
    }

    .primary-menu .sub-menu li a,
    #primary-menu .sub-menu li a,
    .main-navigation .primary-menu .sub-menu li a,
    .main-navigation #primary-menu .sub-menu li a {
        padding: 12px 18px 12px 28px !important;
        font-size: 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        color: #ffffff !important;
        background: transparent !important;
        background-color: transparent !important;
        font-weight: 400 !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    .primary-menu .sub-menu li a:hover,
    #primary-menu .sub-menu li a:hover,
    .main-navigation .primary-menu .sub-menu li a:hover,
    .main-navigation #primary-menu .sub-menu li a:hover {
        background: rgba(255,255,255,0.1) !important;
        background-color: rgba(255,255,255,0.1) !important;
        color: #DC3545 !important;
    }

    /* Garantir contraste e visibilidade dos links no overlay */
    .main-navigation.active .primary-menu > li > a,
    .main-navigation.active #primary-menu > li > a { color: #fff !important; }

    /* Chevrons alinhados à direita no mobile */
    .primary-menu li.menu-item-has-children > a::after,
    #primary-menu li.menu-item-has-children > a::after { float: none; margin-left: 8px; }
}

/* Dropdown arrows */
.primary-menu li.menu-item-has-children > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.primary-menu li.menu-item-has-children.open > a::after {
    transform: rotate(180deg);
}

/* ==========================================================================
   Homepage Layout - 3 Colunas
   ========================================================================== */

.homepage-layout {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 20px;
    margin-top: 20px;
}

.sidebar-left,
.sidebar-right {
    background: white;
    border-radius: 5px;
    overflow: hidden;
}

.content-main {
    background: white;
    border-radius: 5px;
    padding: 20px;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */

.widget {
    margin-bottom: 30px;
}

.widget-title {
    background: #2E86C1;
    color: white;
    padding: 12px 15px;
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.widget-content {
    padding: 0 15px 15px 15px;
}

/* Newsletter Widget */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
}

.newsletter-form button {
    background: #DC3545;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background: #C82333;
}

/* Social Media Widget */
.social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-links a {
    display: block;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.social-facebook {
    background-image: url('assets/images/social/facebook.png');
}

.social-youtube {
    background-image: url('assets/images/social/youtube.png');
}

.social-twitter {
    background-image: url('assets/images/social/twitter.png');
}

/* News Widget */
.news-list {
    list-style: none;
}

.news-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
}

.news-title a {
    color: #2E86C1;
}

.news-excerpt {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.news-pagination {
    text-align: center;
    margin-top: 15px;
}

.news-pagination a {
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    background: #f0f0f0;
    color: #666;
    margin: 0 2px;
    border-radius: 3px;
    font-size: 11px;
}

.news-pagination a:hover,
.news-pagination a.current {
    background: #2E86C1;
    color: white;
}

/* Currency Widgets */
.currency-widget {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.currency-header {
    background: #2E86C1;
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: bold;
}

.currency-content {
    padding: 15px;
}

.converter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.converter-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.converter-form select,
.converter-form input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 11px;
    flex: 1;
}

.converter-form button {
    background: #2E86C1;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
}

/* ==========================================================================
   Services Slider
   ========================================================================== */

.services-slider {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 30px;
}

.slider-container {
    display: flex;
    transition: transform 0.3s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
}

.slide-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.slide-description {
    font-size: 14px;
    margin-bottom: 15px;
}

.slide-cta {
    background: #DC3545;
    color: white;
    padding: 10px 20px;
    border-radius: 3px;
    display: inline-block;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.slide-cta:hover {
    background: #C82333;
    color: white;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 5px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-dot.active,
.nav-dot:hover {
    background: #DC3545;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
    background: #1B4F72;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #DC3545;
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 2px solid #DC3545;
    padding-bottom: 5px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #DC3545;
}

.footer-bottom {
    border-top: 1px solid #2E86C1;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
    font-size: 12px;
}

.footer-logo {
    text-align: center;
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .homepage-layout {
        grid-template-columns: 200px 1fr 200px;
        gap: 15px;
    }
    
    .tagline {
        font-size: 14px;
    }
    
    .tracking-section {
        min-width: 250px;
    }
}

@media (max-width: 991px) {
    .homepage-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar-left,
    .sidebar-right {
        order: 2;
    }
    
    .content-main {
        order: 1;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .tagline {
        margin: 10px 0;
    }
    
    /* Tablet dropdown adjustments */
    .primary-menu .sub-menu {
        min-width: 250px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .primary-menu li:hover .sub-menu,
    .primary-menu li.menu-item-has-children.open .sub-menu,
    .primary-menu li:focus-within .sub-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tracking-section {
        min-width: 100%;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    .slide-content {
        padding: 20px 15px 15px;
    }
    
    .slide-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .site-logo {
        max-width: 200px;
    }
    
    .widget-content {
        padding: 0 10px 10px 10px;
    }
}

/* ==========================================================================
   Service Icons (Font Awesome)
   ========================================================================== */

.service-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-fa-icon {
    font-size: 2.8rem;
    color: #fff;
    background: #2E86C1;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(46, 134, 193, 0.25);
    transition: all 0.3s ease;
}

.service-card:hover .service-fa-icon {
    background: #DC3545;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.35);
}

