/* ========================================
   QuadroDigitale - Main Stylesheet
   File CSS unificato per tutte le pagine
   ======================================== */

/* === RESET E BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
    max-width: 100vw;
}

/* === VARIABILI COLORI === */
:root {
    --primary: #71ccff;
    --background-light: #f5f7f8;
    --background-dark: #0f1c23;
    --light-sky: #e4f6ff;
    --sky-blue: #b4e4ff;
    --ocean-blue: #71ccff;
    --off-black: #1a1a1a;
    --white: #ffffff;
    --black: #000000;
    --border-light: #b4e4ff;
    --text-opacity-70: rgba(26, 26, 26, 0.7);
    --text-opacity-80: rgba(26, 26, 26, 0.8);
    --text-opacity-60: rgba(26, 26, 26, 0.6);
    --white-opacity-80: rgba(255, 255, 255, 0.8);
    --white-opacity-90: rgba(255, 255, 255, 0.9);
    --white-opacity-70: rgba(255, 255, 255, 0.7);
    --white-opacity-60: rgba(255, 255, 255, 0.6);
}

body.light {
    background-color: var(--background-light);
    color: var(--black);
}

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

/* === TYPOGRAPHY === */
h1 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
}

p {
    line-height: 1.6;
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

/* === HEADER / NAVIGATION === */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(228, 246, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(180, 228, 255, 0.5);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

nav {
    display: none;
}

nav.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

nav a.active {
    font-weight: 700;
    color: var(--primary);
}

.btn-cta {
    min-width: 120px;
    padding: 0.625rem 1.25rem;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cta:hover {
    transform: scale(1.05);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 2.4rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    color: white;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--ocean-blue);
    color: white !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-primary:hover {
    transform: scale(1.05);
    color: white;
    background-color: #5ab8e6;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--ocean-blue);
    border: 2px solid var(--ocean-blue);
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: var(--light-sky);
    color: var(--black);
    transition: all 0.3s ease;
}

.btn-white {
    background-color: var(--white);
    color: var(--ocean-blue);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: scale(1.05);
    color: var(--black);
}

/* === CTA BUTTON (large width) === */
.btn-cta-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 4rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    background-color: var(--ocean-blue);
    color: var(--white);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    margin-top: 3.5rem;
}

.btn-cta-large:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* === HERO SECTION === */
.hero {
    padding: calc(5rem - 20px) 0 8rem;
    background: linear-gradient(to bottom, var(--sky-blue), var(--ocean-blue));
    text-align: center;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 0 auto;
    max-width: 1200px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--black);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-opacity-80);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* === STATS IN HERO === */
.stats-in-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 1.5rem;
}

.stat-card-hero {
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--black);
    margin: 0.5rem 0;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-opacity-80);
    margin-top: 1rem;
}

/* === FEATURED OFFERS (sotto hero) === */
.featured-offers {
    padding: 4rem 0 5rem;
    background-color: var(--background-light);
    position: relative;
}

.featured-offers.underwater-section {
    background-color: transparent !important;
    margin-top: -50px;
    padding-top: calc(4rem + 50px);
}

/* Video Background for Services Section */
.services-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 0;
}

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

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

/* === SECTIONS === */
section {
    padding: 4rem 0 5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-opacity-70);
    max-width: 42rem;
    margin: 0 auto;
}

/* === CARDS === */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.card {
    padding: 1rem 2rem;
    background-color: var(--white);
    border-radius: 0.75rem;
    border: 1px solid rgba(180, 228, 255, 0.2);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(113, 204, 255, 0.2);
}

.card-icon {
    font-size: 5rem;
    color: var(--ocean-blue);
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.card p {
    color: var(--text-opacity-70);
    margin-bottom: 1rem;
}

.card a {
    color: var(--ocean-blue);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card a:hover {
    color: #5ab8e6;
    text-decoration: underline;
}

/* === PROCESS SECTION === */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: scale(2);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.process-step.animate {
    opacity: 1;
    transform: scale(1);
}

.process-step:nth-child(1) {
    transition-delay: 0.2s;
}

.process-step:nth-child(2) {
    transition-delay: 0.5s;
}

.process-step:nth-child(3) {
    transition-delay: 0.8s;
}

.process-step:nth-child(4) {
    transition-delay: 1.1s;
}

.step-number {
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-sky);
    border: 2px solid var(--sky-blue);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ocean-blue);
    margin-bottom: 1rem;
}

