/* ==========================================================================
   VARIÁVEIS E GLOBAIS
   ========================================================================= */
:root {
    --fidelidade-red: #ed1c24;
    --fidelidade-dark: #c1161b;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --text-main: #333333;
    --text-muted: #666666;
    --filter-red: invert(17%) sepia(88%) saturate(5835%) hue-rotate(352deg) brightness(97%) contrast(92%);

    --color-open: #2ecc71;
    --color-closed: #e74c3c;
    --color-warning: #f1c40f;

    /* Curvas de animação */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body { font-family: 'Segoe UI', system-ui, sans-serif; line-height: 1.6; color: var(--text-main); overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

section {
    padding: 100px 0;
}

/* Preparação para Scroll Reveal */
section:not(.hero) > .container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.is-visible > .container {
    opacity: 1;
    transform: translateY(0);
}

#particulares { padding-top: 40px; }

/* ==========================================================================
   CORREÇÃO: CENTRAGEM VERTICAL EQUIPA
   ========================================================================== */
#equipa {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
}

#equipa > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Isto faz os retângulos subirem para o centro real */
    width: 100%;
}

#equipa .section-title {
    margin-top: -60px;
    margin-bottom: 40px; /* Espaço equilibrado entre título e cards */
}

#contactos { padding: 40px 0; }

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: var(--white); }
.section-title { text-align: center; margin-bottom: 50px; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   BARRA DE STATUS
   ========================================================================== */
.status-bar {
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: white;
    transition: background 0.5s ease;
}

.status-bar .container { display: flex; justify-content: center; align-items: center; gap: 10px; }
.status-bar.open { background-color: var(--color-open); }
.status-bar.closed { background-color: var(--color-closed); }
.status-bar.warning { background-color: var(--color-warning); color: #333; }

.footer-status-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
}
.footer-status-box.open { color: var(--color-open); }
.footer-status-box.closed { color: var(--color-closed); }
.footer-status-box.warning { color: var(--color-warning); }

.dot {
    height: 8px; width: 8px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    70% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* ==========================================================================
   HEADER E LOGO
   ========================================================================== */
header {
    background: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    transition: padding 0.3s ease;
}
header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo img { height: 22px; width: auto; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.05); }
.logo span { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; position: relative; top: 4px; }

nav ul { display: flex; list-style: none; gap: 20px; }
nav a { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; color: var(--text-main); position: relative; }
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--fidelidade-red);
    transition: width 0.3s ease;
}
nav a:hover::after, nav a.active::after { width: 100%; }
nav a:hover, nav a.active { color: var(--fidelidade-red) !important; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--fidelidade-red);
    transition: 0.3s;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    text-align: center;
    background-image: linear-gradient(rgba(248, 249, 250, 0.90), rgba(248, 249, 250, 0.90)), url('../img/loja.jpg');
    background-size: 115% auto;
    background-position: 59% -340px;
    padding: 154px 0;
    border-bottom: 1px solid #eee;
    opacity: 1;
    transform: none;
}

