/* ============================================
   VARIABILI & RESET
============================================= */
:root {
    /* Palette Premium */
    --primary-blue: #0f2c4a;
    --accent-gold: #d4af37;
    --accent-gold-hover: #b59020;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-gray: #6c757d;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 10px auto 0;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Bottoni */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #081b2e;
    transform: translateY(-3px);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* ============================================
   HEADER & NAVBAR
============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
    background: transparent;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.header.scrolled .logo {
    color: var(--primary-blue);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.header.scrolled .nav-link {
    color: var(--primary-blue);
}

.btn-nav {
    padding: 10px 24px;
    background-color: var(--accent-gold);
    color: var(--white) !important;
    border-radius: 30px;
}

.btn-nav:hover {
    background-color: var(--accent-gold-hover);
}

.btn-nav::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s;
    border-radius: 2px;
}

.header.scrolled .hamburger span {
    background-color: var(--primary-blue);
}

/* ============================================
   HERO SECTION
============================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 44, 74, 0.4), rgba(15, 44, 74, 0.7));
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ============================================
   RISTORANTE SECTION
============================================= */
.ristorante {
    background-color: var(--white);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-block p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-gray);
}

.feature-list {
    list-style: none;
    margin: 30px 0;
}

.feature-list li {
    margin-bottom: 12px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.img-real {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   SERVIZI & SPORT (CARDS)
============================================= */
.servizi {
    background-color: var(--bg-light);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-img-real {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 25px;
}

.card-body h3 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card-body p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* ============================================
   FOOTER
============================================= */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--accent-gold);
}

.footer-col p,
.footer-col li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.contact-info {
    list-style: none;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN
============================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
    }

    .nav-link {
        color: var(--primary-blue) !important;
        font-size: 1.2rem;
    }

    .btn-nav {
        background-color: var(--primary-blue);
        color: var(--white) !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 0;
    }
}

/* ============================================
   COOKIE BANNER MODALE PROFESSIONALE
============================================= */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-overlay.show .cookie-modal {
    transform: scale(1);
}

.cookie-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: color 0.3s;
}

.cookie-close:hover {
    color: var(--primary-blue);
}

.cookie-logo {
    text-align: center;
    margin-bottom: 25px;
}

.cookie-logo img {
    max-width: 180px;
    height: auto;
}

.cookie-content-modal h3 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.cookie-content-modal p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.cookie-buttons-modal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.btn-cookie-modal {
    padding: 14px 20px;
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: var(--font-primary);
}

.btn-cookie-modal.accept {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-cookie-modal.accept:hover {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
}

.btn-cookie-modal.reject,
.btn-cookie-modal.preferences {
    background-color: white;
    color: var(--primary-blue);
    border-color: #ddd;
}

.btn-cookie-modal.reject:hover,
.btn-cookie-modal.preferences:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.cookie-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.cookie-links a {
    color: var(--primary-blue);
    text-decoration: underline;
    margin: 0 10px;
    font-size: 0.9rem;
}

.cookie-links a:hover {
    color: var(--accent-gold);
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .cookie-overlay {
        padding: 15px;
        align-items: flex-end;
    }

    .cookie-modal {
        padding: 30px 20px;
        max-height: 85vh;
        border-radius: 15px 15px 0 0;
    }

    .cookie-content-modal h3 {
        font-size: 1.3rem;
    }

    .cookie-content-modal p {
        font-size: 0.9rem;
    }

    .btn-cookie-modal {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

/* ============================================
   RECENSIONI SECTION
============================================= */
#recensioni {
    background-color: var(--light-bg);
}

.reviews-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.fb-page {
    max-width: 100%;
    margin: 0 auto;
}

/* Responsive per recensioni */
@media (max-width: 768px) {
    .reviews-container {
        padding: 0 10px;
    }

    .fb-page {
        width: 100% !important;
    }
}

/* Fix immagini tagliate su mobile */
@media (max-width: 768px) {

    /* Selettore generico per le immagini dei servizi */
    .section img,
    .services img,
    .service-card img,
    [class*="service"] img,
    [class*="section"] img:not(.cookie-logo img):not(.footer img) {
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        width: 100% !important;
    }

    /* Se c'è un container con altezza fissa, rimuovila */
    .section .img-container,
    .services .img-container,
    .service-card .img-container,
    [class*="image-wrapper"],
    [class*="img-wrapper"] {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}