.process-step .card-icon {
    font-size: 5rem;
    color: var(--ocean-blue);
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.process-step p {
    color: var(--text-opacity-70);
}

/* === TESTIMONIALS === */
.testimonials-section {
    background: linear-gradient(180deg, #0a1420 0%, #050a10 100%);
    position: relative;
    padding: 5rem 0;
    overflow: visible;
}

.testimonials-section .section-title h2,
.testimonials-section .section-title p {
    color: var(--white);
}

.testimonials-section .container {
    position: relative;
    z-index: 1;
}

/* Pesci che nuotano nelle sezioni scure */
.swimming-fish {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.swimming-fish img {
    height: auto;
    opacity: 0.6;
}

/* Pescatrice - nuota da sx a dx, poi da dx a sx */
.anglerfish {
    top: -5%;
    animation: swimRoundTrip 60s linear infinite;
}

.anglerfish img {
    width: 120px;
}

/* Blob - in basso, nuota da sx a dx, poi da dx a sx */
.blobfish {
    bottom: 40%;
    animation: swimRoundTrip 70s linear infinite;
    animation-delay: -20s;
    z-index: 0;
}

.blobfish img {
    width: 100px;
}

@keyframes swimRoundTrip {
    0% {
        left: -150px;
        transform: scaleX(-1);
    }
    45% {
        left: calc(100% + 150px);
        transform: scaleX(-1);
    }
    50% {
        left: calc(100% + 150px);
        transform: scaleX(1);
    }
    95% {
        left: -150px;
        transform: scaleX(1);
    }
    100% {
        left: -150px;
        transform: scaleX(-1);
    }
}

@media (max-width: 767px) {
    .swimming-fish img {
        width: 60px;
    }
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border: 3px solid rgba(180, 228, 255, 0.4);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--ocean-blue);
}

.stars {
    display: flex;
    color: var(--ocean-blue);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-opacity-80);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--black);
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-opacity-60);
}

/* === FORMS === */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(113, 204, 255, 0.2);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* === FOOTER / WAVE SECTION === */
.wave-section {
    position: relative;
    background-color: var(--black);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Video Background for Footer */
.footer-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* Performance optimizations */
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.footer-bg-video.video-loaded {
    opacity: 1;
}


.footer-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1rem;
}

.cta-footer {
    text-align: center;
    padding: 2.5rem 1rem 5rem;
}

.cta-footer h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

footer {
    position: relative;
    z-index: 10;
    padding: 0.625rem 1.25rem 5rem;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    font-weight: bold;
    justify-content: center;
    gap: 2rem 2rem;
    margin-bottom: 2.5rem;
}

.footer-links a {
    color: var(--white-opacity-80);
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    font-weight: bold;
    transition: 0.3s ease;
}

.copyright {
    color: var(--white-opacity-60);
    font-size: 0.875rem;
    padding-bottom: 60px;
}

/* === MATERIAL ICONS === */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: inherit;
}


.accordion {
    margin-top: 3rem;
}

.accordion-item {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.accordion-item:hover {
    background-color: var(--white);
}

.accordion-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 700;
    color: var(--off-black);
    list-style: none;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item[open] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-opacity-80);
    line-height: 1.6;
}

/* === RESPONSIVE === */
@media (min-width: 768px) {
    h1 {
        font-size: 3.75rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    nav {
        display: flex;
    }

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

    .stats-in-hero {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-number {
        font-size: 5rem;
    }

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

@media (min-width: 1024px) {
    section {
        padding: 5rem 0;
    }

    .hero {
        padding: 6rem 0 9rem;
    }

    .hero h1 {
        font-size: 3.75rem;
    }

    .stat-number {
        font-size: 6rem;
    }

    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-footer h1 {
        font-size: 3.75rem;
    }
}

/* === UTILITIES === */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

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

/* === DARK MODE SUPPORT === */
body.dark header {
    background: rgba(15, 28, 35, 0.8);
}

body.dark .stat-card-hero {
    background-color: rgba(255, 255, 255, 0.95);
}

body.dark .card {
    background-color: var(--background-dark);
    color: var(--white);
}

body.dark .card p {
    color: var(--white-opacity-70);
}

body.dark .testimonial {
    background-color: var(--off-black);
    color: var(--white);
    border-color: rgba(180, 228, 255, 0.3);
}

body.dark .testimonial:hover {
    border-color: var(--ocean-blue);
}

body.dark .testimonial-text {
    color: var(--white-opacity-80);
}

body.dark .testimonial-author {
    color: var(--white);
}

body.dark .testimonial-role {
    color: var(--white-opacity-60);
}

/* === BREADCRUMB === */
.breadcrumb {
    background-color: var(--white);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(180, 228, 255, 0.2);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: var(--off-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--ocean-blue);
}

.breadcrumb-separator {
    color: var(--text-opacity-70);
    margin: 0 0.25rem;
}

.breadcrumb-current {
    color: var(--ocean-blue);
    font-weight: 700;
}

/* === SERVICE DETAIL === */
.service-detail h2 {
    font-size: 1.75rem;
}

.service-detail h3 {
    font-size: 1.375rem;
    margin-top: 2rem;
}

.service-detail h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-detail ul {
    list-style-position: inside;
}

.service-detail li {
    margin-bottom: 0.5rem;
}

.cta-box {
    background-color: var(--light-sky);
    padding: 2rem;
    border-radius: 0.75rem;
    margin-top: 3rem;
}

.cta-box h3 {
    margin-top: 0;
}






.logo-container a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container a:hover {
    transform: scale(1.05);
    color: #5ab8e6;
    text-shadow: 0 4px 12px rgba(113, 204, 255, 0.3);
}

.logo-container a:hover .logo-text {
    color: #5ab8e6;
}





h1 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
}

h2 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
}

h4 {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
}








/* === HERO BADGE === */
.hero-badge {
    display: block;
    text-align: center;
    padding: 0.25rem 2rem;
    background-color: var(--light-sky);
    border: 1px solid var(--sky-blue);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--deep-blue);
    margin: 0 auto 1.5rem;
    z-index: 10;
    width: fit-content;
}


