/* ============================================
   RICHBEFIT LAB - Sito Web
   Design by Figma - Converted to HTML/CSS
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Poppins:wght@300;400;500&display=swap');

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

:root {
    --color-red: #FF0000;
    --color-black: #000000;
    --color-dark: #121212;
    --color-card: #272727;
    --color-white: #FFFFFF;
    --color-gray: #484848;
    --font-title: 'Bebas Neue', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    background-color: var(--color-black);
    color: var(--color-white);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Utility Classes */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 98px;
    position: relative;
}

.text-red {
    color: var(--color-red);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
    border-bottom: 1px solid #e2e2e2;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 56px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    font-family: var(--font-title);
    font-size: 16px;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

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

.btn-started {
    font-family: var(--font-title);
    font-size: 16px;
    color: var(--color-white);
    background: var(--color-red);
    padding: 12px 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-started:hover {
    background: #cc0000;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: -1;
}

.hero-content {
    text-align: center;
    padding-top: 100px;
}

.hero-logo {
    max-width: 807px;
    margin: 0 auto 20px;
    padding: 0 20px;
    text-align: center;
}

.hero-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

.hero-logo img {
    width: 100%;
    height: auto;
}

/* Il logo Group 71.png ha già la linea inclusa */

/* Sottotitolo rimosso - è incluso nel logo Group 71.png */

/* Logo Testuale con Bilanciere Animato */
.logo-text {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-title);
    font-size: clamp(48px, 10vw, 120px);
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
}

.logo-part {
    display: inline-block;
}

.logo-part.white {
    color: var(--color-white);
}

.logo-part.red {
    color: var(--color-red);
}

.logo-part.lab-spacing {
    margin-left: 0.3em;
}

/* Contenitore Bilanciere */
.logo-barbell-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
    height: 1em;
    position: relative;
}

/* Logo Bilanciere Immagine */
.hero-barbell-img {
    height: auto;
    max-height: 0.75em;
    width: auto;
    max-width: 28px;
    aspect-ratio: 75 / 237;
    object-fit: contain;
    animation: barbell-lift 3s ease-in-out infinite;
    display: block;
}

/* Desktop: bilanciere leggermente più grande e animazione più ampia */
@media (min-width: 993px) {
    .hero-barbell-img {
        max-height: 0.85em;
        max-width: 35px;
        animation: barbell-lift-desktop 3s ease-in-out infinite;
    }
    
    @keyframes barbell-lift-desktop {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-12px);
        }
    }
}

/* Animazione Bilanciere */
@keyframes barbell-lift {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Linea sotto il titolo */
.logo-line {
    width: 100%;
    max-width: 600px;
    height: 2px;
    background: var(--color-white);
    margin: 10px auto;
    opacity: 0.9;
}

/* Sottotitolo */
.logo-subtitle {
    font-family: var(--font-body);
    font-size: clamp(12px, 2.5vw, 18px);
    font-weight: 500;
    color: var(--color-white);
    letter-spacing: 6px;
    margin-top: 8px;
    opacity: 0.9;
    text-transform: uppercase;
}

.hero-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    max-width: 500px;
    margin: 20px auto 25px;
    line-height: 1.5;
}

.btn-outline {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 18px;
    color: var(--color-red);
    text-decoration: none;
    padding: 10px 35px;
    border: 1px solid var(--color-red);
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 0;
}

.btn-outline:hover {
    background: var(--color-red);
    color: var(--color-white);
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(255, 0, 0, 0);
    }
}

/* Hero Features */
.hero-features {
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
}

.features-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.feature-item {
    font-family: var(--font-title);
    font-size: 50px;
    color: var(--color-white);
}

.feature-divider {
    width: 2px;
    height: 40px;
    background: var(--color-white);
}

/* ============================================
   MISSION SECTION
   ============================================ */
.mission {
    position: relative;
    padding: 100px 0;
    background: var(--color-black);
    overflow: hidden;
    min-height: auto;
}

.mission-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('../immagine la nostra mission.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.mission-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.mission .container {
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-title);
    font-size: 91px;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1;
}

.mission-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 18px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto 30px;
    line-height: 1.7;
    color: var(--color-white);
}

.mission-text p {
    margin-bottom: 8px;
}

/* Mission Logo */
.mission-logo-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0 60px;
    position: relative;
}

