/* public/assets/css/main.css */
:root {
    --ottanio: #006064;
    --giallo-fastweb: #FFD23F;
    --arancione: #FF6B35;
    --bianco: #FFFFFF;
    --nero: #1A1A1A;
    --grigio-chiaro: #F8F9FA;
    --ombra-leggera: 0 4px 12px rgba(0, 0, 0, 0.1);
    --ombra-media: 0 8px 24px rgba(0, 0, 0, 0.15);
    --ombra-forte: 0 16px 48px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--nero);
    background: var(--grigio-chiaro);
    overflow-x: hidden;
}

/* Navbar pulita */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bianco);
    box-shadow: var(--ombra-leggera);
    transition: all 0.3s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--ombra-media);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 800;
    color: var(--ottanio);
    text-decoration: none;
}

.nav-link {
    color: var(--nero);
    font-weight: 500;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    background: var(--giallo-fastweb);
    color: var(--nero);
    transform: translateY(-2px);
    box-shadow: var(--ombra-leggera);
}

/* Hero con card sovrapposte */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--ottanio);
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bianco);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    opacity: 0.95;
    margin-bottom: 40px;
}

/* Search box come card */
.search-card {
    background: var(--bianco);
    border-radius: 20px;
    padding: 8px;
    box-shadow: var(--ombra-forte);
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    transform: translateY(50px);
    position: relative;
    z-index: 10;
}

.search-input {
    border: none;
    outline: none;
    font-size: 18px;
    flex: 1;
    padding: 20px;
    background: transparent;
}

.search-btn {
    background: var(--giallo-fastweb);
    border: none;
    color: var(--nero);
    padding: 20px 40px;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--ombra-leggera);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--ombra-media);
    background: var(--arancione);
    color: var(--bianco);
}

/* Background decorativo */
.hero-decor {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.decor-card {
    position: absolute;
    background: var(--bianco);
    border-radius: 20px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

.decor-card-1 {
    width: 300px;
    height: 400px;
    top: -100px;
    right: -100px;
    box-shadow: var(--ombra-forte);
}

.decor-card-2 {
    width: 400px;
    height: 300px;
    bottom: -150px;
    left: -200px;
    transform: rotate(15deg);
    box-shadow: var(--ombra-forte);
}

.decor-card-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 10%;
    transform: rotate(-30deg);
    background: var(--giallo-fastweb);
    opacity: 0.2;
}

/* Business Cards con sovrapposizioni */
.business-section {
    background: var(--grigio-chiaro);
    padding: 100px 0;
    margin-top: -80px;
    position: relative;
}

.business-card {
    background: var(--bianco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ombra-media);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 100%;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--ombra-forte);
}

.business-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.business-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.business-card:hover .business-card-image img {
    transform: scale(1.1);
}

.business-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--giallo-fastweb);
    color: var(--nero);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--ombra-leggera);
}

.business-card-content {
    padding: 30px;
}

.business-card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ottanio);
    margin-bottom: 10px;
}

.business-card-meta {
    color: var(--arancione);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.business-card-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Bottone con ombra */
.btn-primary {
    background: var(--ottanio);
    color: var(--bianco);
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: var(--ombra-leggera);
}

.btn-primary:hover {
    background: var(--arancione);
    transform: translateY(-2px);
    box-shadow: var(--ombra-media);
}

/* Map container con card effect */
.map-section {
    background: var(--bianco);
    padding: 80px 0;
    position: relative;
}

.map-card {
    background: var(--bianco);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--ombra-forte);
    padding: 10px;
}

.map-inner {
    border-radius: 20px;
    overflow: hidden;
    height: 500px;
    background: var(--grigio-chiaro);
}

/* Initiative cards con stacking effect */
.initiative-section {
    background: var(--ottanio);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.initiative-card {
    background: var(--bianco);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: var(--ombra-media);
    transition: all 0.3s ease;
}

.initiative-card:hover {
    transform: translateY(-5px) translateX(5px);
    box-shadow: var(--ombra-forte);
}

.initiative-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    background: var(--giallo-fastweb);
    border-radius: 20px;
    z-index: -1;
    transition: all 0.3s ease;
}

.initiative-card:hover::before {
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
}

/* Section headers */
.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--ottanio);
    margin-bottom: 20px;
    text-align: center;
}

.section-title-white {
    color: var(--bianco);
}

/* Footer con card overlap */
.footer {
    background: var(--nero);
    color: var(--bianco);
    padding: 80px 0 40px 0;
    position: relative;
    margin-top: 100px;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 100px;
    background: var(--giallo-fastweb);
    border-radius: 20px;
    box-shadow: var(--ombra-forte);
}

/* Floating elements per profondità */
.floating {
    position: absolute;
    border-radius: 50%;
    background: var(--giallo-fastweb);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    background: var(--arancione);
}

.floating-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* Card stacking effect */
.card-stack {
    position: relative;
    margin-bottom: 30px;
}

.card-stack::before,
.card-stack::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bianco);
    border-radius: 20px;
    z-index: -1;
    box-shadow: var(--ombra-leggera);
}

.card-stack::before {
    top: 5px;
    left: 5px;
    background: var(--giallo-fastweb);
    opacity: 0.3;
}

.card-stack::after {
    top: 10px;
    left: 10px;
    background: var(--arancione);
    opacity: 0.2;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .search-card {
        flex-direction: column;
        padding: 20px;
    }

    .search-btn {
        width: 100%;
        margin-top: 15px;
    }

    .decor-card {
        display: none;
    }
}