:root {
    --positano-peach: #FFCC99;
    --mediterranean-blue: #006994;
    --lemon-yellow: #FFF700;
    --bougainvillea-pink: #E05C88;
    --white-stucco: #FAF9F6;
}

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

body {
    font-family: 'Lato', sans-serif;
    background: var(--white-stucco);
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Bodoni Moda', serif;
    color: var(--bougainvillea-pink);
}

/* Header & Navigation */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--mediterranean-blue);
}

.lemon-icon {
    font-size: 1.5rem;
}

.desktop-nav {
    display: none;
}

.desktop-nav a {
    color: var(--mediterranean-blue);
    text-decoration: none;
    padding: 8px 16px;
    transition: color 0.3s;
    font-weight: 500;
}

.desktop-nav a:hover {
    color: var(--bougainvillea-pink);
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-icon {
    font-size: 2rem;
    color: var(--mediterranean-blue);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--mediterranean-blue);
    z-index: 200;
    transition: right 0.3s ease;
    padding: 60px 30px;
}

.mobile-drawer.open {
    right: 0;
}

.close-drawer {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    line-height: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: padding-left 0.3s;
}

.mobile-nav a:hover {
    padding-left: 10px;
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .desktop-nav {
        display: flex;
        gap: 10px;
    }

    .hamburger {
        display: none;
    }
}

/* Hero Section */
.hero {
    min-height: 60vh;
    background: linear-gradient(180deg, var(--mediterranean-blue) 0%, #008bb8 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--lemon-yellow);
    font-weight: 300;
}

.vertical-houses {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    align-items: flex-end;
}

.house {
    width: 50px;
    border: 2px solid white;
    border-radius: 4px 4px 0 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.house:nth-child(1) { height: 80px; }
.house:nth-child(2) { height: 100px; }
.house:nth-child(3) { height: 120px; }
.house:nth-child(4) { height: 110px; }
.house:nth-child(5) { height: 90px; }

/* Intro Section */
.intro {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
}

.unesco-badge {
    margin: 0 auto 30px;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
}

.freshness {
    color: var(--mediterranean-blue);
    font-weight: 700;
    margin-top: 20px;
}

/* Step Counter */
.step-counter {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.step-counter h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.step-counter > p {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
}

.counter-widget {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.counter-widget label {
    font-weight: 700;
    color: var(--mediterranean-blue);
}

.counter-widget select {
    padding: 15px;
    font-size: 1rem;
    border: 2px solid var(--positano-peach);
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.step-result {
    text-align: center;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.steps-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bougainvillea-pink);
    font-family: 'Bodoni Moda', serif;
}

.steps-joke {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

/* Page Grid */
.page-grid {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-grid h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

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

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 3px solid var(--positano-peach);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--lemon-yellow), var(--positano-peach), var(--bougainvillea-pink));
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card p {
    color: #666;
    line-height: 1.5;
}

/* Footer */
footer {
    background: var(--positano-peach);
    color: #333;
    padding: 40px 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.dome-illustration {
    margin-bottom: 20px;
}

.dome-label {
    font-style: italic;
    color: var(--mediterranean-blue);
    margin-top: 10px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.footer-nav a {
    color: var(--mediterranean-blue);
    text-decoration: none;
    font-weight: 500;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #555;
}

/* Content Pages Styling */
.page-header {
    background: linear-gradient(135deg, var(--mediterranean-blue) 0%, #008bb8 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--lemon-yellow);
}

.content-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.content-section h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
}

.content-section h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--mediterranean-blue);
}

.content-section p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.content-section ul, .content-section ol {
    margin: 20px 0 20px 30px;
}

.content-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Special Interactive Elements */
.interactive-box {
    background: white;
    border: 3px solid var(--positano-peach);
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.interactive-box h3 {
    margin-top: 0;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .page-header h1 {
        font-size: 3.5rem;
    }
}