﻿:root {
    --primary-color: #d62828;
    --secondary-color: #f77f00;
    --dark-color: #003049;
    --light-color: #eae2b7;
    --white-color: #ffffff;
    --black-color: #333333;
}

/* 🌟 Stile Generale */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f5f5;
}

h1, h2, h3 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

header h1 {
    font-size: 4rem;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

header p {
    font-size: 1.5rem;
    margin-bottom: 50px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}



.hidden {
    display: none;
}

.navbar {
    background-color: #ffefef;
}

/* Stile per i link con la classe nav-link */
.nav-link {
    padding: 20px 25px; /* Maggiore spaziatura per i link */
    font-size: 1.3rem; /* Aumenta leggermente la dimensione del testo */
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

    /* Effetto hover per i link: ingrandimento */
    .nav-link:hover {
        color: #ff4d4d;
        transform: scale(1.1);
    }

/* Allineamento logo e titolo */
.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.25rem; /* Aumenta leggermente la dimensione del testo del titolo */
}
/* 🚀 Sezione Header */
.content {
    position: relative;
    background-image: url('/images/background1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    padding: 250px 0;
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
}

    .content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
    }

    .content::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient( 180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 20%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.6) 100% );
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(8px);
        -webkit-mask: linear-gradient( 90deg, transparent 0%, black 20%, black 80%, transparent 100% );
    }


.load-more-btn {
    background: var(--dark-color);
    color: white;
    padding: 0.8rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

    .load-more-btn:hover {
        background: #00253a;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.gluten-free-section {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.accordion-toggle {
    transition: all 0.3s ease;
    padding: 15px;
    margin: 0;
}

    .accordion-toggle:hover {
        color: #d62828;
    }

    .accordion-toggle i {
        transition: transform 0.3s ease;
    }

    .accordion-toggle.active i {
        transform: rotate(180deg);
    }

.accordion-content {
    padding: 0 15px 15px;
    animation: fadeIn 0.5s ease;
}

.gluten-free-section:before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(214, 40, 40, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.gluten-free-section:after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(247, 127, 0, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.gluten-free-card {
    transition: transform 0.3s ease;
}

    .gluten-free-card:hover {
        transform: translateY(-5px);
    }

.gluten-free-price-tag {
    transform: translate(15px, -15px);
}

.gluten-free-badge .badge {
    font-size: 1rem;
    animation: pulse 2s infinite;
}



.pizza-of-month {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 4rem;
}

.pizza-month-img {
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.pizza-month-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.pizza-month-title {
    color: var(--dark-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.ingredient-list {
    list-style: none;
    padding: 0;
}

    .ingredient-list li {
        margin-bottom: 0.8rem;
        font-size: 1.1rem;
    }

    .ingredient-list i {
        color: var(--secondary-color);
        margin-right: 0.8rem;
    }

.price-tag {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}



.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--dark-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

    /*Sezione specialità*/

    .section-title:after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 60px;
        height: 4px;
        background: var(--secondary-color);
    }

.specialty-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

    .specialty-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

.specialty-img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.specialty-card:hover .specialty-img {
    transform: scale(1.05);
}

.specialty-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.8rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.specialty-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
    z-index: 1;
}


.delivery-section {
    background-color: #fff9f9;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: -50px; /* Sovrappone leggermente la sezione hero */
    position: relative;
    z-index: 2;
}

.order-btn {
    transition: all 0.3s;
    font-weight: 600;
}

    .order-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    }

.call-btn {
    transition: all 0.3s;
    font-weight: 600;
}

.delivery-vehicles img {
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 200px 0; /* Altezza leggermente ridotta su mobile */
        min-height: 80vh;
    }

    .delivery-section {
        margin-top: -30px;
    }

    .delivery-content h4 {
        font-size: 1.1rem;
    }

    .d-flex.flex-wrap {
        flex-direction: column;
        align-items: center;
    }

        .d-flex.flex-wrap .btn {
            width: 100%;
            max-width: 300px;
            margin-bottom: 1rem;
        }
}

@media (max-width: 576px) {
    .content {
        padding: 150px 0;
    }

        .content h1 {
            font-size: 3rem !important;
        }

        .content h3 {
            font-size: 1.5rem !important;
        }

    .delivery-vehicles .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    .delivery-features .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Accessibilità - Riduzione movimento */
@media (prefers-reduced-motion: reduce) {
    .content {
        background-attachment: scroll;
    }

    .order-btn:hover,
    .call-btn:hover {
        transform: none;
    }
}

/* 🍕 Sezione Pizza Container (MODIFICATO) */
.pizza-container {
    display: flex;
    background: linear-gradient(135deg, #ffecd2, #ffecd2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin: 30px auto;
    width: 100%;
    transition: transform 0.3s ease;
}

    .pizza-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    }

.pizza-image {
    flex: 1; /* Occupa metà spazio */
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

    .pizza-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.3s ease-in-out;
        mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0));
        -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0));
    }

        .pizza-image img:hover {
            transform: scale(1.05);
        }