.mission-logo-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 60px;
    border: 1px solid var(--color-red);
}

.logo-bar {
    width: 200px;
    height: 1px;
    background: var(--color-red);
}

.left-bar {
    margin-right: -10px;
}

.right-bar {
    margin-left: -10px;
}

.mission-logo-img {
    position: relative;
    z-index: 2;
    height: 90px;
    width: auto;
}

/* Mission Grid */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 30px auto 0;
    position: relative;
}

.mission-card {
    background: rgba(45, 45, 45, 0.7);
    padding: 25px 30px;
    border: 1px solid var(--color-red);
}

.mission-card h3 {
    font-family: var(--font-title);
    font-size: 24px;
    margin-bottom: 12px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-card p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   ACTIVITIES SECTION (Esperienza pensata per TE)
   ============================================ */
.activities {
    position: relative;
    padding: 60px 0;
    background: var(--color-black);
    min-height: auto;
}

.activities-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('../esperienza pensata per te immagini.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.activities-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.activities .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.activities-content h2 {
    font-family: var(--font-title);
    line-height: 1;
    margin-bottom: 15px;
}

.activities-title-white {
    font-size: 56px;
    color: var(--color-white);
    display: block;
    line-height: 1.1;
}

.activities-title-line2 {
    font-size: 56px;
    color: var(--color-white);
    line-height: 1.1;
}

.activities-title-te {
    font-size: 80px;
    color: var(--color-red);
}

.activities-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    margin-top: 10px;
}

.activities-subtitle .line {
    width: 40px;
    height: 1px;
    background: var(--color-red);
}

.activities-subtitle span {
    font-family: var(--font-title);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 520px;
}

.activity-box {
    background: #333;
    padding: 14px 20px;
    border: 1px solid var(--color-red);
    font-family: var(--font-title);
    font-size: 13px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-white);
}

.activity-box:hover {
    background: var(--color-red);
}

.activity-box.full-width {
    grid-column: span 2;
    max-width: 50%;
}

.activities-image {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-frame-red {
    position: absolute;
    top: -10px;
    right: 100px;
    width: 320px;
    height: 350px;
    border: 1px solid var(--color-red);
    z-index: 1;
}

.image-frame-white {
    position: absolute;
    top: 80px;
    right: 20px;
    width: 320px;
    height: 350px;
    border: 1px solid rgba(255,255,255,0.4);
    z-index: 2;
}

.activities-image img {
    position: relative;
    z-index: 3;
    width: 320px;
    height: 350px;
    object-fit: cover;
    left: 80px;
}

/* ============================================
   INFO CARDS SECTION (Richiedi Informazioni)
   ============================================ */
.info-section {
    background: var(--color-dark);
    padding: 100px 0 150px;
}

.info-section .section-title {
    margin-bottom: 20px;
}

.info-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    text-align: center;
    max-width: 561px;
    margin: 0 auto 60px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    position: relative;
    border: 1px solid var(--color-red);
    overflow: hidden;
    height: 536px;
    background: var(--color-card);
}

.card-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.info-card:hover .card-image img {
    transform: scale(1.1);
}

.info-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.3);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 168px;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card-overlay h3 {
    font-family: var(--font-title);
    font-size: 38px;
    text-align: center;
    margin-bottom: 15px;
}

.btn-info {
    font-family: var(--font-title);
    font-size: 21px;
    color: var(--color-white);
    background: transparent;
    border: 1px solid var(--color-red);
    padding: 8px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: var(--color-red);
}

/* ============================================
   ABOUT SECTION (Chi Siamo)
   ============================================ */
.about {
    position: relative;
    padding: 80px 0;
    background: var(--color-black);
    min-height: 768px;
}

.about-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('../esperienza pensata per te immagini.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.about-header h2 {
    font-family: var(--font-title);
    font-size: 91px;
    line-height: 1;
}

.about-header .line {
    width: 55px;
    height: 1px;
    background: var(--color-red);
}

.about-header .name {
    font-family: var(--font-title);
    font-size: 28px;
    color: var(--color-red);
}

.about-text {
    max-width: 758px;
}

.about-text p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    line-height: 1.75;
    margin-bottom: 20px;
}

.about-image {
    position: relative;
    margin-top: 20px;
}

