/* ======================================
   COSMOPIANTE — Sito Vetrina
   Stile artigianale / Botanical Art
   ====================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* ======================================
   Design Tokens
   ====================================== */
:root {
    --teal: #4A8E8E;
    --teal-dark: #3A7272;
    --teal-light: #6AAEAE;
    --gold: #C49A3C;
    --gold-dark: #A47E2E;
    --gold-light: #D4B46C;
    --ivory: #FAF6F0;
    --cream: #F5EDE0;
    --parchment: #EDE4D4;
    --text: #2C2C2C;
    --text-light: #5A5A5A;
    --white: #FFFFFF;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Libre Baskerville', 'Times New Roman', serif;
    --transition: 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ======================================
   Reset
   ====================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--ivory);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Grain overlay globale */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--teal-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Separatore dorato */
.gold-sep {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border: none;
    margin: 1.5rem auto;
}
.gold-sep-left {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    border: none;
    margin: 1rem 0;
}

/* ======================================
   HEADER
   ====================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(196, 154, 60, 0.15);
    transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem clamp(1rem, 4vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img { height: 45px; width: auto; }

.nav { display: flex; gap: 2rem; align-items: center; }

.nav a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text);
    position: relative;
    padding: 0.25rem 0;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}
.nav a:hover { color: var(--teal); }
.nav a:hover::after { width: 100%; }

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--teal-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--ivory);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--teal-dark);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .close-btn {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none; border: none;
    font-size: 2rem;
    color: var(--teal-dark);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav { display: none; }
    .menu-toggle { display: block; }
}

/* ======================================
   HERO
   ====================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--teal-dark);
}
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(44,44,44,0.1), rgba(44,44,44,0.4) 50%, rgba(44,44,44,0.7));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    max-width: 800px;
}
.hero-content h1 {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}
.hero-content p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--cream);
    font-style: italic;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
.hero .scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--cream);
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
    font-size: 1.5rem;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ======================================
   SEZIONI CATEGORIA (Homepage)
   ====================================== */
.category-section {
    display: flex;
    min-height: 50vh;
    overflow: hidden;
}
.category-section:nth-child(even) { flex-direction: row-reverse; }
.category-section:nth-child(odd) { background-color: var(--ivory); }
.category-section:nth-child(even) { background-color: var(--cream); }

.category-section .cat-image {
    width: 55%;
    position: relative;
    overflow: hidden;
}
.category-section .cat-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.category-section:hover .cat-image img { transform: scale(1.03); }

.category-section .cat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
}
.category-section .cat-content h2 { margin-bottom: 0; }
.category-section .cat-content p {
    color: var(--text-light);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.cat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--teal);
    transition: color var(--transition), gap var(--transition);
}
.cat-link:hover { color: var(--gold); gap: 0.75rem; }
.cat-link svg { width: 18px; height: 18px; }

/* Placeholder quando non c'è immagine */
.cat-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--teal-light), var(--teal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .category-section,
    .category-section:nth-child(even) {
        flex-direction: column;
        min-height: auto;
    }
    .category-section .cat-image {
        width: 100%;
        min-height: 250px;
        max-height: 40vh;
    }
    .category-section .cat-content { text-align: center; }
    .category-section .cat-content .gold-sep-left {
        margin: 1rem auto;
        background: linear-gradient(90deg, transparent, var(--gold), transparent);
    }
    .cat-link { justify-content: center; }
}

/* ======================================
   PAGINA CATEGORIA INTERNA
   ====================================== */
.cat-hero {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background-color: var(--teal-dark);
}
.cat-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(44,44,44,0.6));
    z-index: 1;
}
.cat-hero .cat-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 2rem 3rem;
}
.cat-hero h1 { color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding: 1.5rem clamp(1rem, 4vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

.cat-description {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}
.cat-description p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.9;
    margin-bottom: 1.5em;
    color: var(--text);
}

/* ======================================
   CHI SONO
   ====================================== */
.about-content {
    padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.about-photo img {
    width: 100%;
    border-radius: 6px;
    box-shadow: var(--shadow);
    object-fit: cover;
}

.about-text p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.9;
    margin-bottom: 1.5em;
    color: var(--text);
}

.about-text-full {
    grid-column: 1 / -1;
    max-width: 780px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-photo img {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ======================================
   ALBUM (dentro categoria)
   ====================================== */
.albums-section {
    background: var(--ivory);
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.album-card {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    color: var(--text);
}
.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    color: var(--text);
}

.album-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.album-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.album-card:hover .album-card-img img { transform: scale(1.05); }

.album-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--teal-light), var(--teal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-heading);
    font-size: 3rem;
}

.album-card-info {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.album-card-info h3 {
    font-size: 1.05rem;
    margin: 0;
}
.album-card-count {
    font-size: 0.78rem;
    color: var(--text-light);
    font-style: italic;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .albums-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .album-card-info { padding: 0.75rem; flex-direction: column; align-items: flex-start; gap: 0.15rem; }
    .album-card-info h3 { font-size: 0.9rem; }
}

/* ======================================
   FOTOGALLERY PAGE
   ====================================== */
.gallery-page-hero {
    background: var(--teal-dark);
    padding: clamp(4rem, 10vw, 6rem) 2rem clamp(3rem, 8vw, 4rem);
    text-align: center;
}
.gallery-page-hero h1 { color: var(--white); }
.gallery-page-hero p { color: var(--cream); }

/* Livello 1: Manifestazioni */
.gallery-manifest { padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem); }

.manifest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.manifest-card {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    color: var(--text);
}
.manifest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    color: var(--text);
}

