
/* ============================================
   CARTOLERIA DUDÙ - STYLESHEET
   Design: Accogliente, colorato, moderno con tocchi artigianali
   ============================================ */

/* ============= VARIABILI E RESET ============= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@300;400;600&display=swap');
:root {
    --primary: #3B7C59;           /* Verde salvia */
    --secondary: #F6F3E9;         /* Beige chiaro */
    --accent: #E07A5F;            /* Corallo caldo */
    --dark: #2C2C2C;              /* Grigio scuro */
    --light: #FFFFFF;             /* Bianco puro */
    --light-gray: #F2EDE6;
    --border: #E8E0D8;
    --success: #6AA96A;
    --warning: #E0A878;
    --error: #C66B6B;
    --eco: #A3C9A8;              /* Verde chiaro */
    --eco-accent: #F9C784;       /* Giallo caldo */
    /* Nuovi colori chiari e vivaci */
    --blue-light: #A7C7E7;
    --blue-bright: #6C63FF;
    --pink-light: #FAD4D4;
    --pink-bright: #DD2A7B;
    --yellow-light: #FFF9C4;
    --yellow-bright: #FFD600;
    --green-light: #D4F5E9;
    --green-bright: #25D366;
    --purple-light: #E6D6F5;
    --purple-bright: #8134AF;
    --orange-light: #FFE5B4;
    --orange-bright: #F58529;
    --cyan-light: #D0F7FA;
    --cyan-bright: #00BCD4;
    --font-main: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    --font-accent: 'Playfair Display', Georgia, serif;
    --transition: all 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-small: 0 4px 14px rgba(35, 34, 33, 0.06);
    --shadow-medium: 0 8px 28px rgba(35, 34, 33, 0.10);
    --shadow-large: 0 16px 48px rgba(35, 34, 33, 0.14);

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background-color: var(--secondary);
    background-image: none;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============= TIPOGRAFIA ============= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-family: var(--font-accent);
    color: var(--primary);
    letter-spacing: 0.5px;
}

h2 {
    font-size: 2.2rem;
    font-family: var(--font-main);
    color: var(--primary);
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(224,122,95,0.06);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

/* ============= NAVBAR ============= */
.navbar {
    background: var(--light);
    border-bottom: 2px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-small);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-accent);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-style: italic;
    letter-spacing: 0.6px;
    text-transform: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.02)), linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 6px 18px rgba(35,35,35,0.08), inset 0 -6px 12px rgba(0,0,0,0.06);
    border: 2px solid rgba(255,255,255,0.06);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item a {
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--dark);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}

.nav-item.active a {
    color: var(--primary);
}

/* Hamburger Menu */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

@media (max-width: 1024px) {
    .hamburger {
        display: block;
    }
}
@media (min-width: 1025px) {
    .hamburger {
        display: none;
    }
}

@media (max-width: 1024px) {
    .hamburger {
        display: block !important;
    }
}
@media (min-width: 1025px) {
    .hamburger {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .hamburger {
        display: block;
    }
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ============= HERO SECTION ============= */
.hero {
    background: linear-gradient(160deg, rgba(255,255,255,0.6), rgba(255,255,255,0.9)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800'%3E%3Cdefs%3E%3Cpattern id='p' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23f4efe9'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23p)'/%3E%3C/svg%3E") center/cover no-repeat, linear-gradient(135deg, var(--light-gray) 0%, var(--secondary) 100%);
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 65%);
    opacity: 0.12;
    border-radius: 50%;
    animation: float 7s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -8%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
    opacity: 0.10;
    border-radius: 50%;
    animation: float 9s ease-in-out infinite reverse;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
    position: relative;
    font-family: var(--font-accent);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 0 rgba(0,0,0,0.02);
}

.hero h1::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    bottom: -14px;
    width: 220px;
    height: 12px;
    background: linear-gradient(90deg, rgba(224,122,95,0.95), rgba(59,124,89,0.95));
    border-radius: 8px;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ============= BOTTONI ============= */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    opacity: 0.9;
    transition: opacity 0.28s ease;
    pointer-events: none;
    border-radius: inherit;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--blue-bright), var(--accent), var(--eco-accent));
    color: #fff;
    box-shadow: 0 8px 20px rgba(59,124,89,0.12), inset 0 -6px 12px rgba(0,0,0,0.06);
    border: 2px solid var(--primary);
    text-shadow: 0 1px 2px rgba(59,124,89,0.18);
}

.btn-primary:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    box-shadow: 0 18px 46px rgba(59,124,89,0.14);
}

.btn-secondary {
    background: var(--yellow-light);
    color: var(--dark);
    border: 2px dashed var(--accent);
    text-shadow: 0 1px 2px rgba(224,122,95,0.12);
}

.btn-secondary:hover {
    background: linear-gradient(90deg, rgba(59,124,89,0.06), rgba(224,122,95,0.04));
    color: var(--dark);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
}