.pizza-details {
    flex: 1; /* Occupa l'altra metà */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .pizza-details h3 {
        font-size: 2rem;
        font-weight: bold;
        color: #8b0000;
        margin-bottom: 20px;
    }

    .pizza-details p, .pizza-details ul {
        font-size: 1.1rem;
        color: #444;
    }

    .pizza-details ul {
        list-style-type: none;
        padding: 0;
        margin: 15px 0;
    }

    .pizza-details li {
        margin-bottom: 8px;
        display: flex;
        align-items: center;
    }

        .pizza-details li::before {
            content: "•";
            color: #8b0000;
            font-weight: bold;
            margin-right: 10px;
        }

.price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #d35400;
    margin-top: 20px;
}

/* 🎨 Bottoni */
.btn-primary {
    background-color: #366A99;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background-color: #FF8000;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success {
    background-color: #8b0000;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2f5a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background-color: #cc6600;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-success:hover {
    background-color: #6d0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bg-custom-gradient {
    background: radial-gradient(circle, rgba(54, 106, 153, 0.8) 10%, rgba(135, 206, 250, 0.8) 80%), linear-gradient(90deg, rgba(54, 106, 153, 1) 0%, rgba(135, 206, 250, 1) 100%);
}

/* 🃏 Card Specialità */
.card {
    background-color: #fff;
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 180px;
    width: 120%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    }

.card-image {
    position: relative;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.card:hover img {
    transform: scale(1.05);
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #7f7f7f;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    transition: all 0.3s ease;
}

.card:hover .card-title {
    color: #000;
    background-color: rgba(255, 255, 255, 0.9);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* 🖼️ Galleria Immagini */
.team-member {
    margin-bottom: 1.5rem;
}

    .team-member img {
        border-radius: 10%;
        object-fit: cover;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        aspect-ratio: 1/1;
        width: 100%;
        height: 100%;
    }

        .team-member img:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 16px rgba(0,0,0,0.2);
            filter: brightness(1.05);
        }

    .team-member h4 {
        margin-top: 1rem;
        font-size: 1.25rem;
    }

/* 🏗️ Layout */
.header-buttons {
    gap: 1px;
}

.square-card {
    width: 100%;
    position: relative;
    padding-top: 100%;
}

    .square-card img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 15px 15px 0 0;
    }

.custom-row {
    max-width: 900px;
    max-height: 200px;
    margin: 0 auto;
}

/* 🖥️ Modali */
/* Stili moderni per i modali */
.modal-dialog {
    width: auto;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 2rem);
}

.modal-content {
    background: transparent;
    border: none;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
}

    .modal-body img {
        max-height: 100%;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
    }

/* Animazione di apertura */
.modal.fade .modal-dialog {
    transform: scale(0.9);
    transition: transform 0.3s ease-out, opacity 0.3s ease;
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Pulsante di chiusura personalizzato */
.modal-header {
    border: none;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    padding: 0;
}

.btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.8;
    width: 2rem;
    height: 2rem;
    padding: 0;
    margin: 0;
    transition: opacity 0.2s ease;
}

    .btn-close:hover {
        opacity: 1;
    }


