/* Variáveis CSS - Paleta de Cores refinada */
:root {
    --primary-color: #0046be; /* Azul principal */
    --primary-dark: #002c80; /* Azul escuro mais profundo */
    --primary-light: #4e8eff; /* Azul claro mais vibrante */
    --accent-color: #ff7b00; /* Laranja para destaque */
    --accent-dark: #e06500; /* Laranja escuro */
    --accent-light: #ffa64d; /* Laranja claro */
    --text-dark: #1a1a2e; /* Tom mais escuro e azulado */
    --text-light: #4a4a6a; /* Cinza azulado para texto secundário */
    --white: #ffffff;
    --off-white: #f8f9fc; /* Branco levemente azulado */
    --light-bg: #edf2ff; /* Fundo azul muito claro */
    --border-color: #d0d8e8; /* Borda com tom azulado */
    --shadow-sm: 0 4px 6px rgba(0, 46, 130, 0.05);
    --shadow-md: 0 6px 15px rgba(0, 46, 130, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 46, 130, 0.15);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;
}

/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px; /* Ajuste para links de âncora considerando o header fixo */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Botões com efeitos modernos */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    outline: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%) rotate(45deg);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(100%) rotate(45deg);
}

.primary-btn {
    background-color: var(--accent-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.primary-btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.primary-btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.secondary-btn {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.secondary-btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.secondary-btn:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Efeito ripple para botões */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    animation: ripple 0.6s ease-out;
    opacity: 0;
    pointer-events: none;
    transform: scale(0);
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Header com efeitos aprimorados */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    will-change: transform, background-color, box-shadow;
}

header.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
}

header.at-top {
    background-color: var(--primary-color);
    box-shadow: none;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-normal);
    filter: brightness(0) invert(1);
}

header.scrolled .logo img {
    height: 45px;
    filter: none;
}

nav {
    display: flex;
    align-items: center;
}

.menu {
    display: flex;
    margin-left: 20px;
}

.menu li {
    margin: 0 15px;
    position: relative;
}

.menu a {
    color: var(--white);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: var(--transition-normal);
}

.menu a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

.menu a:hover,
.menu a.active {
    color: var(--white);
}

.menu a:hover::before,
.menu a.active::before {
    visibility: visible;
    transform: scaleX(1);
}

/* Estilos para o header quando scrollado */
header.scrolled .menu a {
    color: var(--text-dark);
}

header.scrolled .menu a::before {
    background-color: var(--primary-color);
}

header.scrolled .menu a:hover,
header.scrolled .menu a.active {
    color: var(--primary-color);
}

/* Menu Hambúrguer Moderno */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hamburger-menu:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hamburger-line {
    width: 26px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 3px;
    transform-origin: center;
    position: relative;
    overflow: hidden;
}

.hamburger-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.hamburger-menu:hover .hamburger-line::before {
    left: 100%;
}

/* Estado ativo do hambúrguer (X) com animação mais fluida */
.hamburger-menu.active {
    transform: rotate(180deg) scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background-color: #ff6b6b;
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0) rotate(180deg);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: #ff6b6b;
}

/* Cores quando header está scrollado */
header.scrolled .hamburger-line {
    background-color: var(--primary-color);
}

header.scrolled .hamburger-menu {
    background: rgba(0, 70, 190, 0.1);
    border-color: rgba(0, 70, 190, 0.2);
}

header.scrolled .hamburger-menu:hover {
    background-color: rgba(0, 70, 190, 0.2);
    transform: scale(1.05);
}

header.scrolled .hamburger-menu.active .hamburger-line:nth-child(1),
header.scrolled .hamburger-menu.active .hamburger-line:nth-child(3) {
    background-color: #e74c3c;
}

/* Menu Mobile Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    transform: scale(1.1);
}

.mobile-menu-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.mobile-menu-overlay.active::before {
    opacity: 1;
}

/* Menu Mobile Content */
.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 80px 20px 20px;
    position: relative;
}

/* Botão X para fechar o menu */
.mobile-menu-close {
    position: absolute;
    top: 40px;
    right: 30px;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(-20px) rotate(180deg);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-overlay.active .mobile-menu-close {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    transition-delay: 0.3s;
}

.mobile-menu-close span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
}

.mobile-menu-close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-close:hover {
    transform: translateY(0) rotate(0deg) scale(1.1);
}