/* ============= ICONE PERSONALIZZATE ============= */
.custom-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    color: var(--light);
    box-shadow: 0 6px 18px rgba(59,124,89,0.15);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.custom-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: inherit;
}

.custom-icon svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

.custom-icon:hover {
    transform: translateY(-2px) rotate(2deg);
    box-shadow: 0 12px 28px rgba(59,124,89,0.2);
}

/* Varianti colore per le icone */
.custom-icon.accent {
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.custom-icon.creative {
    background: linear-gradient(135deg, #E07A5F, #F4A261);
}

.custom-icon.gift {
    background: linear-gradient(135deg, #6A994E, #A7C957);
}

.custom-icon.service {
    background: linear-gradient(135deg, #457B9D, #1D3557);
}

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

section {
    padding: 5rem 2rem;
}

section.alt-bg {
    background: var(--secondary);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Specific spacing for chi-siamo sections */
[data-page="chi-siamo"] section {
    margin-bottom: 1rem;
}

[data-page="chi-siamo"] section.alt-bg {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* ============= GRID BOOTSTRAP PERSONALIZZATO ============= */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.col {
    flex: 1;
}

.col-md-6 {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .col-md-6 {
        grid-column: span 1;
    }
    
    .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .col-md-6 {
        grid-column: span 2;
    }
}

/* ============= CARD COMPONENTI ============= */
.card {
    background: var(--light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-small);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.card-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(246,241,236,0.9), rgba(255,246,229,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 6px 20px rgba(35,35,35,0.04);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.card-content p {
    color: #777;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.card-cta {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.card-cta:hover {
    gap: 1rem;
    color: var(--accent);
}

/* ============= SEZIONE "CHI SIAMO" ============= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-large);
}

.about-content {
    margin-bottom: 2rem;
}

.about-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.2rem;
}

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.value-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 12px;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    background: var(--secondary);
}

.value-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Timeline spacing */
.timeline-item {
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .values {
        grid-template-columns: 1fr;
    }
}

/* ============= SEZIONE PRODOTTI ============= */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border: 2px solid var(--border);
    background: var(--blue-light);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(108,99,255,0.08);
    text-shadow: 0 1px 2px rgba(108,99,255,0.10);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--blue-bright);
    color: #fff;
    border-color: var(--blue-bright);
    text-shadow: 0 2px 4px rgba(108,99,255,0.18);
}

/* ============= SEZIONE SERVIZI ============= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background: var(--light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-small);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-top-color: var(--accent);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.service-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ============= FORM ============= */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 137, 108, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background: rgba(106,169,106,0.12);
    color: var(--success);
    border: 1px solid rgba(106,169,106,0.18);
    display: block;
}

.form-message.error {
    background: rgba(198,107,107,0.10);
    color: var(--error);
    border: 1px solid rgba(198,107,107,0.16);
    display: block;
}

/* ============= MAPPA ============= */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--light-gray), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #999;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============= INFO CONTATTI ============= */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-item {
    background: var(--secondary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-small);
}

.info-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.info-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    margin: 0;
    color: #666;
}

/* ============= FOOTER ============= */

footer {
    background: var(--dark);
    color: #ddd;
    padding: 3rem 0 1.5rem 0;
    margin-top: 5rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Forza la container del footer a larghezza piena senza limiti */
.footer-container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        box-sizing: border-box;
        padding-left: 2rem;
        padding-right: 2rem;
}

@media (max-width: 900px) {
    .footer-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 600px) {
    .footer-container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #bbb;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #bbb;
}

.footer-links a:hover {
    color: var(--primary);
}

.developer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.developer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.developer-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: inherit;
}

.developer-links a svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

.developer-links a:hover {
    background: var(--accent);
    transform: translateY(-3px) rotate(2deg);
    box-shadow: 0 8px 20px rgba(224,122,95,0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #888;
}

.footer-bottom p {
    margin: 0;
}

/* ============= ANIMAZIONI ============= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scroll-fade {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .navbar-container {
        padding: 1rem;
    }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--light);
        flex-direction: column;
        gap: 0;
        padding: 1rem 2rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 2px solid var(--light-gray);
    }
    
    .nav-menu.active {
        max-height: 400px;
    }
    
    .nav-item {
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-item a::after {
        display: none;
    }
    
    .nav-item.active a,
    .nav-item a:hover {
        color: var(--primary);
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .values {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ============= UTILITÀ ============= */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 2rem;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ============= SOCIAL LINKS ============= */
.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px) rotate(2deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ============= BANNER COOKIE ============= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text p {
    margin: 0;
    color: #ddd;
    line-height: 1.5;
}

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

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

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.cookie-btn.accept {
    background: var(--primary);
    color: white;
}

.cookie-btn.accept:hover {
    background: var(--accent);
}

.cookie-btn.decline {
    background: transparent;
    color: #ccc;
    border: 1px solid #555;
}

.cookie-btn.decline:hover {
    background: #333;
    color: white;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-text {
        min-width: auto;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* ============= GLASSMORPHISM CARD ============= */
.glass-card {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    transition: box-shadow 0.3s, transform 0.3s;
}
.glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.18);
    transform: translateY(-4px) scale(1.025);
}

/* Migliora la trasparenza delle icone nelle card */
.card .custom-icon {
    background: rgba(59,124,89,0.12);
    border-radius: 50%;
    padding: 1.2rem;
    box-shadow: 0 2px 8px rgba(59,124,89,0.08);
}

/* ============= LISTA ANIMATA ============= */
.animated-list-item {
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(59,124,89,0.06);
  transition: background 0.25s, box-shadow 0.25s, transform 0.18s;
}
.animated-list-item:hover {
  box-shadow: 0 6px 24px rgba(59,124,89,0.13);
  transform: translateY(-2px) scale(1.02);
}
.animated-list-item .icon {
  transition: transform 0.22s cubic-bezier(.4,2,.6,1), box-shadow 0.22s;
  box-shadow: 0 2px 8px rgba(59,124,89,0.10);
}
.animated-list-item:hover .icon {
  box-shadow: 0 4px 16px rgba(59,124,89,0.18);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-animated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg, #3B7C59 0%, #E07A5F 50%, #6C63FF 100%);
  background-size: 200% 200%;
  opacity: 0.18;
  animation: gradientMove 8s ease-in-out infinite;
  border-radius: 0 0 3rem 3rem;
}

.card.glass-card {
  position: relative;
  overflow: hidden;
}
.card.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, #3B7C59 0%, #E07A5F 50%, #6C63FF 100%);
  background-size: 200% 200%;
  opacity: 0.10;
  animation: gradientMove 10s ease-in-out infinite;
}
.card.glass-card > * { position: relative; z-index: 1; }

@keyframes borderGradient {
  0% { border-image-source: linear-gradient(120deg, #3B7C59, #E07A5F, #6C63FF); }
  50% { border-image-source: linear-gradient(300deg, #6C63FF, #E07A5F, #3B7C59); }
  100% { border-image-source: linear-gradient(120deg, #3B7C59, #E07A5F, #6C63FF); }
}

.animated-border {
  border: 4px solid;
  border-image: linear-gradient(120deg, #3B7C59, #E07A5F, #6C63FF) 1;
  animation: borderGradient 6s linear infinite;
  border-radius: 1.5rem;
  box-shadow: 0 0 0 2px rgba(60,60,60,0.04);
}

.decorative-border {
  border: 3px dashed #6C63FF;
  border-radius: 1.5rem;
  box-shadow: 0 0 12px 2px rgba(108,99,255,0.08);
  position: relative;
}
.decorative-border::after {
  content: '';
  position: absolute;
  inset: 0.5rem;
  border: 2px dotted #E07A5F;
  border-radius: 1.2rem;
  pointer-events: none;
  opacity: 0.5;
}

/* === ELEMENTI DECORATIVI FLUTTUANTI === */
.floating-deco {
  position: fixed;
  z-index: 2;
  opacity: 0.32;
  pointer-events: none;
  animation: floatY 8s ease-in-out infinite alternate;
  filter: drop-shadow(0 2px 8px rgba(60,60,60,0.10));
  transition: opacity 0.3s;
}
.floating-deco.deco1 { left: 4vw; top: 8vh; font-size: 4.2rem; animation-delay: 0s; }
.floating-deco.deco2 { right: 6vw; top: 18vh; font-size: 3.5rem; animation-delay: 2s; }
.floating-deco.deco3 { left: 10vw; bottom: 10vh; font-size: 3.8rem; animation-delay: 1.5s; }
.floating-deco.deco4 { right: 12vw; bottom: 6vh; font-size: 3.2rem; animation-delay: 3s; }
.floating-deco.deco5 { left: 50vw; top: 4vh; font-size: 3rem; animation-delay: 4s; }

@media (max-width: 700px) {
  .floating-deco { opacity: 0.13; font-size: 2.2rem !important; }
}

/* === LINEE CURVE ANIMATE SVG === */
.animated-curve {
  position: fixed;
  z-index: 1;
  left: 0; right: 0;
  width: 100vw;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  animation: curveMove 12s linear infinite alternate;
}
.animated-curve.curve1 { top: 10vh; height: 100px; animation-delay: 0s; }
.animated-curve.curve2 { bottom: 12vh; height: 90px; animation-delay: 3s; }

@keyframes curveMove {
  0% { filter: blur(0px); transform: translateX(0); }
  100% { filter: blur(1.5px); transform: translateX(40px); }
}
