/* 
  Studio Odontoiatrico San Zeno
  Stile principale
*/

/* Base e reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a91cf;
    --primary-dark: #0c73b0;
    --primary-light: #75bce9;
    --secondary-color: #1ed6eb;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #aaaaaa;
    --black: #222222;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-service {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.btn-service:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links ul {
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover:after {
    width: 100%;
}

.login-btn {
    
}

.login-btn:hover {
    background-color: var(--primary-dark);
}

#close-menu, #menu-icon {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Contact Float Button */
.contact-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.contact-float a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.5rem;
    transition: var(--transition);
}

.contact-float a:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

#whatsapp-icon, #email-icon {
    font-size: 1.8rem;
}

/* Hero Section */
.hero, .page-hero {
    height: 100vh;
    background-image: url('../assets/img/3_res.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding-top: 80px;
}

.page-hero {
    height: 50vh;
}

.team-hero {
    background-image: url('../assets/img/team-hero-bg.jpeg');
}

.services-hero {
    background-image: url('../assets/img/services-hero-bg.webp');
}

.studio-hero {
    background-image: url('../assets/img/studio-hero-bg.jpg');
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero h1, .page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2, .page-hero h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* News Section */
.news {
    background-image: url('../assets/img/news-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    display: none; /* Hidden by default, will be shown via JS when showNews is true */
}

.news-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(26, 145, 207, 0.8);
    border-radius: 8px;
}

.news h2 {
    margin-bottom: 1rem;
}

.news p {
    margin-bottom: 1.5rem;
}

/* Cards Section */
.cards-section {
    background-color: var(--light-gray);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--text-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    text-align: center; /* Centra il testo */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra gli elementi all'interno del flex container */
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    /* Se c'è bisogno di regolare la dimensione del titolo */
    width: 100%; /* Assicura che l'h3 occupi tutta la larghezza disponibile */
}

.card-content p {
    /* Se c'è bisogno di limitare la larghezza del paragrafo per migliore leggibilità */
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Services Tabs */
.services {
    background-color: var(--white);
}

.services-tabs {
    margin-top: 2rem;
}

.tabs-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2.5rem;
}

.tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-btn span {
    font-size: 0.9rem;
    text-align: center;
}

.tab-btn:hover {
    background-color: var(--light-gray);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(26, 145, 207, 0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1020px; /* Più ampio per ospitare due immagini */
    margin-bottom: 2rem;
}

.tab-image {
    width: 100%;
    max-width: 500px;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tab-description {
    text-align: center;
    max-width: 700px;
}

.tab-description h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

@media screen and (max-width: 992px) {
    .tab-images {
        flex-direction: column; /* Immagini in colonna */
        align-items: center;
        gap: 15px;
    }
    
    .tab-image {
        max-width: 100%; /* Usa tutta la larghezza disponibile */
        height: 250px; /* Leggermente più basso su tablet */
    }
}

/* Responsive per dispositivi mobili più piccoli */
@media screen and (max-width: 576px) {
    .tab-image {
        height: 200px; /* Ancora più basso su smartphone */
    }
    
    .tab-images {
        gap: 10px; /* Spazio ridotto tra le immagini */
    }
}

/* Reviews Section */
.reviews {
    background-color: var(--light-gray);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.review-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.google-icon {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
}

.review-stars {
    color: #FFC107;
}

.review-text {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.reviewer {
    text-align: right;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info h3, .footer-form h3, .footer-social h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-info h3:after, .footer-form h3:after, .footer-social h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-info p {
    margin-bottom: 0.8rem;
}

.footer-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-info a, .footer-social a {
    color: var(--white);
}

.footer-info a:hover, .footer-social a:hover {
    color: var(--primary-light);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group textarea {
    height: 100px;
    resize: none;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Team Page Specific Styles */
.team-intro, .studio-intro, .services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.member-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.member-image {
    height: 250px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.member-card:hover .member-image img {
    transform: scale(1.1);
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.team-cta {
    background-color: var(--primary-light);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
}

.team-cta h2 {
    margin-bottom: 1rem;
}

.team-cta p {
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Page Specific Styles */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: var(--transition);
    text-align: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-content ul {
    text-align: left;
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.service-content ul li {
    margin-bottom: 0.5rem;
}

.technology {
    background-color: var(--light-gray);
}

.technology-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-feature {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tech-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta-section .btn:hover {
    background-color: var(--light-gray);
}

/* Studio Page Specific Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 145, 207, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
}

#modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--white);
    padding: 10px 0;
    height: 150px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.location-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.map-placeholder {
    height: 100%;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-info {
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.location-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.location-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.opening-hours {
    margin: 1rem 0 1.5rem;
    padding-left: 1.5rem;
}

.opening-hours li {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.opening-hours span {
    font-weight: 500;
}

.faq-container {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.faq-answer {
    padding: 0 1.5rem;
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 300px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1, .page-hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2, .page-hero h2 {
        font-size: 1.5rem;
    }
    
    .tabs-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .tab-btn {
        width: 100%;
        padding: 12px 5px;
    }
}

@media screen and (max-width: 576px) {
    .tabs-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .tab-btn {
        padding: 10px 5px;
        height: 50px;
    }
    
    .tab-btn i {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .tab-btn span {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        padding-top: 50px;
        transition: var(--transition);
        z-index: 1001;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
    }
    
    .nav-links li {
        margin: 1rem 0;
        text-align: center;
    }
    
    #close-menu, #menu-icon {
        display: block;
    }
    
    #close-menu {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .hero h1, .page-hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2, .page-hero h2 {
        font-size: 1.3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .hero h1, .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2, .page-hero h2 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .review-card, .member-card, .service-item {
        margin-bottom: 1.5rem;
    }

    
}

/* Stili per il modal della promozione - aggiungi questa sezione prima dei media query */
.promotion-modal {
    display: none;
    position: fixed;
    z-index: 1200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.4s;
}

.promotion-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto;
    max-width: 50%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s;
    overflow: hidden;
}

.promotion-image-container {
    text-align: center;
    overflow: auto;
    max-height: 80vh;
}

.promotion-image-container img {
    width: auto;
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    display: block;
}

.close-promotion {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #777;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-promotion:hover {
    color: var(--primary-color);
}

.promotion-actions {
    text-align: center;
    padding: 15px;
    background-color: #f9f9f9;
}

.promotion-btn {
    margin: 0 10px;
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0}
    to {transform: translateY(0); opacity: 1}
}

@media screen and (max-width: 768px) {
    .promotion-modal {
        /* display: flex; */
        align-items: center;
        justify-content: center;
    }
    
    .promotion-content {
        margin: 0;
        max-width: 100%;
        max-height: 95vh; 
        border-radius: 0;
    }
    
    .promotion-image-container {
        max-height: 75vh;
    }
    
    .close-promotion {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 32px;
    }
}

/* ========================================
   ADMIN & LOGIN STYLES
======================================== */

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2rem;
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    margin-bottom: 2rem;
}

.login-logo img {
    max-height: 80px;
    width: auto;
}

.login-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.login-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.login-box .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.login-box .form-group input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    color: var(--text-color);
}

.login-box .form-group input::placeholder {
    color: var(--text-light);
}

.login-box .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 145, 207, 0.1);
}

.login-box .form-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.login-btn {
    width: 100%;
    padding: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
    background-color: var(--primary-color);
    color: var(--white) !important;
    
    border-radius: 4px;
}

.login-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.login-btn:disabled {
    background: var(--medium-gray);
    cursor: not-allowed;
    transform: none;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #fcc;
    display: none;
}

.loading {
    display: none;
}

.loading.active {
    display: inline;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.back-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-color);
}

/* Admin Page Styles */
.admin-container {
    min-height: 100vh;
    background: var(--light-gray);
    padding-top: 100px;
}

.admin-header {
    background: white;
    padding: 2rem 0;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title {
    color: var(--primary-color);
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-email {
    color: var(--text-light);
    font-weight: 500;
}

.logout-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.logout-btn:hover {
    background: var(--primary-dark);
}

.admin-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.promotion-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-image-section {
    margin-bottom: 2rem;
}

.current-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.image-info {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.upload-section {
    border-top: 1px solid var(--medium-gray);
    padding-top: 2rem;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.file-input-btn:hover {
    background: #17c2d6;
}

.file-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 4px;
    display: none;
}

.preview-image {
    max-width: 300px;
    height: auto;
    border-radius: 4px;
    margin-top: 1rem;
}

.upload-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: none;
}

.upload-btn:hover:not(:disabled) {
    background: var(--primary-dark);
}

.upload-btn:disabled {
    background: var(--medium-gray);
    cursor: not-allowed;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--medium-gray);
    border-radius: 3px;
    overflow: hidden;
    margin: 1rem 0;
    display: none;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.status-message {
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    display: none;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.visibility-section {
    border-top: 1px solid var(--medium-gray);
    padding-top: 2rem;
    margin-top: 2rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    transition: var(--transition);
}

.checkbox-group:hover {
    background: var(--medium-gray);
}

.checkbox-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label {
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
    flex-grow: 1;
}

.checkbox-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.save-visibility-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    margin-left: auto;
}

.save-visibility-btn:hover:not(:disabled) {
    background: #17c2d6;
}

.save-visibility-btn:disabled {
    background: var(--medium-gray);
    cursor: not-allowed;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Admin Styles */
@media (max-width: 768px) {
    .admin-content {
        padding: 0 1rem;
    }
    
    .admin-header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .promotion-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-box {
        padding: 2rem;
    }
}

/* Link Promozioni nella navbar */
.promo-link {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white) !important;
    padding: 2px 16px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(26, 145, 207, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: none; /* Nascosto di default */
}

.promo-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 145, 207, 0.4);
    color: var(--white) !important;
}

.promo-link:hover:before {
    left: 100%;
}

.promo-link i {
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .promo-link {
        margin: 0.5rem 0;
        text-align: center;
        display: block;
        width: 80%;
    }
}