.hero h1 {
        text-shadow: 
        0px 1px 0px #f5f5f5,
        0px 1.5px 0px #e7e7e7,
        0px 2px 0px #e0e0e0,
        0px 2px 1px rgba(0,0,0,.1),
        0px 1.5px 2px rgba(0,0,0,.3),
        0px 1px 3px rgba(0,0,0,.2)
}








/* === HERO WITH WAVES === */
.hero-with-waves {
    position: relative;
    background: linear-gradient(to bottom, var(--sky-blue), var(--white));
    padding-bottom: 200px;
}

.hero-with-waves::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 320px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320" preserveAspectRatio="none"><path fill="%23a1dffe" d="M0,160L48,181.3C96,203,192,245,288,245.3C384,245,480,203,576,186.7C672,171,768,181,864,197.3C960,213,1056,235,1152,218.7C1248,203,1344,149,1392,122.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat;
    background-size: cover;
    z-index: 1;
    animation: waveFloatBack 4s ease-in-out infinite;
}

.hero-with-waves::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 250px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320" preserveAspectRatio="none"><path fill="%23BEE8FB" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat;
    background-size: cover;
    z-index: 2;
}

@keyframes waveFloatBack {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes waveFloatFront {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-with-waves .container {
    position: relative;
    z-index: 0;
}



.hero-title{
    font-size: 3rem;
    text-shadow: 
        0px 1px 0px #f5f5f5,
        0px 1.5px 0px #e7e7e7,
        0px 2px 0px #e0e0e0,
        0px 2px 1px rgba(0,0,0,.1),
        0px 1.5px 2px rgba(0,0,0,.3),
        0px 1px 3px rgba(0,0,0,.2);
}










.logo-container a {
    display: flex;
    justify-content: center;
    width: 100%;
}




body {
    width: 100%;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-x pan-y;
}

input, textarea, select {
    -webkit-user-select: text;
    user-select: text;
}










/* Fade in/out animations */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.3s ease-in forwards;
}

#contactForm, #successMessage {
    transition: opacity 0.3s ease;
}













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

@media (max-width: 768px) {


    .header-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem 0.5rem;
        min-height: auto;
    }
    .logo-container {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 0.25rem;
    }

    .logo-container a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .logo-text {
        text-align: center !important;
        margin: 0 !important;
        font-weight: 700 !important;
    }

    .desktop-nav {
        flex-direction: row !important;
        width: auto !important;
        gap: 1.5rem !important;
        text-align: center;
        justify-content: center;
        align-items: center;
        margin-bottom: 0.25rem;
        flex: none;
    }

    .desktop-nav a {
        display: inline-block;
        padding: 0.5rem 0 !important;
        position: relative;
        vertical-align: middle;
        font-weight: 400 !important;
    }

    .desktop-nav a:not(:last-child)::after {
        content: '|';
        position: absolute;
        right: -0.8rem;
        color: #999 !important;
        opacity: 1 !important;
        font-weight: 400 !important;
        font-size: 1rem;
        line-height: 1;
    }

    .btn-cta {
        display: none !important;
    }

    .hero-title {
        text-align: center !important;
    }

    /* === PROCESS SECTION NO ANIMATION === */
    .process-step {
        animation: none;
        opacity: 1 ;
        transform: none;
    }

    .process-step.animate {
        animation: none;
        opacity: 1 ;
        transform: none;
    }

    .process-grid {
        gap: 3rem ;
    }

    .process-step span.material-symbols-outlined {
        margin-bottom: 0.5rem;
    }

    .process-step h3 {
        margin-top: 0.25rem ;
        margin-bottom: 0.3rem;  /* RIDOTTO da 0.75rem a 0.3rem */
    }

    .process-step p {
        margin-top: 0.3rem ;  /* RIDOTTO da 0.75rem a 0.3rem */
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 0 ;
        margin-top: 0 ;
    }

    main {
        margin-top: 0px;
        padding-top: 0 ;
    }

    .header-container {
        padding: 0.75rem;
        gap: 0.35rem ;
    }

    .desktop-nav {
        gap: 1.2rem ;
    }

    .desktop-nav a {
        padding: 0.4rem 0 ;
        font-size: 0.9rem;
    }

    .process-step {
        animation: none ;
        opacity: 1 ;
        transform: none ;
    }

    .process-step.animate {
        animation: none ;
        opacity: 1 ;
        transform: none;
    }

    /* Change smaller wave color for mobile */
    .hero-with-waves::before {
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320" preserveAspectRatio="none"><path fill="%23c9ecfd" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat;
        background-size: cover;
    }
}


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

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

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

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* === UNDERWATER ANIMATION === */
.underwater-section {
    position: relative;
    overflow: hidden;
}

