:root {
    --primary-color: #1a1a1a;
    --accent-color: #d4af37;
    --text-light: #ffffff;
    --text-dark: #333333;
    --overlay-dark: rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 60px; /* Spazio per la navbar */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(26,26,26,0.95) 0%, rgba(15,15,15,0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    height: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    height: 100%;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.05);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: #ffffff;
    color: #1a1a1a;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    transform: translateX(0);
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Dropdown menu */
.nav-menu .dropdown {
    position: relative;
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26,26,26,0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    list-style: none;
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    z-index: 1000;
}

.nav-menu .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-menu .dropdown-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu .dropdown-menu a {
    display: block;
    padding: 0.7rem 1.5rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 0;
    background: transparent;
}

.nav-menu .dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent-color);
    transform: none;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Hero Section */
.hero {
    color: var(--text-light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 5%;
    min-height: 100vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/sfondosito1.png') center top/cover no-repeat;
    z-index: 0;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: left;
    margin-right: 5%;
}

.hero-title {
    font-family: 'Nunito', sans-serif;
    font-size: 70px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9);
}

.hero-text {
    font-family: 'Nunito', sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    letter-spacing: 0.5px;
}

.hero-text-bold {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 25px;
}

.hero-text-emphasis {
    font-family: 'Nunito', sans-serif;
    font-size: 25px;
    font-weight: 700;
    margin: 2rem 0;
}

/* Logo mobile - nascosto di default */
.hero-logo-mobile {
    display: none;
}

/* Basics Section */
.basics {
    background: #f5f5f5;
    padding: 5rem 0;
    margin-top: 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.social-link img {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
}

.social-link:hover img {
    transform: scale(1.1);
}

.poi-section {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 0 auto;
}

.poi-section h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.poi-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.subscriber-count {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #666;
    font-style: italic;
}

.email-cta {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.email-cta img {
    width: 100px;
    height: 100px;
}

.email-cta:hover {
    transform: scale(1.1);
}

.email-cta-text {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 0;
    text-align: center;
    color: var(--primary-color);
}

/* Content Section */
.content {
    background: url('../images/sfondobeige.png') center/cover no-repeat;
    color: var(--text-light);
    position: relative;
    padding-top: 5rem;
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-dark);
    z-index: 1;
}

.content .container {
    position: relative;
    z-index: 2;
}

.content .section-title,
.content .section-description {
    color: var(--text-light);
}

.podcast-links {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.podcast-link img {
    width: 138px;
    height: 138px;
    transition: transform 0.3s ease;
}

.podcast-link:hover img {
    transform: scale(1.1);
}

/* Regions Container Style */
.regions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.region-section {
    width: 100%;
}

.region-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.region-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.region-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1rem 1.5rem;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.region-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.region-card span {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    flex: 1;
    text-align: left;
}

.region-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(212,175,55,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.region-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.region-card:hover::before {
    opacity: 1;
}

.wine-letters {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    color: var(--accent-color);
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: block;
    margin-bottom: 0.5rem;
}

.wine-icon-svg {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem;
}

.wine-icon-svg svg {
    width: 100%;
    height: 100%;
    color: var(--accent-color);
}

.wine-icon-map {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.wine-icon-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wine-category span:last-child {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal p {
    margin-bottom: 2rem;
}

#emailForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#emailForm input[type="text"],
#emailForm input[type="email"] {
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    width: 100%;
}

#emailForm button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#emailForm button:hover {
    background: #333;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--accent-color);
    padding: 1.5rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cookie-content h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 0;
}

.cookie-content p {
    color: #ffffff;
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-accept {
    background: var(--accent-color);
    color: #1a1a1a;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.btn-accept:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.btn-info {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-info:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Media Queries */
@media (max-width: 768px) {
    /* Hero section mobile adjustments */
    .hero {
        padding: 0;
        justify-content: flex-start;
        align-items: center;
        flex-direction: column;
        padding-top: 80px;
        background: #1a1a1a; /* Sfondo di fallback */
    }
    
    .hero-bg {
        background-color: #1a1a1a;
        background-image: url('../images/sfondomobile1.png');
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }
    
    .hero-content {
        margin: 0 auto;
        padding: 2rem;
        text-align: center;
        max-width: 90%;
        position: relative;
        z-index: 2;
    }
    
    /* Logo mobile visibile solo su mobile */
    .hero-logo-mobile {
        display: block;
        width: 90%;
        max-width: 350px;
        height: auto;
        margin: 0 auto 2rem auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
        font-size: 1rem;
    }
    
    .social-links,
    .podcast-links {
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .social-link img {
        width: 60px;
        height: 60px;
    }
    
    .podcast-link img {
        width: 80px;
        height: 80px;
    }
    
    .region-cards {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.8rem;
    }
    
    .region-card {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
    
    .region-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    /* Ultra mobile adjustments */
    .hero {
        padding-top: 60px;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero-logo-mobile {
        width: 85%;
        max-width: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .wine-categories {
        grid-template-columns: 1fr;
    }
}

/* Schermi molto piccoli */
@media (max-width: 320px) {
    .hero-logo-mobile {
        width: 95%;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-text {
        font-size: 0.9rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
}