/* 1. VARIABILI E RESET */
:root {
    --brand-blue: #0a3055;
    --accent-blue: #47c5fb;
    --text-main: #2c3e50;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-soft: #fcfcfc;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --container-width: 1100px;
    --shadow-standard: 0 10px 30px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
}

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

/* 2. HEADER E NAVIGAZIONE */
header {
    background: var(--bg-white);
    padding: 30px 20px 10px 20px;
    text-align: center;
}

.main-logo {
    width: 100%;
    max-width: 400px; /* Limite massimo */
    margin: 0 auto 25px auto;
}

nav {
    border-top: 1px solid #f0f0f0;
    padding: 20px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Fondamentale per il mobile */
    gap: 20px 50px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
}

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

/* 3. HERO SECTION */
.hero {
    height: 60vh;
    min-height: 400px;
    background: url('strumenti.png') center/cover no-repeat var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10, 48, 85, 0.7), rgba(10, 48, 85, 0.4));
}

.hero-box {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: clamp(20px, 5vw, 40px) clamp(20px, 8vw, 80px);
    border-radius: 10px;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    font-weight: 300;
    margin: 0;
}

.hero h1 span {
    font-weight: 700;
    color: var(--accent-blue);
}

/* 4. SEZIONE CHI SIAMO */
.about-page {
    padding: 60px 0;
    background-color: var(--bg-soft);
}

.about-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.about-flex-wrapper {
    display: flex;
    align-items: center;
    gap: clamp(30px, 5vw, 60px);
}

.about-column-image {
    flex: 1;
}

.profile-pic {
    width: 100%;
    border-radius: 8px;
    box-shadow: 15px 15px 0px var(--accent-blue);
    border: 1px solid #ddd;
}

.about-column-text {
    flex: 1.5;
}

.about-column-text h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--brand-blue);
    margin-bottom: 20px;
}
.image-caption {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 600;
    text-transform: uppercase;
}

/* 5. SEZIONE CONTATTI */
.contact-page {
    padding: 60px 0;
    background-color: #fff;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.contact-item:hover {
    background: #f8f9fa;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--accent-blue);
    width: 30px;
}

.contact-item span {
    display: block;
    font-weight: 700;
    color: var(--brand-blue);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.contact-item p { margin: 0; }

.contact-item p a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.1rem;
    word-break: break-all; /* Evita che email lunghe rompano il layout */
}

.hours-card {
    background: var(--brand-blue);
    color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 15px 15px 0px var(--accent-blue);
}

/* 6. SOCIAL BOX (Centrato) */
.social-box {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--brand-blue);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-blue);
    transform: translateY(-5px);
}

/* 7. SHOP BRIDGE */
.shop-bridge {
    background: linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.92)), 
                url('strumenti.png') center/cover no-repeat;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.bridge-card {
    background: white;
    padding: clamp(30px, 8vw, 60px);
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(10, 48, 85, 0.08);
    max-width: 600px;
    text-align: center;
}

.btn-shop {
    display: inline-block;
    background: var(--brand-blue);
    color: white;
    padding: 16px 35px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-shop:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

/* 8. CATALOGHI GRID */
.catalog-page {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.subtitle {
    color: #888;
    margin-bottom: 50px;
    font-weight: 300;

}

.catalog-grid {
    display: grid;
    /* Modifica questa riga da auto-fill a repeat(3, 1fr) */
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.catalog-item {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.catalog-image {
    position: relative;
    aspect-ratio: 1 / 1.4; /* Formato tipico dei cataloghi A4 */
    background-color: #f4f4f4;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

/* Effetto al passaggio del mouse */
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10,46,84); /* Blu del logo con trasparenza */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay span {
    color: white;
    font-weight: 600;
    border: 1px solid white;
    padding: 10px 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

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

.catalog-item:hover img {
    transform: scale(1.1);
}

.catalog-item h3 {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--brand-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- STATO ATTIVO NAVBAR --- */

/* Colore azzurro per la pagina corrente */
nav a.active {
    color: var(--accent-blue) !important;
    position: relative;
}

/* Opzionale: una piccola linea azzurra sotto il link attivo */
nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-blue);
}
/*Aggiunta home*/
/* Sezione Intro Home */
.home-intro {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}

.container-small {
    max-width: 800px;
    margin: 0 auto;
}

.home-intro .label {
    display: block;
    color: var(--accent-blue);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.home-intro h2 {
    color: var(--brand-blue);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

.home-intro p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Pulsanti della sezione */
.cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.btn-text {
    text-decoration: none;
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.btn-text:hover {
    opacity: 0.7;
}

/* Bottone WhatsApp Professionale */
.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--brand-blue); 
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow:var(--accent-blue);
}

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

.wa-icon {
    width: 22px;
    height: 22px;
}

/*categorie cataloghi*/
/* Stile per le sezioni dei cataloghi */
.catalog-category {
    margin-bottom: 60px;
    
}

.section-title {
    text-align: center;
    color: var(--brand-blue);
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 60px;
    font-weight: 300;
}
.catalog-category {
    margin-bottom: 80px;
}

.category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.2rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 40px;
    white-space: nowrap; 
}

/* Le linee decorative */
.category-title::before,
.category-title::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: #e0e0e0; 
    margin: 0 30px;
    max-width: 150px;
}
.catalog-category {
    margin-bottom: 80px;
}

/* Assicurati che la griglia mantenga 3 colonne dove possibile */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
/* Titolo Categoria con Linee ai lati */
.category-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
} 
/* Correzione per schermi medi e piccoli */
@media (max-width: 992px) {
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .catalog-grid { grid-template-columns: 1fr; }
    .category-title { font-size: 1.2rem; }
}

/* Ottimizzazione Mobile */
@media (max-width: 768px) {
    .home-intro h2 { font-size: 1.8rem; }
    .home-intro { padding: 50px 20px; }
}
/* 9. MEDIA QUERIES (RESPONSIVE) */

/* Tablet (sotto i 992px) */
@media (max-width: 992px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        gap: 30px;
    }
}

/* Mobile Large (sotto i 768px) */
@media (max-width: 768px) {
    nav ul {
        gap: 20px;
    }

    .about-flex-wrapper {
        flex-direction: column;
    }

    .about-column-text {
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .profile-pic, .hours-card {
        box-shadow: 10px 10px 0px var(--accent-blue); /* Ombra ridotta su mobile */
    }
}

/* Smartphone Small (sotto i 480px) */
@media (max-width: 480px) {
    header { padding: 20px 10px; }
    
    nav a { font-size: 0.75rem; letter-spacing: 1px; }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .hero-box {
        padding: 20px;
    }
    
    .bridge-card {
        padding: 30px 15px;
    }
}