.manifest-card-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.manifest-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.manifest-card:hover .manifest-card-img img { transform: scale(1.05); }

.manifest-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--teal-light), var(--teal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-heading);
    font-size: 3rem;
}

.manifest-card-info {
    padding: 1.25rem 1.5rem;
}
.manifest-card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}
.manifest-card-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.manifest-card-meta {
    font-size: 0.78rem;
    color: var(--gold-dark);
    font-style: italic;
}

/* Livello 2: Anni */
.gallery-years { padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem); }

.years-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.year-card {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    color: var(--text);
}
.year-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    color: var(--text);
}

.year-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.year-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.year-card:hover .year-card-img img { transform: scale(1.05); }

.year-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
}

.year-card-label {
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.year-card-year {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--teal-dark);
}
.year-card-count {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

@media (max-width: 480px) {
    .manifest-grid { grid-template-columns: 1fr; }
    .years-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ======================================
   GALLERY
   ====================================== */
.gallery-section {
    background-color: var(--cream);
    padding: clamp(3rem, 8vw, 5rem) 0;
}
.gallery-section h2 {
    text-align: center;
    margin-bottom: 0;
}
.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.gallery-item {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    background-color: var(--parchment);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44,44,44,0);
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-item:hover .zoom-overlay { background: rgba(44,44,44,0.15); }
.gallery-item .zoom-icon {
    color: var(--white);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity var(--transition), transform var(--transition);
    font-size: 1.5rem;
}
.gallery-item:hover .zoom-icon { opacity: 1; transform: scale(1); }

/* Didascalia sotto la foto in gallery */
.gallery-item {
    display: flex;
    flex-direction: column;
}
.gallery-item img {
    flex: 1;
    min-height: 0;
}
.gallery-caption {
    padding: 0.6rem 0.75rem;
    background: var(--parchment);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.4;
    font-style: italic;
    text-align: center;
}

@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ======================================
   LIGHTBOX
   ====================================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox .lb-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none; border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition);
}
.lightbox .lb-close:hover { opacity: 1; }
.lightbox .lb-prev,
.lightbox .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition);
    padding: 1rem;
}
.lightbox .lb-prev { left: 1rem; }
.lightbox .lb-next { right: 1rem; }
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover { opacity: 1; }
.lightbox .lb-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-style: italic;
    text-align: center;
    max-width: 80vw;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ======================================
   INSTAGRAM FEED
   ====================================== */
.instagram-section {
    background-color: var(--ivory);
    padding: clamp(3rem, 8vw, 5rem) 0;
    text-align: center;
}
.instagram-section h2 { margin-bottom: 0; }
.instagram-section .ig-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
}
.instagram-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.ig-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--parchment);
}
.ig-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.ig-item:hover img { transform: scale(1.06); }
.ig-item .ig-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44,44,44,0);
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition), background var(--transition);
}
.ig-item:hover .ig-overlay {
    background: rgba(44,44,44,0.3);
    opacity: 1;
}
.ig-overlay svg {
    color: var(--white);
    width: 24px;
    height: 24px;
}
.ig-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 0.75rem 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: var(--white);
    font-size: 0.75rem;
    line-height: 1.4;
    opacity: 0;
    transition: opacity var(--transition);
    text-align: left;
}
.ig-item:hover .ig-caption { opacity: 1; }

.ig-follow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--teal);
    transition: color var(--transition), gap var(--transition);
}
.ig-follow-link:hover { color: var(--gold); gap: 0.85rem; }

/* Placeholder quando non c'e' il token */
.ig-placeholder {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border: 2px dashed var(--parchment);
    border-radius: 8px;
    color: var(--text-light);
}
.ig-placeholder a { font-weight: 700; }

.ig-widget {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}

.ig-widget iframe {
    max-width: 100%;
}

/* ======================================
   CONTATTI
   ====================================== */