.about-image-frame-red {
    position: absolute;
    top: -56px;
    left: -70px;
    width: 384px;
    height: 496px;
    border: 1px solid var(--color-red);
    z-index: 1;
}

.about-image-frame-white {
    position: absolute;
    top: 64px;
    left: 50px;
    width: 384px;
    height: 496px;
    border: 1px solid #ccc;
    z-index: 2;
}

.about-image img {
    position: relative;
    z-index: 3;
    width: 400px;
    height: 526px;
    object-fit: cover;
}

/* ============================================
   CONTACT SECTION (CTA)
   ============================================ */
.contact {
    position: relative;
    padding: 80px 0;
    background: var(--color-dark);
    min-height: 600px;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('../images/CTA.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact .container {
    position: relative;
    z-index: 2;
    height: 100%;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-height: 450px;
    padding: 40px 0;
    max-width: 550px;
    margin-left: auto;
}

.contact-title {
    font-family: var(--font-title);
    font-size: 56px;
    line-height: 1.05;
    text-align: right;
    margin-bottom: 40px;
}

.contact-title .text-red {
    display: block;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-form input {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 15px;
    color: var(--color-white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 14px 20px;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus {
    border-color: var(--color-white);
}

.btn-submit {
    font-family: var(--font-title);
    font-size: 18px;
    color: var(--color-red);
    background: transparent;
    border: 1px solid var(--color-red);
    padding: 14px 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: var(--color-red);
    color: var(--color-white);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-white);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-red);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-red);
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    background: var(--color-black);
    padding: 80px 0;
}

.map-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.map-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border: 2px solid var(--color-red);
    overflow: hidden;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-black);
    padding: 0;
}

.footer-top {
    display: flex;
    justify-content: center;
    padding: 72px 0;
    border-bottom: 2px solid var(--color-gray);
}

.footer-logo img {
    height: 56px;
    width: auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-links a {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 12px;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-red);
}

.copyright {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 12px;
    color: var(--color-white);
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-card);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--color-red);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--color-white);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--color-red);
}

.modal-content h3 {
    font-family: var(--font-title);
    font-size: 38px;
    margin-bottom: 20px;
}

.modal-content p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    margin-bottom: 30px;
}