.hero-panel { padding-top: 80px; animation: fadeInUp 1s ease-out; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 { font-size: 2.8rem; margin-bottom: 15px; color: var(--text-main); line-height: 1.2; }
.hero p { max-width: 750px; margin: 0 auto 30px; font-size: 1.2rem; color: var(--text-muted); }

/* ==========================================================================
   MODAL DE MARCAÇÃO
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
    transform: scale(1);
}

.close {
    position: absolute;
    right: 20px; top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}
.close:hover { color: var(--fidelidade-red); }
.modal-header { text-align: center; margin-bottom: 30px; }
.modal-header h2 { font-size: 1.6rem; color: var(--fidelidade-red); margin-bottom: 8px; }
.modal-header p { font-size: 0.9rem; color: var(--text-muted); }

.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 6px; color: var(--text-main); }
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}
.form-group input:focus { border-color: var(--fidelidade-red); }

/* ==========================================================================
   BOTÕES
   ========================================================================== */
.btn-primary {
    background: var(--fidelidade-red);
    color: var(--white);
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
    transition: var(--transition-bounce);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-primary:hover {
    background: var(--fidelidade-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(237, 28, 36, 0.3);
}
.btn-primary:active {
    transform: scale(0.95);
}

.btn-link {
    display: inline-block;
    width: fit-content;
    margin-top: auto;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    background: var(--fidelidade-red);
    color: var(--white);
    text-align: center;
}
.btn-link:hover {
    background: var(--fidelidade-dark);
    transform: translateY(-2px);
}

/* ==========================================================================
   WHATSAPP FLUTUANTE
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}
.whatsapp-float:hover { background-color: #128c7e; transform: scale(1.1) rotate(5deg); }
.whatsapp-icon { width: 35px; height: 35px; fill: white; }

/* ==========================================================================
   CARDS E ÍCONES
   ========================================================================== */
.icon { display: block; width: 55px; height: 55px; margin: 0 auto 20px; filter: var(--filter-red); background-size: contain; background-repeat: no-repeat; transition: transform 0.4s ease; }

.icon-auto { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2'/%3E%3Ccircle cx='7' cy='17' r='2'/%3E%3Cpath d='M9 17h6'/%3E%3Ccircle cx='17' cy='17' r='2'/%3E%3C/svg%3E"); }
.icon-saude { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E"); }
.icon-pets { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 14c-2 0-3 1-3 3s2 3 3 3 3-1 3-3-1-3-3-3Z'/%3E%3Cpath d='M7 10s-1-1-2-1c-1.5 0-3 1.5-3 3.5s1.5 3.5 3 3.5c1 0 2-1 2-1'/%3E%3Cpath d='M17 10s1-1 2-1c1.5 0 3 1.5 3 3.5s-1.5 3.5-3 3.5c-1 0-2-1-2-1'/%3E%3C/svg%3E"); }
.icon-cyber { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); }
.icon-casa { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E"); }
.icon-mota { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='18' r='3'/%3E%3Ccircle cx='19' cy='18' r='3'/%3E%3Cpath d='M12 18V9c0-2 1-3 3-3'/%3E%3Cpath d='M16 18H8'/%3E%3C/svg%3E"); }
.icon-acidentes { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3C/svg%3E"); }
.icon-vida { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.5 0 2.8 1.4 2.8 3 0 3.5-5.3 7-5.3 7s-5.3-3.5-5.3-7c0-1.6 1.3-3 2.8-3'/%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3C/svg%3E"); }
.icon-viagem { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3C/svg%3E"); }
.icon-bike { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5.5' cy='17.5' r='3.5'/%3E%3Ccircle cx='18.5' cy='17.5' r='3.5'/%3E%3Cpath d='M15 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm-3 11.5V14l-3-3 4-3 2 3h2'/%3E%3C/svg%3E"); }
.icon-empresas { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E"); width: 80px; height: 80px; }

.insurance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0; transform: scale(0.9);
}

.card.is-visible { opacity: 1; transform: scale(1); }

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: rgba(237, 28, 36, 0.2);
}
.card:hover .icon { transform: scale(1.1); }
.card h3 { margin-bottom: 12px; font-size: 1.3rem; }
.card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 25px; flex-grow: 1; }

/* ==========================================================================
   SECÇÃO EMPRESAS
   ========================================================================== */
.enterprise-box {
    background: var(--white);
    padding: 60px;
    border-radius: 15px;
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: var(--transition-smooth);
}
.enterprise-box:hover { box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.enterprise-box h2 { font-size: 1.8rem; color: var(--text-main); margin-bottom: 15px; }
.enterprise-box p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 35px; }

/* ==========================================================================
   EQUIPA E CONTACTOS
   ========================================================================== */
.team-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin: 0; }
.member-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 320px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
}
.member-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.member-photo { width: 150px; height: 150px; margin: 0 auto 20px; flex-shrink: 0; overflow: hidden; border-radius: 50%; border: 3px solid var(--fidelidade-red); transition: transform 0.4s ease; }
.member-card:hover .member-photo { transform: scale(1.05); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }

.member-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 0 10px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role { color: var(--fidelidade-red); font-weight: 700; margin-bottom: 10px; font-size: 0.8rem; text-transform: uppercase; }
.member-contact-info { margin-top: auto; text-align: left; display: inline-block; padding-top: 15px; border-top: 1px solid #f0f0f0; }
.contact-link { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-main); }
.contact-link:hover { color: var(--fidelidade-red); }

.team-icon { width: 16px; height: 16px; background-size: contain; background-repeat: no-repeat; display: inline-block; filter: var(--filter-red); transform: translateY(3px);  }
.icon-team-phone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.icon-team-mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E"); }

.contact-flex { display: flex; gap: 50px; align-items: flex-start; }
.contact-flex .info { flex: 1; }
.contact-flex .map { flex: 1.2; height: 340px; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.2); margin-top: 75px; transition: transform 0.4s ease; }
.contact-flex .map:hover { transform: scale(1.02); }

.contact-item { display: flex; gap: 18px; margin-bottom: 15px; align-items: flex-start; padding: 10px; border-radius: 8px; }
.contact-item:hover { background: rgba(255,255,255,0.05); }
.contact-icon { width: 24px; height: 24px; background-size: contain; background-repeat: no-repeat; flex-shrink: 0; margin-top: 5px; }
.contact-item strong { display: block; color: var(--fidelidade-red); text-transform: uppercase; font-size: 0.75rem; margin-bottom: 4px; }
.contact-item p { color: #eee; font-size: 0.95rem; margin: 0; }

.icon-pin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.icon-phone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.icon-mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E"); }
.icon-clock { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E"); }

footer { padding: 25px 0; text-align: center; border-top: 1px solid #333; }
.asf-info { color: #888; font-size: 0.8rem; margin-top: 10px; }
.asf-number { color: var(--fidelidade-red); font-weight: bold; }

/* ==========================================================================
   ADAPTAÇÃO MOBILE (Otimizado para iOS/iPhone)
   ========================================================================= */
@media (max-width: 768px) {
    header { height: auto; padding-top: max(12px, env(safe-area-inset-top)); }
    header .container { flex-direction: row; justify-content: space-between; align-items: center; }
    .menu-toggle { display: flex; }

    nav {
        position: fixed;
        top: 0; right: -100%;
        width: 75%;
        height: 100dvh;
        background: var(--white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: max(80px, env(safe-area-inset-top) + 60px);
    }
    nav.active { right: 0; }
    nav ul { flex-direction: column; align-items: center; gap: 25px; }
    nav a { font-size: 1.1rem; }

    .hero {
        padding: 0;
        background-image: linear-gradient(rgba(248, 249, 250, 0.90), rgba(248, 249, 250, 0.90)), url('../img/lojaMobile.png');
        background-size: 230%;
        background-position: 53% -150px;
        min-height: calc(100dvh - 70px);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-panel { padding-top: 0; width: 100%; }
    .hero h1 { font-size: 1.8rem; padding: 0 15px; }
    .hero p { font-size: 1.1rem; padding: 0 20px; }

    .insurance-grid { grid-template-columns: 1fr; gap: 25px; }

    /* === EMPRESAS === */
    #empresas {
        scroll-margin-top: -80px;
        min-height: calc(100dvh - 70px);
        display: flex;
        align-items: center;
        padding: 30% 0;
    }
    .enterprise-box { padding: 40px 20px; width: 100%; margin-left: auto; margin-right: auto; }

    /* === EQUIPA MOBILE === */
    #equipa {
        display: flex;
        min-height: auto;
        padding: 60px 0;
        padding-top: 25%;
    }
    #equipa > .container { justify-content: flex-start; }
    #equipa .section-title { margin-bottom: 35px; font-size: 1.5rem; }

    .team-grid { flex-direction: column; align-items: center; gap: 30px; }
    .member-card { width: 100%; max-width: 340px; padding: 25px 20px; }

    /* === CONTACTOS E MAPA === */
    .contact-flex { flex-direction: column; gap: 40px; }
    .info h2 { text-align: left; margin-left: 4%; margin-bottom: 25px; font-size: 1.6rem; }

    .contact-flex .map {
        width: 100%;
        height: 320px;
        order: 1;
        margin-top: 0 !important;
        margin-bottom: env(safe-area-inset-bottom);
        position: relative;
        z-index: 1;
        border-radius: 12px;
    }

    .whatsapp-float {
        bottom: max(30px, env(safe-area-inset-bottom) + 15px);
        right: 20px;
    }

    .menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    /* === AJUSTE BOTPRESS MOBILE === */
    div#bp-web-widget-container {
        height: 80dvh !important; /* Limita a 80% da altura do ecrã */
        top: auto !important;
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
    }

    div#bp-web-widget-container iframe {
        border-radius: 16px !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
    }
}