.mobile-menu-close:hover span {
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.mobile-menu-close:active {
    transform: translateY(0) rotate(0deg) scale(0.95);
}

.mobile-menu-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    position: relative;
}

.mobile-menu-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.mobile-menu-overlay.active .mobile-menu-nav::before {
    transform: translate(-50%, -50%) scale(3);
}

.mobile-menu-nav li {
    margin: 0;
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    perspective: 1000px;
}

.mobile-menu-overlay.active .mobile-menu-nav li {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* Delay escalonado para animação dos itens com efeito cascata */
.mobile-menu-overlay.active .mobile-menu-nav li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-menu-nav li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-menu-nav li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-menu-nav li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-menu-nav li:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu-overlay.active .mobile-menu-nav li:nth-child(6) { transition-delay: 0.6s; }

.mobile-menu-nav a {
    display: block;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    padding: 20px 30px;
    margin: 10px 0;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.mobile-menu-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.mobile-menu-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.mobile-menu-nav a:hover::before {
    left: 100%;
}

.mobile-menu-nav a:hover::after {
    width: 80%;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.mobile-menu-nav a.active::after {
    width: 80%;
    background: linear-gradient(90deg, #ff6b6b, #feca57);
}

/* Hero Section atualizada */
.hero {
    height: 100vh;
    background-color: var(--primary-dark);
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: left;
    overflow: hidden;
}

/* Estilos dos vídeos de fundo */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* Oculta controles do Safari completamente */
    -webkit-appearance: none !important;
    -webkit-media-controls: none !important;
    -webkit-media-controls-panel: none !important;
    -webkit-media-controls-play-button: none !important;
    -webkit-media-controls-start-playback-button: none !important;
    -webkit-media-controls-overlay-play-button: none !important;
    -webkit-media-controls-fullscreen-button: none !important;
    -webkit-media-controls-timeline: none !important;
    -webkit-media-controls-current-time-display: none !important;
    -webkit-media-controls-time-remaining-display: none !important;
    -webkit-media-controls-mute-button: none !important;
    -webkit-media-controls-volume-slider: none !important;
    -webkit-media-controls-seek-back-button: none !important;
    -webkit-media-controls-seek-forward-button: none !important;
    -webkit-media-controls-rewind-button: none !important;
    -webkit-media-controls-return-to-realtime-button: none !important;
    -webkit-media-controls-toggle-closed-captions-button: none !important;
}

/* Remove controles específicos do Safari */
.hero-video::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none !important;
}

.hero-video::-webkit-media-controls-panel {
    display: none !important;
    -webkit-appearance: none !important;
}

.hero-video::-webkit-media-controls-play-button {
    display: none !important;
    -webkit-appearance: none !important;
}

.hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none !important;
}

.hero-video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none !important;
}

.hero-video-desktop {
    display: block;
}

.hero-video-mobile {
    display: none;
}

/* Fallback com imagem de fundo */
.hero-image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/posto-guarai.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
    display: none;
}

/* Overlay preto leve para contraste */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 123, 0, 0.3);
    z-index: -1;
    transform: skewX(-15deg);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 0, 0, 0.4);
}

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

.hero-navbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    z-index: 5;
    height: 60px;
    overflow: hidden;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.hero-navbar:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transform: skewY(-2deg);
    transform-origin: top right;
    z-index: -1;
}

.hero-nav-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 0 10%;
}

.hero-nav-links a {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 20px;
    transition: var(--transition-normal);
}

.hero-nav-links a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    opacity: 0.3;
    transition: var(--transition-normal);
}

.hero-nav-links a:hover:after,
.hero-nav-links a.active:after {
    height: 6px;
    opacity: 1;
    background-color: var(--accent-color);
}

.hero-nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Features Section aprimorada */
.features {
    padding: 100px 0;
    background-color: var(--off-white);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(78, 142, 255, 0.05);
    top: -150px;
    left: -150px;
    z-index: 0;
}

.features::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(78, 142, 255, 0.05);
    bottom: -100px;
    right: -100px;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    will-change: transform, box-shadow;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 32px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--primary-dark);
    transition: var(--transition-normal);
}

.feature-card:hover h3 {
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
    transition: var(--transition-normal);
}

/* Pseudo-elementos com animação para ícones de feature */
.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    z-index: -1;
    transform: scale(0);
    transition: transform 0.5s ease-out;
}