.btn-modal {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 21px;
    color: var(--color-red);
    border: 1px solid var(--color-red);
    padding: 12px 40px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-modal:hover {
    background: var(--color-red);
    color: var(--color-white);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-top: 2px solid var(--color-red);
    z-index: 10000;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-content p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-white);
    margin: 0;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-cookie-accept {
    font-family: var(--font-title);
    font-size: 16px;
    color: var(--color-white);
    background: var(--color-red);
    border: 1px solid var(--color-red);
    padding: 10px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cookie-accept:hover {
    background: transparent;
    color: var(--color-red);
}

.btn-cookie-reject {
    font-family: var(--font-title);
    font-size: 16px;
    color: var(--color-white);
    background: transparent;
    border: 1px solid var(--color-white);
    padding: 10px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cookie-reject:hover {
    background: var(--color-white);
    color: var(--color-black);
}

.cookie-link {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-red);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: var(--color-white);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Breakpoint: Large Desktop / Small Desktop (1200px) */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .section-title,
    .contact-title {
        font-size: 60px;
    }

    .activities-content h2,
    .about-header h2 {
        font-size: 60px;
    }

    .mission-card h3,
    .card-overlay h3 {
        font-size: 28px;
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item {
        font-size: 32px;
    }
}

/* Breakpoint: iPad Landscape / Tablet (1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .section-title,
    .contact-title {
        font-size: 54px;
    }

    .activities-content h2,
    .about-header h2 {
        font-size: 54px;
    }

    .about .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        display: none;
    }

    .about {
        min-height: auto;
        padding: 60px 0;
    }

    .info-card {
        height: 450px;
    }

    .card-overlay h3 {
        font-size: 26px;
    }

    .hero-features {
        bottom: 30px;
    }

    .features-row {
        gap: 40px;
    }

    .feature-item {
        font-size: 28px;
    }

    .activities .container {
        gap: 40px;
    }

    .activities-image {
        height: 350px;
    }

    .activities-image img,
    .image-frame-red,
    .image-frame-white {
        width: 280px;
        height: 300px;
    }

    .image-frame-red {
        right: 80px;
    }

    .activities-image img {
        left: 60px;
    }
}

/* Breakpoint: Tablet / iPad Portrait (992px) */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.3s ease;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

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

    .nav-menu a {
        font-size: 20px;
        padding: 10px 20px;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    /* Hamburger animation to X */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .btn-started {
        display: none;
    }

    /* ===== FIX: Hero features overlap ===== */
    .hero {
        min-height: auto;
        padding-bottom: 40px;
    }

    .hero-content {
        padding-top: 120px;
        padding-bottom: 30px;
    }

    .hero-features {
        position: relative;
        bottom: auto;
        margin-top: 40px;
        padding: 20px 0;
    }

    .feature-item {
        font-size: 20px;
    }

    .features-row {
        flex-direction: column;
        gap: 15px;
    }

    .feature-divider {
        width: 40px;
        height: 2px;
    }

    /* ===== FIX: Mission logo R - REMOVE animation ===== */
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .mission-logo-img {
        height: 56px;
        width: auto;
        animation: none !important;
        transform: none !important;
    }

    .logo-bar {
        width: 120px;
    }

    .mission-logo-box {
        padding: 20px 40px;
    }

    /* ===== FIX: Activities grid alignment ===== */
    .activities .container {
        grid-template-columns: 1fr;
    }

    .activities-image {
        display: none;
    }

    .activities-content {
        text-align: center;
    }

    .activities-content h2 {
        font-size: 36px;
        line-height: 1.1;
        margin-bottom: 20px;
    }

    .activities-title-white,
    .activities-title-line2 {
        font-size: 36px;
        display: block;
    }

    .activities-title-te {
        font-size: 52px;
    }

    /* ===== FIX: Activities subtitle - line centered under title, text below ===== */
    .activities-subtitle {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 30px;
        margin-top: 0;
    }

    .activities-subtitle .line {
        width: 60px;
        order: 1;
    }

    .activities-subtitle span {
        order: 2;
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .activities-grid {
        max-width: 500px;
        margin: 0 auto;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .activity-box {
        padding: 16px 12px;
        font-size: 11px;
    }

    .activity-box.full-width {
        grid-column: span 2;
        max-width: 100%;
    }

    /* ===== FIX: About section - Image between header and text ===== */
    .about .container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .about {
        min-height: auto;
    }

    /* Use display: contents to flatten structure for reordering */
    .about-content {
        display: contents;
    }

    .about-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 10px;
        order: 1;
    }

    .about-header h2,
    .about-header .name {
        text-align: center;
        width: 100%;
    }

    .about-header .line {
        margin: 0 auto;
    }

    .about-image {
        display: block;
        order: 2;
        margin: 0 auto;
        max-width: 300px;
    }

    .about-image img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
    }

    .about-image-frame-red,
    .about-image-frame-white {
        display: none;
    }

    .about-text {
        text-align: center;
        order: 3;
    }

    .contact-content {
        align-items: center;
        margin: 0 auto;
        padding: 40px 20px;
    }

    .contact-title {
        text-align: center;
        font-size: 42px;
    }

    .contact-info {
        align-items: center;
    }

    .hero-logo,
    .hero-line {
        max-width: 90%;
        width: auto;
    }

    /* Map responsive */
    .map-container iframe {
        height: 350px;
    }

    /* Modal responsive */
    .modal-content {
        padding: 30px 25px;
        margin: 20px;
    }

    /* Cookie banner responsive */
    .cookie-content {
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
    }
}

/* Breakpoint: Large Mobile / Small Tablet (768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .section-title,
    .contact-title {
        font-size: 42px;
    }

    .contact-content {
        padding: 30px 20px;
        border-width: 1px;
    }

    .contact-title {
        font-size: 36px;
        text-align: center;
    }

    .activities-content h2,
    .about-header h2 {
        font-size: 36px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-card {
        height: 400px;
    }

    .card-overlay {
        height: 140px;
    }

    .card-overlay h3 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    /* Touch-friendly buttons */
    .btn-info {
        padding: 12px 45px;
        font-size: 18px;
        min-height: 44px;
    }

    /* ===== FIX: Activities grid - single column on small screens ===== */
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 100%;
    }

    .activity-box {
        padding: 16px 20px;
        font-size: 14px;
        min-height: 48px;
    }

    .activity-box.full-width {
        grid-column: span 1;
        max-width: 100%;
    }

    .activities-title-white,
    .activities-title-line2 {
        font-size: 32px;
    }

    .activities-title-te {
        font-size: 44px;
    }

    /* Activities subtitle - keep vertical layout */
    .activities-subtitle {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .activities-subtitle .line {
        width: 50px;
    }

    .activities-subtitle span {
        font-size: 11px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form input {
        padding: 16px 20px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .btn-submit {
        padding: 16px 50px;
        min-height: 48px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .mission {
        padding: 60px 0;
    }

    .mission-text {
        font-size: 16px;
    }

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

    .mission-card h3 {
        font-size: 20px;
    }

    .mission-card p {
        font-size: 14px;
    }

    /* ===== FIX: Mission logo - no animation ===== */
    .mission-logo-box {
        padding: 15px 30px;
    }

    .logo-bar {
        width: 80px;
    }

    .mission-logo-img {
        height: 50px;
        animation: none !important;
        transform: none !important;
    }

    /* ===== FIX: About image between header and text ===== */
    .about-content {
        display: contents;
    }

    .about-header {
        order: 1;
    }

    .about-image {
        display: block;
        order: 2;
        margin: 0 auto;
        max-width: 250px;
    }

    .about-image img {
        width: 100%;
        height: auto;
        max-height: 350px;
    }

    .about-text {
        order: 3;
    }

    .about-text p {
        font-size: 16px;
    }

    .about-header h2 {
        font-size: 42px;
    }

    .about-header .name {
        font-size: 22px;
    }

    /* Hero responsive */
    .hero-text {
        font-size: 14px;
        padding: 0 10px;
    }

    .hero-text br {
        display: none;
    }

    .logo-subtitle {
        letter-spacing: 4px;
        font-size: clamp(10px, 2vw, 14px);
    }

    .feature-item {
        font-size: 18px;
    }

    /* Map */
    .map-section {
        padding: 60px 0;
    }

    .map-container iframe {
        height: 300px;
    }

    /* WhatsApp button */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    /* Info section */
    .info-section {
        padding: 60px 0 100px;
    }

    .info-subtitle {
        font-size: 14px;
        padding: 0 10px;
    }
}

/* Breakpoint: Mobile (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 12px 0;
    }

    .logo img {
        height: 44px;
    }

    .nav-menu {
        top: 68px;
        height: calc(100vh - 68px);
    }

    .section-title,
    .contact-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 10px;
        letter-spacing: 3px;
    }

    .logo-subtitle {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .btn-outline {
        font-size: 18px;
        padding: 12px 28px;
        min-height: 48px;
    }

    /* ===== FIX: Hero - prevent overlap ===== */
    .hero {
        min-height: auto;
        padding-bottom: 30px;
    }

    .hero-content {
        padding-top: 100px;
        padding-bottom: 20px;
    }

    .hero-logo {
        padding: 0 10px;
    }

    .hero-text {
        font-size: 13px;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .hero-features {
        position: relative;
        bottom: auto;
        margin-top: 30px;
    }

    .feature-item {
        font-size: 16px;
    }

    .features-row {
        gap: 12px;
    }

    /* ===== FIX: Activities - clean single column ===== */
    .activities {
        padding: 40px 0;
    }

    .activities-content h2 {
        margin-bottom: 15px;
    }

    .activities-title-white,
    .activities-title-line2 {
        font-size: 26px;
    }

    .activities-title-te {
        font-size: 38px;
    }

    /* Activities subtitle - vertical layout */
    .activities-subtitle {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 25px;
    }

    .activities-subtitle span {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .activities-subtitle .line {
        width: 40px;
    }

    .activities-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .activity-box {
        padding: 14px 16px;
        font-size: 13px;
    }

    .activity-box.full-width {
        grid-column: span 1;
    }

    /* ===== FIX: Mission logo - no animation ===== */
    .mission-card h3 {
        font-size: 18px;
    }

    .mission-text {
        font-size: 14px;
    }

    .mission-logo-center {
        margin: 30px 0 40px;
    }

    .mission-logo-box {
        padding: 12px 20px;
    }

    .logo-bar {
        width: 50px;
    }

    .mission-logo-img {
        height: 40px;
        animation: none !important;
        transform: none !important;
    }

    /* ===== FIX: About - image between header and text ===== */
    .about {
        padding: 50px 0;
    }

    .about-content {
        display: contents;
    }

    .about-header {
        order: 1;
    }

    .about-image {
        display: block;
        order: 2;
        max-width: 200px;
        margin: 0 auto;
    }

    .about-image img {
        max-height: 280px;
    }

    .about-text {
        order: 3;
    }

    .about-header h2 {
        font-size: 36px;
    }

    .about-header .name {
        font-size: 18px;
    }

    .about-text p {
        font-size: 14px;
        line-height: 1.6;
    }

    .contact {
        padding: 50px 0;
        min-height: auto;
    }

    .contact-title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .contact-item {
        font-size: 14px;
    }

    .contact-item svg {
        width: 18px;
        height: 18px;
    }

    .info-card {
        height: 350px;
    }

    .card-overlay {
        height: 120px;
        padding: 15px;
    }

    .card-overlay h3 {
        font-size: 24px;
    }

    .btn-info {
        padding: 10px 35px;
        font-size: 16px;
    }

    .map-container iframe {
        height: 250px;
    }

    .footer-top {
        padding: 50px 0;
    }

    .footer-logo img {
        height: 44px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links span {
        display: none;
    }

    /* Modal mobile */
    .modal-content {
        padding: 25px 20px;
        margin: 15px;
        width: calc(100% - 30px);
    }

    .modal-content h3 {
        font-size: 28px;
    }

    .modal-content p {
        font-size: 14px;
    }

    .btn-modal {
        font-size: 18px;
        padding: 12px 30px;
        width: 100%;
        text-align: center;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }

    /* Cookie banner mobile */
    .cookie-banner {
        padding: 15px;
    }

    .cookie-content p {
        font-size: 12px;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-cookie-accept,
    .btn-cookie-reject {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }

    .cookie-link {
        margin-top: 5px;
    }

    /* WhatsApp button mobile */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Breakpoint: Small Mobile (360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .section-title,
    .contact-title {
        font-size: 28px;
    }

    .hero-content {
        padding-top: 90px;
    }

    .logo-text {
        font-size: clamp(32px, 9vw, 42px);
    }

    .activities-title-white,
    .activities-title-line2 {
        font-size: 22px;
    }

    .activities-title-te {
        font-size: 32px;
    }

    .feature-item {
        font-size: 14px;
    }

    .mission-card {
        padding: 15px 18px;
    }

    .mission-card h3 {
        font-size: 16px;
    }

    .mission-card p {
        font-size: 13px;
    }

    .mission-logo-img {
        animation: none !important;
        transform: none !important;
    }

    .info-card {
        height: 300px;
    }

    .card-overlay h3 {
        font-size: 20px;
    }

    .about-header h2 {
        font-size: 32px;
    }

    .about-content {
        display: contents;
    }

    .about-header {
        order: 1;
    }

    .about-image {
        order: 2;
        max-width: 180px;
    }

    .about-image img {
        max-height: 240px;
    }

    .about-text {
        order: 3;
    }

    .contact-title {
        font-size: 24px;
    }

    .activity-box {
        font-size: 12px;
        padding: 12px 14px;
    }

    /* Activities subtitle */
    .activities-subtitle .line {
        width: 35px;
    }

    .activities-subtitle span {
        font-size: 9px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .nav-menu a {
        padding: 12px 20px;
    }

    .activity-box {
        min-height: 48px;
    }

    .btn-info,
    .btn-submit,
    .btn-outline,
    .btn-modal {
        min-height: 48px;
    }

    /* Disable hover effects that don't work well on touch */
    .info-card:hover {
        transform: none;
    }

    .info-card:active {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(255, 0, 0, 0.3);
    }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-features {
        position: relative;
        bottom: auto;
        margin-top: 30px;
    }

    .nav-menu {
        padding: 20px 0;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .nav-menu a {
        padding: 8px 20px;
    }
}

/* Safe area insets for notched devices (iPhone X+) */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .footer-bottom {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .cookie-banner {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .whatsapp-float {
        right: max(20px, env(safe-area-inset-right));
        bottom: max(20px, env(safe-area-inset-bottom));
    }
}