.contact-page {
    padding: clamp(3rem, 8vw, 5rem) 0;
    min-height: 80vh;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.contact-info p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}
.contact-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    transition: color var(--transition);
}
a.contact-method:hover { color: var(--teal); }
.contact-method svg { color: var(--gold); flex-shrink: 0; width: 20px; height: 20px; }

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding: 0.85rem 1.5rem;
    background: var(--teal);
    color: var(--white);
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1rem;
    transition: background var(--transition), transform var(--transition);
}
.whatsapp-cta:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    color: var(--white);
}

/* Contatti fullpage */
.contact-fullpage {
    min-height: 80vh;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark) 60%, var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 8vw, 5rem) 2rem;
}

.contact-fullpage-inner {
    max-width: 900px;
    width: 100%;
}

.contact-fullpage-inner h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 2.5rem;
    text-align: center;
}

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

.contact-social-row {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.contact-block {
    display: block;
    color: var(--white);
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 6px;
    transition: background var(--transition), transform var(--transition);
}
.contact-block:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
}

@media (max-width: 600px) {
    .contact-grid-blocks {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .contact-social-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-block-icon {
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}
.contact-block-icon svg {
    width: 28px;
    height: 28px;
    margin: 0 auto;
}

.contact-block h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.contact-block p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin: 0;
}

.contact-block-hint {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
}

/* ======================================
   FOOTER
   ====================================== */
.footer {
    background: var(--teal-dark);
    color: var(--cream);
    padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}
.footer h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
    font-weight: 400;
}
.footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.9;
    height: 35px;
    margin-bottom: 1rem;
}
.footer p { font-size: 0.9rem; opacity: 0.85; line-height: 1.6; }
.footer-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--cream);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: color var(--transition);
}
.footer-link:hover { color: var(--gold-light); }
.footer-link svg { flex-shrink: 0; width: 18px; height: 18px; }
.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-link { justify-content: center; }
}

/* ======================================
   WHATSAPP FLOATING BUTTON
   ====================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 90;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(74,142,142,0.4);
    transition: transform var(--transition), background var(--transition);
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    background: var(--teal-dark);
    color: var(--white);
}
.whatsapp-float svg { width: 26px; height: 26px; }

@media (max-width: 768px) {
    .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; }
    .whatsapp-float svg { width: 22px; height: 22px; }
}

/* ======================================
   POST-IT EVENTI
   ====================================== */
.events-postit {
    position: fixed;
    right: 2rem;
    top: 120px;
    z-index: 80;
    width: 220px;
    background: #FFF9E6;
    padding: 1.4rem 1.2rem 1.2rem;
    border-radius: 2px;
    box-shadow: 2px 3px 12px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.08);
    font-family: var(--font-body);
    /* Leggera rotazione per effetto post-it */
    transform: rotate(1.5deg);
}
/* Foglia ginkgo che "tiene" il post-it */
.postit-leaf {
    position: absolute;
    top: -48px;
    left: 50%;
    transform: translateX(-50%) rotate(-8deg);
    width: 60px;
    height: 70px;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.18));
}
.postit-leaf svg {
    width: 100%;
    height: 100%;
}

.events-postit h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--teal-dark);
    margin-bottom: 0.75rem;
    text-align: center;
    font-weight: 500;
}

.postit-events {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.postit-event {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.postit-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
    padding: 0.25rem 0.35rem;
    background: var(--teal);
    color: var(--white);
    border-radius: 3px;
    line-height: 1.1;
}
.postit-date strong {
    font-size: 1rem;
    font-family: var(--font-heading);
}
.postit-date small {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.postit-date-range {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0 0.15rem;
    text-align: center;
    min-width: 52px;
    padding: 0.2rem 0.3rem;
}
.postit-date-sep {
    grid-column: 1 / -1;
    font-size: 0.65rem;
    line-height: 1;
    opacity: 0.7;
}

.postit-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.postit-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.postit-location {
    font-size: 0.7rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.postit-location svg { flex-shrink: 0; }

.postit-desc {
    font-size: 0.7rem;
    color: var(--text-light);
    line-height: 1.3;
    font-style: italic;
}

@media (max-width: 900px) {
    .events-postit {
        right: 1rem;
        width: 190px;
        padding: 1.2rem 1rem 1rem;
    }
}

@media (max-width: 600px) {
    .events-postit {
        position: fixed;
        right: 0.75rem;
        top: auto;
        bottom: 5rem;
        transform: rotate(0deg);
        width: 180px;
    }
}

/* ======================================
   ANIMAZIONI SCROLL (fade-in)
   ====================================== */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================
   ADMIN STYLES
   ====================================== */
.admin-bar {
    background: var(--teal-dark);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-bar a { color: var(--gold-light); }