.feature-card:hover .feature-icon::after {
    transform: scale(1.3);
}

/* Services Section modernizada */
.services {
    padding: 100px 0;
    background-color: var(--white);
}

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    background-color: var(--white);
    will-change: transform, box-shadow;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.5s ease;
    filter: brightness(1);
}

.service-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.service-content {
    padding: 25px;
    background-color: var(--white);
    position: relative;
}

.service-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: var(--transition-normal);
}

.service-card:hover .service-content::before {
    width: 80%;
}

.service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    transition: var(--transition-normal);
}

.service-card:hover .service-content h3 {
    color: var(--primary-color);
}

.service-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 0 5px;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.service-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.service-link i {
    margin-left: 8px;
    transition: var(--transition-normal);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* CTA Section com estrutura igual às hero sections */
.cta {
    padding: 100px 0;
    color: var(--white);
    text-align: center;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('../img/backgrounds/dito_background_ms.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
    pointer-events: none;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

/* Removido o pseudo-elemento ::after com padrão SVG para deixar apenas a imagem de background */

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta .btn {
    min-width: 200px;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    /* Alternar vídeos para mobile */
    .hero-video-desktop {
        display: none;
    }
    
    .hero-video-mobile {
        display: block;
    }
    
    .cta-image {
        background-attachment: scroll;
        height: 100%;
    }
}

/* Footer estilizado */
footer {
    background-color: #002047;
    color: var(--white);
    padding: 70px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(78, 142, 255, 0.1) 0%, rgba(78, 142, 255, 0) 70%);
    top: 50px;
    left: -100px;
    border-radius: 50%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo-img {
    filter: brightness(0) invert(1);
}

.footer-logo p {
    color: #abbad1;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    font-size: 1.2rem;
}

.footer-links h4:after,
.footer-contact h4:after,
.footer-social h4:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 0;
    transition: var(--transition-normal);
}

.footer-links h4:hover:after,
.footer-contact h4:hover:after,
.footer-social h4:hover:after {
    width: 60px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #abbad1;
    transition: var(--transition-fast);
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer-links ul li a:before {
    content: '›';
    position: absolute;
    left: -15px;
    top: 0;
    opacity: 0;
    transition: var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 15px;
}

.footer-links ul li a:hover:before {
    opacity: 1;
    left: 0;
}

.footer-contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: #abbad1;
}

.footer-contact ul li i {
    margin-right: 10px;
    color: var(--accent-color);
    margin-top: 4px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-normal);
    overflow: hidden;
    position: relative;
}

.social-icon:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 50%;
    top: 100%;
    left: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: var(--white);
}

.social-icon:hover:before {
    top: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #abbad1;
    font-size: 0.9rem;
}

/* Estilos para animações aprimoradas */
.animate__animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
    backface-visibility: hidden;
}

.animate__delay-1s {
    animation-delay: 0.4s;
}

.animate__delay-2s {
    animation-delay: 0.8s;
}

/* Para animações no scroll */
.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.animate__fadeInUp {
    transform: translateY(40px);
}

.animate-on-scroll.animate__fadeInDown {
    transform: translateY(-40px);
}

.animate-on-scroll.animate__fadeInLeft {
    transform: translateX(-40px);
}

.animate-on-scroll.animate__fadeInRight {
    transform: translateX(40px);
}

.animate-on-scroll.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(0);
}

/* Efeitos de destaque */
.highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(78, 142, 255, 0.2);
    z-index: -1;
    transform: skewX(-5deg);
}

