/* Variabili e Reset */
:root {
    --bg-white: #ffffff;
    --bg-light: #f8fbfa;
    --text-dark: #0a192f; /* Blu notte, non nero */
    --text-muted: #495669;
    
    /* Palette Menta & Limone */
    --mint: #a1e2d4;
    --mint-dark: #81ccbc;
    --lemon: #fff07c;
    --lemon-dark: #e6d660;
    
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    color: var(--text-dark);
}

h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.text-mint { color: var(--mint-dark); }
.text-lemon { color: var(--lemon-dark); }

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(10, 25, 47, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--mint-dark);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--mint-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-mint {
    background-color: var(--mint);
    color: var(--text-dark);
    box-shadow: 0 10px 20px rgba(161, 226, 212, 0.4);
}

.btn-mint:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: var(--mint-dark);
}

.btn-dark {
    background-color: var(--text-dark);
    color: #fff;
}

.btn-dark:hover {
    background-color: var(--mint);
    color: var(--text-dark);
    transform: translateY(-5px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: var(--bg-white);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content p {
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--lemon);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 0;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

.hero-image img {
    position: relative;
    z-index: 1;
    max-width: 80%;
    transform: rotate(15deg);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(15deg); }
}

/* SVG Dividers */
.custom-shape-divider-bottom, .custom-shape-divider-top {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-bottom svg, .custom-shape-divider-top svg {
    display: block;
    width: calc(130% + 1.3px);
    height: 60px;
}

.custom-shape-divider-bottom .shape-fill { fill: var(--mint); }
.custom-shape-divider-top .shape-fill { fill: var(--bg-white); }

.custom-shape-divider-bottom {
    margin-bottom: -1px;
}
.custom-shape-divider-top {
    margin-top: -1px;
    background-color: var(--mint);
}

/* Philosophy */
.philosophy {
    background-color: var(--mint);
    padding-bottom: 50px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    border-radius: 30px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.8);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 15px 30px rgba(10, 25, 47, 0.08);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Flavors */
.flavors {
    background-color: var(--bg-white);
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.flavor-item {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
    border-left: 5px solid var(--lemon);
    transition: var(--transition);
}

.flavor-item:hover {
    transform: translateX(10px);
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(10, 25, 47, 0.05);
    border-left-color: var(--mint);
}

.flavor-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* Location */
.location-section {
    background-color: var(--bg-light);
}

.location-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.details-box {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(10, 25, 47, 0.05);
    margin: 2rem 0;
}

.detail-row {
    margin-bottom: 1rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row strong {
    display: block;
    color: var(--mint-dark);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.map-container {
    height: 400px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.1);
    border: 8px solid #fff;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.footer-logo {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--mint);
}

footer p {
    color: rgba(255,255,255,0.6);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 900px) {
    .hero-container, .location-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }
    
    .hero-image img {
        max-width: 60%;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
    .mobile-toggle span { width: 30px; height: 3px; background: var(--text-dark); border-radius: 3px; }
    
    h1 { font-size: 3rem; }
    
    .custom-shape-divider-bottom svg, .custom-shape-divider-top svg {
        height: 30px;
    }
}
