/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ocean-deep: #0a3d5c;
    --ocean: #1079a8;
    --ocean-light: #1ba3c9;
    --ocean-pale: #e8f4f8;
    --sand: #f5f0e6;
    --white: #ffffff;
    --dark: #1a3a4a;
    --gray: #6b7c85;
    --gray-light: #f0f4f6;
    --whatsapp: #25d366;
    --whatsapp-dark: #1da851;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
}

/* ===== Header / Nav ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
}

.logo-icon {
    font-size: 1.6rem;
}

.logo-img {
    height: 42px;
    width: auto;
    border-radius: 6px;
}

.hero-logo {
    width: 140px;
    max-width: 50%;
    height: auto;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.footer-logo {
    height: 36px;
    width: auto;
    border-radius: 6px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ocean-deep);
    letter-spacing: 0.5px;
}

#nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

#nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: 5px 0;
    transition: color 0.2s;
}

#nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ocean);
    transition: width 0.3s;
}

#nav-menu a:hover {
    color: var(--ocean);
}

#nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--ocean-deep);
    border-radius: 3px;
    transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url("negozio.jpg") center center / cover no-repeat;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 61, 92, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero h1 span {
    color: #ffd700;
    font-size: 1.1em;
    display: inline-block;
}

.tagline {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 36px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 22px;
    font-size: 0.9rem;
    margin-top: 12px;
}

/* ===== Sections ===== */
.section {
    padding: 90px 0;
}

.section-alt {
    background: var(--ocean-pale);
}

.section-title {
    font-size: 2.4rem;
    text-align: center;
    color: var(--ocean-deep);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* ===== Chi Siamo ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: var(--dark);
}

.about-text strong {
    color: var(--ocean-deep);
}

.about-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(16, 121, 168, 0.12);
    border-top: 4px solid var(--ocean);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.4rem;
    color: var(--ocean-deep);
    margin-bottom: 10px;
}

.about-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== Prodotti ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--white);
    padding: 0 0 36px 0;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(16, 121, 168, 0.18);
    border-bottom-color: var(--ocean);
}

.product-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 20px;
}

.product-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
    margin-top: 20px;
}

.product-card h3 {
    font-size: 1.35rem;
    color: var(--ocean-deep);
    margin-bottom: 12px;
    padding: 0 28px;
}

.product-card p {
    color: var(--gray);
    font-size: 0.95rem;
    padding: 0 28px;
}

.product-card strong {
    color: var(--ocean-deep);
}

.product-card-highlight {
    background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
    border-bottom-color: var(--whatsapp);
}

.product-card-highlight h3,
.product-card-highlight p {
    color: var(--white);
}

.product-card-highlight strong {
    color: #ffd700;
}

/* ===== Galleria ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: var(--white);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 121, 168, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 14px 18px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--ocean-deep);
    font-weight: 500;
}

/* ===== Orari ===== */
.hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    max-width: 800px;
    margin: 0 auto;
}

.hours-card {
    background: var(--white);
    padding: 36px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    border-top: 4px solid var(--ocean);
}

.hours-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.hours-card h3 {
    font-size: 1.5rem;
    color: var(--ocean-deep);
    margin-bottom: 6px;
}

.hours-period {
    color: var(--ocean);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table tr {
    border-bottom: 1px solid var(--gray-light);
}

.hours-table tr:last-child {
    border-bottom: none;
}

.hours-table td {
    padding: 14px 8px;
    text-align: left;
}

.hours-table .day {
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.hours-table .time {
    color: var(--ocean-deep);
    font-weight: 600;
    text-align: right;
    font-size: 0.95rem;
}

.hours-table .closed .day,
.hours-table .closed .time {
    color: #c44;
    opacity: 0.7;
}

/* ===== Dove Siamo ===== */
.location-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 400px;
}

.location-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.15rem;
    color: var(--ocean-deep);
    margin-bottom: 4px;
}

.info-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

.info-item a {
    color: var(--ocean);
    font-weight: 500;
}

/* ===== Contatti ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    padding: 40px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-top: 3px solid var(--ocean);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 121, 168, 0.15);
}

.contact-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 14px;
}

.contact-card h3 {
    font-size: 1.25rem;
    color: var(--ocean-deep);
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== Footer ===== */
footer {
    background: var(--ocean-deep);
    color: var(--white);
    padding: 50px 0 30px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-brand .logo-text {
    color: #ffffff;
}

.footer-info {
    opacity: 0.85;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-copy {
    opacity: 0.5;
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-grid {
        grid-template-columns: 1fr;
    }

    .map-wrapper {
        min-height: 300px;
    }
}

@media (max-width: 640px) {
    #nav-menu {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    #nav-menu.active {
        display: flex;
    }

    #nav-menu li {
        width: 100%;
        text-align: center;
    }

    #nav-menu a {
        display: block;
        padding: 14px;
        border-bottom: 1px solid var(--gray-light);
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hours-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section {
        padding: 60px 0;
    }
}