.underwater-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        #c9ebfc 0%,
        #c0e8fb 3%,
        #b5e3f9 7%,
        #a8ddf7 12%,
        #9ad5f4 18%,
        #8bcdf0 25%,
        #7bc4eb 33%,
        #5fb8e0 42%,
        #45a5d0 52%,
        #3090bc 62%,
        #2578a0 72%,
        #1a5f82 82%,
        #104560 92%,
        #0a1628 100%
    );
    z-index: 0;
}

.services-overlay {
    display: none;
}

/* Bolle d'aria */
.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: bubbleRise linear infinite;
}

.bubble-1 { width: 8px; height: 8px; left: 3%; animation-duration: 12s; animation-delay: -2s; }
.bubble-2 { width: 12px; height: 12px; left: 7%; animation-duration: 15s; animation-delay: -8s; }
.bubble-3 { width: 6px; height: 6px; left: 10%; animation-duration: 10s; animation-delay: -4s; }
.bubble-4 { width: 10px; height: 10px; left: 14%; animation-duration: 14s; animation-delay: -10s; }
.bubble-5 { width: 7px; height: 7px; left: 17%; animation-duration: 11s; animation-delay: -6s; }
.bubble-6 { width: 9px; height: 9px; left: 21%; animation-duration: 13s; animation-delay: -3s; }
.bubble-7 { width: 5px; height: 5px; left: 24%; animation-duration: 9s; animation-delay: -7s; }
.bubble-8 { width: 11px; height: 11px; left: 28%; animation-duration: 16s; animation-delay: -12s; }
.bubble-9 { width: 6px; height: 6px; left: 31%; animation-duration: 10s; animation-delay: -5s; }
.bubble-10 { width: 8px; height: 8px; left: 35%; animation-duration: 12s; animation-delay: -9s; }
.bubble-11 { width: 7px; height: 7px; left: 38%; animation-duration: 11s; animation-delay: -1s; }
.bubble-12 { width: 10px; height: 10px; left: 42%; animation-duration: 14s; animation-delay: -11s; }
.bubble-13 { width: 5px; height: 5px; left: 45%; animation-duration: 9s; animation-delay: -3s; }
.bubble-14 { width: 9px; height: 9px; left: 49%; animation-duration: 13s; animation-delay: -7s; }
.bubble-15 { width: 6px; height: 6px; left: 52%; animation-duration: 10s; animation-delay: -13s; }
.bubble-16 { width: 8px; height: 8px; left: 56%; animation-duration: 12s; animation-delay: -4s; }
.bubble-17 { width: 11px; height: 11px; left: 59%; animation-duration: 15s; animation-delay: -9s; }
.bubble-18 { width: 7px; height: 7px; left: 63%; animation-duration: 11s; animation-delay: -2s; }
.bubble-19 { width: 5px; height: 5px; left: 66%; animation-duration: 9s; animation-delay: -6s; }
.bubble-20 { width: 10px; height: 10px; left: 70%; animation-duration: 14s; animation-delay: -10s; }
.bubble-21 { width: 6px; height: 6px; left: 73%; animation-duration: 10s; animation-delay: -14s; }
.bubble-22 { width: 9px; height: 9px; left: 77%; animation-duration: 13s; animation-delay: -5s; }
.bubble-23 { width: 8px; height: 8px; left: 80%; animation-duration: 12s; animation-delay: -8s; }
.bubble-24 { width: 7px; height: 7px; left: 84%; animation-duration: 11s; animation-delay: -12s; }
.bubble-25 { width: 11px; height: 11px; left: 87%; animation-duration: 16s; animation-delay: -3s; }
.bubble-26 { width: 5px; height: 5px; left: 90%; animation-duration: 9s; animation-delay: -7s; }
.bubble-27 { width: 10px; height: 10px; left: 93%; animation-duration: 14s; animation-delay: -11s; }
.bubble-28 { width: 6px; height: 6px; left: 95%; animation-duration: 10s; animation-delay: -1s; }
.bubble-29 { width: 8px; height: 8px; left: 97%; animation-duration: 12s; animation-delay: -6s; }
.bubble-30 { width: 9px; height: 9px; left: 99%; animation-duration: 13s; animation-delay: -9s; }