/* Estilos para definir diferentes atrasos */
.delay-200 {
    transition-delay: 0.2s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-600 {
    transition-delay: 0.6s;
}

/* Responsividade */
@media screen and (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-content {
        margin: 0 auto 0 40%;
    }
    
    .section-header h2,
    .cta h2 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .hero-image {
        width: 100%;
        opacity: 0.3;
    }
    
    .diagonal-overlay {
        background: linear-gradient(135deg, 
            rgba(0, 51, 153, 0.8) 0%, 
            rgba(0, 70, 190, 0.9) 100%);
    }
    
    .hero-content {
        margin: 0 auto;
        text-align: center;
        padding: 0 30px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-navbar {
        height: 50px;
    }
    
    .hero-nav-links {
        padding: 0 5%;
    }
    
    .menu {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-header h2,
    .cta h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .services-wrapper {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-header h2,
    .cta h2 {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h4:after,
    .footer-contact h4:after,
    .footer-social h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links h4:hover:after,
    .footer-contact h4:hover:after,
    .footer-social h4:hover:after {
        width: 60px;
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact ul li {
        justify-content: center;
    }
    
    .footer-links ul li a:hover {
        padding-left: 0;
    }
    
    .footer-links ul li a:before {
        display: none;
    }

    .social-icons {
        justify-content: center;
    }
} /* =
==== CARDS DOS POSTOS - LAYOUT HORIZONTAL 16:9 ===== */
.station-card-horizontal {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 70, 190, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 70, 190, 0.08);
    display: flex;
    flex-direction: row;
    min-height: 350px;
}

.station-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 70, 190, 0.15);
}

/* Seção da Imagem - 50% da largura, maior destaque */
.station-image-section {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 320px;
}

.station-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.station-card-horizontal:hover .station-image-section img {
    transform: scale(1.05);
}

/* Placeholder para imagens */
.image-placeholder {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    color: #6c757d !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.image-placeholder i {
    font-size: 3rem !important;
    margin-bottom: 10px !important;
    color: #0046be !important;
    opacity: 0.6 !important;
}

.image-placeholder span {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #495057 !important;
    text-align: center !important;
}

/* Seção de Informações - 50% da largura */
.station-info-section {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header do Card */
.station-header {
    margin-bottom: 20px;
}

.station-header h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.station-address {
    display: flex;
    align-items: center;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.station-address i {
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Conteúdo do Card */
.station-content {
    flex: 1;
}

/* Seção de Serviços */
.services-section {
    margin-bottom: 20px;
}

.services-section h4 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.services-section h4 i {
    margin-right: 8px;
    color: var(--accent-color);
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    background: linear-gradient(135deg, #0046be 0%, #4e8eff 100%) !important;
    color: #ffffff !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: transform 0.2s ease !important;
    border: none !important;
    text-decoration: none !important;
    margin: 3px !important;
    box-shadow: 0 2px 6px rgba(0, 70, 190, 0.2) !important;
}

.service-tag:hover {
    transform: scale(1.05) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 70, 190, 0.3) !important;
}

.service-tag i {
    margin-right: 6px !important;
    font-size: 0.75rem !important;
    color: #ffffff !important;
}

/* Seção de Preços */
.prices-section h4 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.prices-section h4 i {
    margin-right: 8px;
    color: var(--accent-color);
}

.prices-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

/* Badges de Combustível - Cores aplicadas dinamicamente */
.fuel-price {
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    /* Cor removida para permitir cores inline do banco de dados */
}

.fuel-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fuel-price i {
    margin-right: 6px;
    font-size: 0.8rem;
}

/* Cores dos combustíveis são aplicadas dinamicamente via JavaScript */
.fuel-price[style*="background-color"] {
    color: white !important;
    border: none !important;
}

.last-update {
    color: var(--gray-500);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

.last-update i {
    margin-right: 5px;
}

/* Footer do Card */
.station-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 70, 190, 0.1);
    margin-top: 15px;
}

.contact-info {
    display: flex;
    align-items: center;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--accent-color);
    margin-right: 8px;
}

.directions-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff8533 100%);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.directions-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    color: var(--white);
    text-decoration: none;
}

.directions-btn i {
    margin-right: 8px;
}

/* ===== RESPONSIVIDADE OTIMIZADA ===== */

/* Tablet - 1024px e abaixo */
@media (max-width: 1024px) {
    .station-card-horizontal {
        min-height: 320px;
    }
    
    .station-image-section {
        flex: 0 0 50%;
        min-height: 300px;
    }
    
    .station-info-section {
        padding: 25px 20px;
    }
    
    .station-header h3 {
        font-size: 1.3rem;
    }
}

/* Tablet Portrait - 768px e abaixo */
@media (max-width: 768px) {
    .station-card-horizontal {
        flex-direction: column;
        min-height: auto;
        max-width: 600px;
        margin: 0 auto 30px auto;
    }
    
    /* Imagem com altura fixa no mobile - elimina gaps */
    .station-image-section {
        flex: 0 0 auto;
        width: 100%;
        height: 250px !important; /* Altura fixa independente da largura */
        min-height: 250px !important;
        max-height: 250px !important;
        overflow: hidden;
        position: relative;
    }
    
    .station-image-section img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .image-placeholder {
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    /* Placeholder mantém mesmo tamanho da imagem */
    .image-placeholder {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 250px !important;
        min-height: 250px !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .image-placeholder i {
        font-size: 3.5rem !important;
        margin-bottom: 12px !important;
        color: #0046be !important;
        opacity: 0.6 !important;
    }
    
    .image-placeholder span {
        font-size: 1rem !important;
        font-weight: 500 !important;
        color: #495057 !important;
        text-align: center !important;
    }
    
    .station-info-section {
        flex: 1;
        padding: 15px 20px 20px 20px; /* Reduzido padding superior */
    }
    
    .station-header {
        margin-bottom: 15px; /* Reduzido espaçamento */
    }
    
    .station-header h3 {
        font-size: 1.25rem;
        text-align: center;
        margin-bottom: 8px; /* Reduzido espaçamento */
    }
    
    .station-address {
        justify-content: center;
        text-align: center;
        margin-bottom: 15px; /* Reduzido espaçamento */
    }
    
    .services-list {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .prices-grid {
        justify-content: center;
        gap: 8px;
    }
    
    .station-footer {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }
    
    .directions-btn {
        justify-content: center;
        width: 100%;
        max-width: 250px;
    }
    
    /* Reduzir espaçamentos entre seções no mobile */
    .station-content {
        margin-bottom: 15px;
    }
    
    .services-section {
        margin-bottom: 15px;
    }
    
    .services-section h4,
    .prices-section h4 {
        margin-bottom: 10px;
        font-size: 1rem;
    }
    
    .prices-section {
        margin-bottom: 0;
    }
    
    .last-update {
        margin-top: 8px;
        font-size: 0.8rem;
    }
}

/* Mobile Large - 480px e abaixo */
@media (max-width: 480px) {
    .station-card-horizontal {
        margin: 0 10px 25px 10px;
    }
    
    /* Imagem com altura fixa - elimina gaps em telas menores */
    .station-image-section {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .station-image-section img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .image-placeholder {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .image-placeholder i {
        font-size: 3rem !important;
        margin-bottom: 10px !important;
    }
    
    .image-placeholder span {
        font-size: 0.9rem !important;
    }
    
    .station-info-section {
        padding: 12px 15px 15px 15px; /* Padding superior ainda menor */
    }
    
    .station-header {
        margin-bottom: 12px;
    }
    
    .station-header h3 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .station-address {
        margin-bottom: 12px;
    }
    
    .station-address {
        font-size: 0.9rem;
    }
    
    .services-section h4,
    .prices-section h4 {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .service-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .fuel-price {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
        margin: 3px !important;
    }
    
    .contact-info {
        font-size: 0.85rem;
    }
    
    .directions-btn {
        font-size: 0.85rem;
        padding: 12px 20px;
    }
}

/* Mobile Small - 360px e abaixo */
@media (max-width: 360px) {
    .station-card-horizontal {
        margin: 0 5px 20px 5px;
    }
    
    .station-image-section {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
    
    .station-image-section img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .image-placeholder {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
    
    .image-placeholder i {
        font-size: 2.5rem !important;
    }
    
    .station-info-section {
        padding: 10px 12px 12px 12px; /* Padding superior mínimo */
    }
    
    .station-header {
        margin-bottom: 10px;
    }
    
    .station-header h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .station-address {
        margin-bottom: 10px;
    }
    
    .fuel-price {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
    }
    
    .service-tag {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}/* Cores dos combustíveis aplicadas dinamicamente pelo banco de dados */

/* ===== FORÇA TAMANHO MAIOR DAS IMAGENS ===== */
.station-card-horizontal .station-image-section {
    flex: 0 0 55% !important;
    min-height: 350px !important;
}

.station-card-horizontal .station-info-section {
    flex: 0 0 45% !important;
    padding: 25px !important;
}

/* ===== MELHORA VISUAL DOS BADGES ===== */
/* Regras removidas para permitir cores do banco de dados */
/* ==
=== GARANTIA DE PROPORÇÃO DAS IMAGENS ===== */
.station-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Fallback para navegadores mais antigos */
.station-image-section {
    position: relative;
    overflow: hidden;
}

.station-image-section::before {
    content: '';
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Ajustes para container de localizações */
.locations-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .locations-container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .locations-container {
        padding: 0 10px;
    }
}

/* ===== MELHORIAS DE PERFORMANCE ===== */
.station-card-horizontal {
    will-change: transform;
    backface-visibility: hidden;
}

.station-image-section img {
    will-change: transform;
    backface-visibility: hidden;
}

/* ===== LOADING STATES ===== */
.station-card-horizontal.loading {
    opacity: 0.7;
    pointer-events: none;
}

.station-card-horizontal.loading .station-image-section {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}/*
 ===== CORREÇÃO DEFINITIVA DO GAP NO MOBILE ===== */
@media (max-width: 768px) {
    /* Força altura fixa da imagem independente da largura da tela */
    .station-card-horizontal .station-image-section {
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    /* Força imagem a ocupar todo o espaço disponível */
    .station-card-horizontal .station-image-section img {
        width: 100% !important;
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
    }
    
    /* Força placeholder a ocupar todo o espaço */
    .station-card-horizontal .image-placeholder {
        width: 100% !important;
        height: 250px !important;
        min-height: 250px !important;
        max-height: 250px !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Remove qualquer margin/padding que possa criar gaps */
    .station-card-horizontal .station-info-section {
        margin-top: 0 !important;
        padding-top: 15px !important;
    }
}

@media (max-width: 480px) {
    .station-card-horizontal .station-image-section {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .station-card-horizontal .station-image-section img {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .station-card-horizontal .image-placeholder {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
}

@media (max-width: 360px) {
    .station-card-horizontal .station-image-section {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
    
    .station-card-horizontal .station-image-section img {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
    
    .station-card-horizontal .image-placeholder {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
}

/* Mini Header Styles with SwiperJS */
.mini-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.mini-header.hidden {
    transform: translateY(-100%);
}

.mini-header-swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.mini-header-swiper .swiper-wrapper {
    align-items: center;
    height: 100%;
}

.mini-header-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.mini-header-text {
    color: #333333;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 30px);
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mini-header-text i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Ajustar header principal para compensar o mini header */
header {
    margin-top: 0;
    transition: margin-top 0.3s ease;
}

header.with-mini-header {
    margin-top: 30px;
}

/* Media queries para responsividade */
@media (max-width: 768px) {
    .mini-header {
        height: 25px;
    }
    
    .mini-header-text {
        font-size: 0.75rem;
        gap: 6px;
        max-width: calc(100% - 20px);
    }
    
    .mini-header-text i {
        font-size: 0.8rem;
    }
    
    header.with-mini-header {
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .mini-header {
        height: 22px;
    }
    
    .mini-header-text {
        font-size: 0.7rem;
        gap: 4px;
        max-width: calc(100% - 16px);
    }
    
    .mini-header-text i {
        font-size: 0.75rem;
    }
    
    header.with-mini-header {
        margin-top: 22px;
    }
}

/* Correções específicas para Safari iOS */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    .mini-header-swiper .swiper-slide {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .mini-header-text {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

/* Correções específicas para iPhone */
@media only screen and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
    .mini-header {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
    
    .mini-header-text {
        max-width: calc(100vw - 30px);
        -webkit-line-clamp: 1;
        -webkit-box-orient: horizontal;
        display: -webkit-box;
        justify-content: center;
        text-align: center;
    }
}

/* ===== POP-UP DE COOKIES LGPD ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 3px solid #007bff;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.cookie-consent-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e0e0e0;
    margin-bottom: 0;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 100px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.cookie-btn-reject {
    background: transparent;
    color: #e0e0e0;
    border: 1px solid #555;
}

.cookie-btn-reject:hover {
    background: #555;
    color: white;
    border-color: #666;
}

.cookie-btn-settings {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
    font-size: 0.85rem;
    padding: 8px 16px;
}

.cookie-btn-settings:hover {
    background: #007bff;
    color: white;
}

/* Modal de configurações de cookies */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cookie-settings-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-settings-close:hover {
    color: #333;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #007bff;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background-color: #28a745;
    cursor: not-allowed;
}

.cookie-category-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-settings-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-settings-content {
        margin: 10px;
        padding: 20px;
    }
    
    .cookie-settings-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        padding: 15px;
    }
    
    .cookie-consent-title {
        font-size: 1.1rem;
    }
    
    .cookie-consent-description {
        font-size: 0.9rem;
    }
}