@charset "UTF-8";

/* ==========================================================================
   INDIGO BOAT - Main Stylesheet (stile.css)
   Target: Lead Generation, Nautica & Attrezzature Balneari
   Author: Piemme S.r.l.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & RESET
   -------------------------------------------------------------------------- */
:root {
    --primary-color: #0b3c5d;        /* Blu Nautico Profondo */
    --primary-hover: #07273d;
    --secondary-color: #328cc1;      /* Azzurro Mare */
    --secondary-hover: #26709c;
    --accent-color: #d9b310;         /* Oro/Sabbia per Dettagli */
    --cta-color: #e65c00;            /* Arancio Lead Generation High-Contrast */
    --cta-hover: #c44e00;
    --dark-text: #1d2731;
    --light-text: #666666;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   2. TOP BAR (Contatti Rapidi)
   -------------------------------------------------------------------------- */
.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 5%;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-info span {
    margin-right: 15px;
}

.top-bar a {
    color: var(--white);
}

.top-bar a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   3. HEADER & MENU ORIZZONTALE A TENDINA
   -------------------------------------------------------------------------- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    max-height: 55px;
    width: auto;
}

/* Navigazione */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav li {
    position: relative;
}

nav a {
    display: block;
    padding: 12px 16px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
}

nav a:hover, 
nav li:hover > a {
    color: var(--secondary-color);
    background-color: rgba(50, 140, 193, 0.05);
}

/* Submenu a Tendina */
nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-medium);
    border-radius: 6px;
    border-top: 3px solid var(--secondary-color);
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-fast);
    padding: 8px 0;
    display: flex;
    flex-direction: column;
}

nav li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav ul ul li {
    width: 100%;
}

nav ul ul a {
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark-text);
    border-bottom: 1px solid var(--light-bg);
    border-radius: 0;
}

nav ul ul a:hover {
    background: var(--light-bg);
    color: var(--secondary-color);
    padding-left: 25px;
}