@keyframes bubbleRise {
    0% {
        bottom: -20px;
        opacity: 0;
        transform: translateX(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Pesci */
.fish {
    position: absolute;
    z-index: 1;
}

.fish img {
    width: 60px;
    height: auto;
    opacity: 0.35;
}

/* 9 pesci con delay negativi */
.fish-1 { top: 5%; animation: swimRight 28s linear infinite; animation-delay: -5s; }
.fish-2 { top: 10%; animation: swimLeft 32s linear infinite; animation-delay: -18s; }
.fish-3 { top: 15%; animation: swimRight 25s linear infinite; animation-delay: -12s; }
.fish-4 { top: 20%; animation: swimLeft 30s linear infinite; animation-delay: -8s; }
.fish-5 { top: 8%; animation: swimRight 35s linear infinite; animation-delay: -22s; }
.fish-6 { top: 18%; animation: swimLeft 27s linear infinite; animation-delay: -3s; }
.fish-7 { top: 12%; animation: swimRight 33s linear infinite; animation-delay: -28s; }
.fish-8 { top: 22%; animation: swimLeft 29s linear infinite; animation-delay: -15s; }
.fish-9 { top: 7%; animation: swimRight 31s linear infinite; animation-delay: -25s; }
.fish-10 { top: 25%; animation: swimLeft 34s linear infinite; animation-delay: -10s; }
.fish-11 { top: 8%; animation: swimRight 26s linear infinite; animation-delay: -20s; }
.fish-12 { top: 17%; animation: swimLeft 30s linear infinite; animation-delay: -6s; }
.fish-13 { top: 13%; animation: swimRight 32s linear infinite; animation-delay: -14s; }
.fish-14 { top: 21%; animation: swimLeft 28s linear infinite; animation-delay: -19s; }
.fish-15 { top: 9%; animation: swimRight 36s linear infinite; animation-delay: -7s; }

/* Dimensioni variate */
.fish-1 img { width: 55px; }
.fish-2 img { width: 48px; }
.fish-3 img { width: 62px; }
.fish-4 img { width: 52px; }
.fish-5 img { width: 45px; }
.fish-6 img { width: 58px; }
.fish-7 img { width: 50px; }
.fish-8 img { width: 54px; }
.fish-9 img { width: 47px; }
.fish-10 img { width: 56px; }
.fish-11 img { width: 49px; }
.fish-12 img { width: 53px; }
.fish-13 img { width: 51px; }
.fish-14 img { width: 57px; }
.fish-15 img { width: 46px; }

/* Pesci che vanno a DESTRA (swimRight) guardano a destra */
.fish-1 img, .fish-3 img, .fish-5 img, .fish-7 img, .fish-9 img, .fish-11 img, .fish-13 img, .fish-15 img {
    transform: scaleX(-1);
}

/* Pesci che vanno a SINISTRA (swimLeft) guardano a sinistra */
.fish-2 img, .fish-4 img, .fish-6 img, .fish-8 img, .fish-10 img, .fish-12 img, .fish-14 img {
    transform: scaleX(1);
}

@keyframes swimRight {
    0% {
        left: -100px;
    }
    100% {
        left: calc(100% + 100px);
    }
}

@keyframes swimLeft {
    0% {
        right: -100px;
        left: auto;
    }
    100% {
        right: calc(100% + 100px);
        left: auto;
    }
}

/* Squali */
.shark {
    position: absolute;
    z-index: 1;
}

.shark img {
    width: 350px;
    height: auto;
    opacity: 0.22;
}

/* 4 squali con delay negativi */
.shark-1 { bottom: 17%; animation: sharkSwimRight 55s linear infinite; animation-delay: -15s; }
.shark-2 { bottom: 7%; animation: sharkSwimLeft 60s linear infinite; animation-delay: -35s; }
.shark-3 { bottom: 0%; animation: sharkSwimRight 65s linear infinite; animation-delay: -50s; }
.shark-4 { bottom: 25%; animation: sharkSwimLeft 58s linear infinite; animation-delay: -25s; }

/* Dimensioni variate (raddoppiate) */
.shark-1 img { width: 320px; }
.shark-2 img { width: 400px; }
.shark-3 img { width: 360px; }
.shark-4 img { width: 340px; }

/* Squali che vanno a DESTRA guardano a destra */
.shark-1 img, .shark-3 img {
    transform: scaleX(-1);
}

/* Squali che vanno a SINISTRA guardano a sinistra */
.shark-2 img, .shark-4 img {
    transform: scaleX(1);
}

@keyframes sharkSwimRight {
    0% {
        left: -450px;
    }
    100% {
        left: calc(100% + 450px);
    }
}

@keyframes sharkSwimLeft {
    0% {
        right: -450px;
        left: auto;
    }
    100% {
        right: calc(100% + 450px);
        left: auto;
    }
}

/* Raggi di luce dall'alto */
.underwater-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.1) 0%,
        transparent 100%
    );
    pointer-events: none;
}

