﻿/* ========== SHARED.CSS ========== */
/* Stili comuni a tutte le pagine della Pizzeria La Marinara */

/* --------------------------------
   VARIABILI GLOBALI
-------------------------------- */
:root {
    /* Colori base */
    --primary-color: #d62828;
    --primary-dark: #a01d1d;
    --primary-light: #e84545;
    --secondary-color: #f77f00;
    --secondary-dark: #c16600;
    --secondary-light: #ff9e36;
    --dark-color: #003049;
    --dark-medium: #1a4d6b;
    --dark-light: #2d5973;
    --light-color: #eae2b7;
    --light-dark: #d4cc9f;
    /* Nuovi colori moderni */
    --accent-color: #fcbf49;
    --accent-dark: #e0a825;
    --accent-light: #ffd166;
    --success-color: #2ec4b6;
    --success-dark: #1b9b8f;
    --danger-color: #e71d36;
    --danger-light: #ff3366;
    --warning-color: #ff9f1c;
    /* Scale di grigi */
    --white-color: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --black-color: #121212;
    /* Gradienti */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-color) 0%, var(--dark-medium) 100%);
    --gradient-accent: linear-gradient(to right, var(--accent-color), var(--warning-color));
    /* Ombre */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 14px rgba(214, 40, 40, 0.3);
    --shadow-accent: 0 4px 14px rgba(252, 191, 73, 0.3);
    /* Bordi */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 9999px;
    /* Transizioni */
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;


    --marinaracolor: #366A99;
    --marinaracolor-light: #4d8ab9; /* Più chiaro */
    --marinaracolor-dark: #1f4a6b; /* Più scuro */
    --marinaracolor-transparent: rgba(54, 106, 153, 0.1); /* Trasparente */
}

/* --------------------------------
   STILI BASE GLOBALI
-------------------------------- */
html {
    font-size: 16px;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

main {
    flex: 1 0 auto;
}

/* --------------------------------
   FULL-WIDTH UTILITIES
-------------------------------- */
.full-width-header,
.full-width-section,
.full-width-navbar {
    position: relative;
    margin: 5px;
}

.full-width-header .container,
.full-width-section .container,
.full-width-navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Per schermi ultra-wide (>1920px) */
@media (min-width: 1921px) {
    .full-width-header .container,
    .full-width-section .container,
    .full-width-navbar .container {
        max-width: 1400px;
    }
}

/* --------------------------------
   NAVBAR
-------------------------------- */
.full-width-navbar {
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--marinaracolor-dark);
    transition: var(--transition-fast);
}



.nav-link {
    padding: 20px 25px;
    font-size: 1.3rem;
    transition: var(--transition-normal);
    font-weight: 500;
    color: var(--dark-color);
    position: relative;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 15px; /* Regola in base al tuo padding */
        left: 50%;
        width: 0;
        height: 3px;
        background: var(--marinaracolor);
        transition: all 0.3s ease;
        transform: translateX(-50%);
        border-radius: 10px;
    }

    .nav-link:hover {
        color: var(--primary-color);
    }

        .nav-link:hover::after {
            width: calc(100% - 50px); /* Larghezza meno il padding laterale */
        }

.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* --------------------------------
   HEADER GLOBALE
-------------------------------- */
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);
}

/* --------------------------------
   TITOLI DI SEZIONE
-------------------------------- */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--dark-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
}

/* --------------------------------
   DELIVERY SECTION
-------------------------------- */
.delivery-full {
    position: relative;
    z-index: 2;
    padding: 30px 0 50px 0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.03);
}

.delivery-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    pointer-events: none;
}

.delivery-wrapper {
    position: relative;
    z-index: 3;
}

.delivery-section {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.delivery-content {
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(247, 127, 0, 0.1);
    transition: var(--transition-normal);
}

.delivery-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(214, 40, 40, 0.12), 0 8px 20px rgba(0,0,0,0.08);
}

.delivery-content h4 {
    color: var(--dark-medium);
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.delivery-vehicles .badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.2);
}

.delivery-features {
    background: rgba(247, 127, 0, 0.03);
    padding: 1.2rem;
    border-radius: 15px;
    border-left: 4px solid var(--secondary-color);
}

.delivery-features .d-flex {
    font-size: 1.1rem;
}

.delivery-features i {
    font-size: 1.3rem !important;
}

.delivery-features span {
    color: var(--dark-color);
    font-weight: 500;
}

.delivery-cost.alert-warning {
    background: rgba(252, 191, 73, 0.1);
    border: none;
    border-left: 4px solid var(--accent-color);
    color: var(--dark-color);
    border-radius: 12px;
}

.alert-danger {
    background: rgba(214, 40, 40, 0.05);
    border: none;
    border-left: 4px solid var(--primary-color);
    color: var(--dark-color);
    border-radius: 12px;
}

.alert a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition-fast);
}

.alert a:hover {
    color: var(--primary-dark);
}

.order-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2rem !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(214, 40, 40, 0.25);
    transition: var(--transition-normal);
}

.order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(214, 40, 40, 0.35);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.call-btn {
    border-radius: 50px;
    padding: 0.8rem 2rem !important;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.call-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(214, 40, 40, 0.2);
}

/* --------------------------------
   FOOTER
-------------------------------- */
.footer {
    color: black;
    margin-top: auto;
    padding: 0;
}

.footer a {
    color: white;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.footer .social-icons {
    font-size: 1.5rem;
}

.footer .social-icons a {
    margin: 0 10px;
}

/* --------------------------------
   SOCIAL ICONS
-------------------------------- */
.social-icons a {
    color: var(--dark-color);
    font-size: 24px;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.social-icons i {
    margin-right: 15px;
}

/* --------------------------------
   UTILITY CLASSES
-------------------------------- */
.hidden {
    display: none;
}

.header-buttons {
    gap: 1px;
}

/* --------------------------------
   GRADIENTI COMUNI
-------------------------------- */
.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%);
}

/* --------------------------------
   BOTTONI GLOBALI
-------------------------------- */
.btn-primary {
    background-color: var(--dark-color);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    background-color: var(--dark-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-success:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --------------------------------
   MEDIA QUERIES GLOBALI
-------------------------------- */
@media (max-width: 991px) {
    .delivery-full {
        padding: 20px 0 40px 0;
    }
    
    .delivery-content {
        padding: 2rem;
    }
    
    .nav-link {
        padding: 15px 20px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .full-width-header .content {
        padding: 150px 0;
    }
    
    .full-width-section {
        padding: 40px 0;
    }
    
    .delivery-full {
        margin-top: -20px;
        padding: 15px 0 30px 0;
    }
    
    .delivery-content {
        padding: 1.5rem;
    }
    
    .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;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .full-width-header .content {
        padding: 100px 0;
    }
    
    header h1 {
        font-size: 3rem !important;
    }
    
    header h3 {
        font-size: 1.5rem !important;
    }
    
    .delivery-full {
        margin-top: -15px;
    }
    
    .delivery-content {
        padding: 1.2rem;
    }
    
    .delivery-vehicles .d-flex {
        justify-content: center;
    }
    
    .delivery-features .d-flex {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .delivery-features i {
        margin-right: 0 !important;
        margin-bottom: 0.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* --------------------------------
   ACCESSIBILITÀ
-------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