nav ul ul li:last-child a {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   4. BUTTONS & CALL TO ACTION (CTA)
   -------------------------------------------------------------------------- */
.btn-cta {
    background: var(--cta-color) !important;
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 10px rgba(230, 92, 0, 0.25);
    transition: var(--transition-fast);
}

.btn-cta:hover {
    background: var(--cta-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(230, 92, 0, 0.35);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--primary-hover);
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   5. LAYOUT & HERO SECTION
   -------------------------------------------------------------------------- */
main {
    min-height: 60vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.hero-banner {
    background: linear-gradient(rgba(11, 60, 93, 0.82), rgba(11, 60, 93, 0.82)), 
                url('../images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 90px 20px;
    text-align: center;
}

.badge {
    display: inline-block;
    background: rgba(50, 140, 193, 0.3);
    border: 1px solid var(--secondary-color);
    color: #e0f2fe;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-banner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-banner p {
    font-size: 1.15rem;
    max-width: 850px;
    margin: 0 auto 30px;
    color: #e0e6ed;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   6. CONTENUTO SPECIFICO: INTRO GRID & SPECIFICHE
   -------------------------------------------------------------------------- */
.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.intro-text h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.intro-text p {
    margin-bottom: 15px;
    color: var(--dark-text);
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.image-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.image-caption {
    padding: 12px 15px;
    font-size: 0.85rem;
    color: var(--light-text);
    background: var(--light-bg);
    text-align: center;
}

/* Schede Specifiche Tecniche */
.specs-section {
    background: var(--light-bg);
    padding: 50px 30px;
    border-radius: 8px;
    margin: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.section-title p {
    color: var(--light-text);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.spec-card {
    background: var(--white);
    padding: 25px 20px;
    border-radius: 6px;
    border-top: 3px solid var(--secondary-color);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.spec-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.spec-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.spec-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cta-color);
    margin-bottom: 10px;
}

.spec-card p {
    font-size: 0.85rem;
    color: var(--light-text);
}

/* Schede Campi d'Applicazione */
.applications-section {
    margin: 50px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.app-card {
    background: var(--white);
    padding: 25px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.app-card h4 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.app-card p {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* --------------------------------------------------------------------------
   7. LEAD GENERATION FORM (Focus Conversioni)
   -------------------------------------------------------------------------- */
.lead-box {
    background: var(--light-bg);
    border-top: 4px solid var(--secondary-color);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.lead-box h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.lead-box p {
    color: var(--light-text);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.lead-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.lead-form .full-width {
    grid-column: span 2;
}

.lead-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--dark-text);
}

.lead-form input, 
.lead-form textarea, 
.lead-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    background-color: var(--white);
    transition: var(--transition-fast);
}

.lead-form input:focus, 
.lead-form textarea:focus, 
.lead-form select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(50, 140, 193, 0.15);
}

/* --------------------------------------------------------------------------
   8. FOOTER
   -------------------------------------------------------------------------- */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #d0e1f9;
}

.footer-col a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    color: #a0b2c6;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   -------------------------------------------------------------------------- */
.menu-toggle, #menu-checkbox {
    display: none;
}

@media (max-width: 992px) {
    .top-bar {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--primary-color);
        padding: 5px;
        user-select: none;
    }

    nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        box-shadow: var(--shadow-medium);
        /* Permette lo scroll del menu se supera lo schermo del telefono */
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid var(--border-color);
    }

    #menu-checkbox:checked ~ nav {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-bottom: 15px;
    }

    nav li {
        width: 100%;
    }

    nav a {
        border-bottom: 1px solid var(--light-bg);
        border-radius: 0;
        padding: 14px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Disattiva l'apertura al passaggio/tocco fantasma su mobile */
    nav li:hover > ul {
        opacity: 0;
        visibility: hidden;
    }

    /* Submenu chiuso di default su Mobile */
    nav ul ul {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light-bg);
        width: 100%;
        padding: 0;
        border-top: none;
        border-radius: 0;
    }

    /* Submenu aperto solo quando la voce ha classe .open */
    nav li.open > ul,
    nav li.open:hover > ul {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    nav ul ul a {
        padding: 12px 20px 12px 35px;
        font-size: 0.92rem;
    }

    nav li:last-child {
        padding: 15px 20px 5px;
    }

    nav li:last-child a.btn-cta {
        justify-content: center;
        border-radius: 4px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .lead-form {
        grid-template-columns: 1fr;
    }

    .lead-form .full-width {
        grid-column: span 1;
    }

    .hero-banner h1 {
        font-size: 1.8rem;
    }
}

/* --------------------------------------------------------------------------
   GALLERIA FOTOGRAFICA PRODOTTI
   -------------------------------------------------------------------------- */
.product-gallery-section {
    margin: 50px 0;
    padding: 20px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--secondary-color);
}

.gallery-caption {
    padding: 18px;
}

.gallery-caption h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.gallery-caption p {
    font-size: 0.88rem;
    color: var(--light-text);
}

/* Styling Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 15px;
    color: #a0b2c6;
}

.breadcrumb a {
    color: #e0f2fe;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--white);
    font-weight: 600;
}
/* --------------------------------------------------------------------------
   10. LIGHTBOX OVERLAY IMMAGINI (CSS PURE)
   -------------------------------------------------------------------------- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay:target {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--white);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--cta-color);
}

/* --------------------------------------------------------------------------
   11. PULSANTE TORNA SU (BACK TO TOP)
   -------------------------------------------------------------------------- */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 46px;
    height: 46px;
    background: var(--primary-color);
    color: var(--white) !important;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: var(--shadow-medium);
    z-index: 900;
    transition: var(--transition-fast);
    text-decoration: none;
}

.back-to-top:hover {
    background: var(--cta-color);
    border-color: var(--cta-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(230, 92, 0, 0.4);
}