/* Caustics (riflessi luce sull'acqua) */
.underwater-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse 100px 80px at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 80px 60px at 60% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(ellipse 120px 90px at 80% 40%, rgba(255,255,255,0.07) 0%, transparent 50%);
    animation: caustics 20s linear infinite;
    pointer-events: none;
}

@keyframes caustics {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* === SEAGULLS ANIMATION === */
.seagulls-container {
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    height: 150px;
    pointer-events: none;
    z-index: 50;
    overflow: visible;
}

.seagull {
    position: absolute;
    z-index: 50;
}

.seagull img {
    width: 40px;
    height: auto;
    opacity: 0.85;
}

/* Gabbiani 1,3,5 volano da dx a sx - Gabbiani 2,4 volano da sx a dx */
/* Velocità ridotta al 30% (3x più lenti) */
.seagull-1 { top: 10px; animation: seagullFlyLeft 60s linear infinite; }
.seagull-2 { top: 40px; animation: seagullFlyRight 73s linear infinite; }
.seagull-3 { top: 25px; animation: seagullFlyLeft 67s linear infinite; }
.seagull-4 { top: 55px; animation: seagullFlyRight 83s linear infinite; }
.seagull-5 { top: 5px; animation: seagullFlyLeft 63s linear infinite; }

/* Dimensioni ridotte 50% */
.seagull-1 img { width: 35px; }
.seagull-2 img { width: 42px; }
.seagull-3 img { width: 38px; }
.seagull-4 img { width: 32px; }
.seagull-5 img { width: 40px; }

/* Gabbiani che vanno da sx a dx devono essere specchiati */
.seagull-2 img, .seagull-4 img {
    transform: scaleX(-1);
}

/* Volo da destra a sinistra */
@keyframes seagullFlyLeft {
    0% { right: -60px; left: auto; }
    100% { right: calc(100% + 60px); left: auto; }
}

/* Volo da sinistra a destra */
@keyframes seagullFlyRight {
    0% { left: -60px; right: auto; }
    100% { left: calc(100% + 60px); right: auto; }
}

/* Mobile: nascondi alcuni gabbiani */
@media (max-width: 768px) {
    .seagull-4, .seagull-5 {
        display: none;
    }
    
    .seagull img {
        width: 25px;
    }
}

/* Mobile: riduci animazioni */
@media (max-width: 768px) {
    .fish-9, .fish-10, .fish-11, .fish-12, .fish-13, .fish-14, .fish-15,
    .bubble-5, .bubble-7, .bubble-9, .bubble-11, .bubble-13, .bubble-15, 
    .bubble-17, .bubble-19, .bubble-21, .bubble-23, .bubble-25, .bubble-27, .bubble-29 {
        display: none;
    }
    
    .shark-3, .shark-4 {
        display: none;
    }
    
    /* Reposition sharks to swim below "consulenze su misura" box on mobile - 60px lower */
    .shark-1 { bottom: auto !important; top: calc(88% + 60px) !important; display: block !important; }
    .shark-2 { bottom: auto !important; top: calc(92% + 60px) !important; display: block !important; }
    
    .fish img {
        width: 38px;
    }
    
    /* Make fish swim 30px higher on mobile (except fish-11 which is too high) */
    .fish-1 { top: calc(5% - 30px) !important; }
    .fish-2 { top: calc(10% - 30px) !important; }
    .fish-3 { top: calc(15% - 30px) !important; }
    .fish-4 { top: calc(20% - 30px) !important; }
    .fish-5 { top: calc(8% - 30px) !important; }
    .fish-6 { top: calc(18% - 30px) !important; }
    .fish-7 { top: calc(12% - 30px) !important; }
    .fish-8 { top: calc(22% - 30px) !important; }
    /* fish-11 removed - was swimming too high on mobile */
    
    /* Make squid swim 60px lower on mobile (20px more than before) */
    .squid-1 { top: calc(29% + 60px) !important; }
    .squid-2 { top: calc(31% + 60px) !important; }
    
    /* Move whale to swim after entire timeline, before portfolio on mobile - 200px lower */
    .whale-1 { top: calc(85%) !important; }
    
    /* Make anglerfish swim 50px lower on mobile (20px more than before) */
    .anglerfish { top: calc(-5% + 50px) !important; }
    
    /* Move blobfish below last review on mobile - 100px lower */
    .blobfish { bottom: auto !important; top: calc(92% + 110px) !important; }
    
    .shark img {
        width: 180px;
    }
    
    .shark-2 img {
        width: 220px;
    }
}


/* === VERTICAL TIMELINE === */
.timeline-section {
    background: linear-gradient(180deg, #0a1628 0%, #1a2d4a 50%, #0f1c2e 100%);
    position: relative;
    z-index: 5;
    overflow: visible;
    padding: 5rem 0;
}

.timeline-section .section-title h2,
.timeline-section .section-title p {
    color: var(--white);
}

.timeline-section .section-title p strong {
    color: var(--ocean-blue);
}

.vertical-timeline {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 2rem 0;
}

/* Calamari nella timeline */
.timeline-squid {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.timeline-squid img {
    width: 80px;
    height: auto;
    opacity: 0.7;
}

/* Calamaro 1: nuota da sinistra a destra (immagine già orientata correttamente) */
.squid-1 {
    top: calc(29%);
    animation: swimRight 35s linear infinite;
    animation-delay: -8s;
}

/* Calamaro 2: nuota da destra a sinistra (immagine invertita) */
.squid-2 {
    top: calc(31%);
    animation: swimLeft 40s linear infinite;
    animation-delay: -20s;
}

.squid-2 img {
    transform: scaleX(-1);
}

/* Capodoglio nella timeline */
.timeline-whale {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.timeline-whale img {
    width: 560px;
    height: auto;
    opacity: 0.6;
}

/* Capodoglio: nuota da destra a sinistra tra step 03 e 04 */
.whale-1 {
    top: calc(59%);
    animation: swimLeft 140s linear infinite;
    animation-delay: -15s;
}

/* Relitto in basso a sinistra */
.timeline-wreck {
    position: absolute;
    bottom: -325px;
    left: -240px;
    z-index: -2;
    pointer-events: none;
}

.timeline-wreck img {
    width: 850px;
    height: auto;
    opacity: 0.5;
    transform: scaleX(-1) rotate(7.6deg);
}

@media (max-width: 767px) {
    .timeline-wreck {
        display: none;
    }
}

/* Bolle dal fondale vicino al relitto */
.wreck-bubbles {
    position: absolute;
    bottom: -220px;
    left: 210px;
    width: 200px;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.wreck-bubble {
    position: absolute;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(113,204,255,0.3));
    border-radius: 50%;
    opacity: 0;
    animation: wreckBubbleRise 8s ease-in infinite;
}

.wreck-bubble-1 { left: 20px; width: 12px; height: 12px; animation-delay: 0s; animation-duration: 7s; }
.wreck-bubble-2 { left: 60px; width: 8px; height: 8px; animation-delay: 1.5s; animation-duration: 9s; }
.wreck-bubble-3 { left: 100px; width: 15px; height: 15px; animation-delay: 3s; animation-duration: 8s; }
.wreck-bubble-4 { left: 40px; width: 6px; height: 6px; animation-delay: 2s; animation-duration: 6s; }
.wreck-bubble-5 { left: 140px; width: 10px; height: 10px; animation-delay: 4s; animation-duration: 10s; }
.wreck-bubble-6 { left: 80px; width: 14px; height: 14px; animation-delay: 5.5s; animation-duration: 7.5s; }
.wreck-bubble-7 { left: 120px; width: 7px; height: 7px; animation-delay: 1s; animation-duration: 8.5s; }
.wreck-bubble-8 { left: 30px; width: 9px; height: 9px; animation-delay: 6s; animation-duration: 9.5s; }

@keyframes wreckBubbleRise {
    0% {
        bottom: 0;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(20px) scale(1);
    }
}

@media (max-width: 767px) {
    .wreck-bubbles {
        display: none;
    }
}

/* Linea centrale verticale */
.vertical-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--ocean-blue), var(--sky-blue));
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 5rem;
    position: relative;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--ocean-blue), var(--sky-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(113, 204, 255, 0.4);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 1rem;
    width: calc(50% - 60px);
    max-width: 380px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(113, 204, 255, 0.3);
}

.timeline-icon {
    font-size: 4rem;
    color: var(--ocean-blue);
    display: block;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--black);
}

.timeline-content p {
    color: var(--text-opacity-70);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Desktop: alternating layout */
@media (min-width: 768px) {
    .timeline-left {
        justify-content: flex-start;
    }
    
    .timeline-left .timeline-content {
        text-align: right;
        margin-right: auto;
    }
    
    .timeline-right {
        justify-content: flex-end;
    }
    
    .timeline-right .timeline-content {
        text-align: left;
        margin-left: auto;
    }
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
    .vertical-timeline::before {
        left: 40px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 70px;
        gap: 1rem;
    }
    
    .timeline-number {
        position: absolute;
        left: 0;
        transform: none;
        width: 80px;
        height: 80px;
        font-size: 1.1rem;
    }
    
    .timeline-content {
        max-width: 100%;
        width: 100%;
        text-align: left !important;
    }
    
    .timeline-left,
    .timeline-right {
        flex-direction: column;
    }
}


/* === PORTFOLIO GALLERY === */
.portfolio-section {
    background: linear-gradient(180deg, #0f1c2e 0%, #0a1420 100%);
    position: relative;
    padding: 5rem 0;
    overflow: visible;
}

.portfolio-section .section-title h2,
.portfolio-section .section-title p {
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.portfolio-item.portfolio-large {
    grid-column: span 3;
}

.portfolio-item {
    transition: transform 0.5s ease;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0.75rem;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(113, 204, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-overlay span {
    font-size: 3rem;
    color: var(--white);
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-item.portfolio-large {
        grid-column: span 1;
    }
}


/* === 404 ERROR PAGE === */
.error-404-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, var(--sky-blue), var(--white));
    padding: 2rem 0;
}

.error-404-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.error-404-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--black);
    margin-top: 2rem;
}

.error-404-content p {
    font-size: 1.125rem;
    color: var(--text-opacity-80);
    max-width: 500px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .error-404-content dotlottie-wc {
        width: 300px !important;
        height: 300px !important;
    }
    
    .error-404-content h1 {
        font-size: 2rem;
    }
}

/* === WRECK SECTION (Before Footer) === */
.wreck-section {
    background: linear-gradient(180deg, #050a10 0%, #030508 50%, #000000 100%);
    position: relative;
    padding: 0;
    overflow: hidden;
    min-height: 350px;
    margin-top: -160px;
}

.wreck-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.wreck-image {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    transform: translateX(-50px) translateY(80px);
}

.wreck-image img {
    width: 100%;
    height: auto;
    opacity: 0.6;
    filter: brightness(0.9);
    transform: scaleX(-1) rotate(7.6deg) translateY(60px);
}

@media (max-width: 1024px) {
    .wreck-section {
        min-height: 280px;
        margin-top: -200px;
    }
    
    .wreck-image {
        max-width: 700px;
        transform: translateY(60px);
    }
}

@media (max-width: 768px) {
    .wreck-section {
        min-height: 200px;
        margin-top: -360px;
        padding-bottom: 40px;
    }
    
    .wreck-image {
        max-width: 500px;
        transform: translateX(-80px) translateY(40px);
    }
    
    .wreck-image img {
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .wreck-section {
        min-height: 150px;
        margin-top: -40px;
    }
    
    .wreck-image {
        max-width: 350px;
        transform: translateY(30px);
    }
}

/* Wreck Section Bubbles - Full Width */
.wreck-section-bubbles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.wsb {
    position: absolute;
    bottom: -20px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7), rgba(113,204,255,0.2));
    border-radius: 50%;
    opacity: 0;
    animation: wsbRise linear infinite;
}

.wsb-1 { left: 34%; width: 10px; height: 10px; animation-duration: 8s; animation-delay: 0s; }
.wsb-2 { left: 36%; width: 7px; height: 7px; animation-duration: 10s; animation-delay: -2s; }
.wsb-3 { left: 38%; width: 12px; height: 12px; animation-duration: 9s; animation-delay: -5s; }
.wsb-4 { left: 40%; width: 6px; height: 6px; animation-duration: 7s; animation-delay: -1s; }
.wsb-5 { left: 42%; width: 9px; height: 9px; animation-duration: 11s; animation-delay: -7s; }
.wsb-6 { left: 44%; width: 14px; height: 14px; animation-duration: 8.5s; animation-delay: -3s; }
.wsb-7 { left: 46%; width: 8px; height: 8px; animation-duration: 10s; animation-delay: -6s; }
.wsb-8 { left: 48%; width: 11px; height: 11px; animation-duration: 9.5s; animation-delay: -4s; }
.wsb-9 { left: 50%; width: 7px; height: 7px; animation-duration: 7.5s; animation-delay: -8s; }
.wsb-10 { left: 52%; width: 13px; height: 13px; animation-duration: 11s; animation-delay: -1.5s; }
.wsb-11 { left: 54%; width: 9px; height: 9px; animation-duration: 8s; animation-delay: -5.5s; }
.wsb-12 { left: 56%; width: 6px; height: 6px; animation-duration: 9s; animation-delay: -2.5s; }
.wsb-13 { left: 58%; width: 11px; height: 11px; animation-duration: 10.5s; animation-delay: -7.5s; }
.wsb-14 { left: 60%; width: 8px; height: 8px; animation-duration: 7s; animation-delay: -4.5s; }
.wsb-15 { left: 62%; width: 12px; height: 12px; animation-duration: 9s; animation-delay: -0.5s; }
.wsb-16 { left: 64%; width: 7px; height: 7px; animation-duration: 8.5s; animation-delay: -6.5s; }
.wsb-17 { left: 66%; width: 10px; height: 10px; animation-duration: 10s; animation-delay: -3.5s; }
.wsb-18 { left: 35%; width: 14px; height: 14px; animation-duration: 11s; animation-delay: -8.5s; }
.wsb-19 { left: 45%; width: 8px; height: 8px; animation-duration: 7.5s; animation-delay: -1s; }
.wsb-20 { left: 55%; width: 6px; height: 6px; animation-duration: 9.5s; animation-delay: -5s; }

@keyframes wsbRise {
    0% {
        bottom: -20px;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }
    10% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(15px) scale(1);
    }
}

@media (max-width: 768px) {
    .wsb-4, .wsb-7, .wsb-9, .wsb-12, .wsb-14, .wsb-17, .wsb-19 {
        display: none;
    }
}
