/* ----------------------------------------------------
   RESET & BASE
---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html { scroll-behavior: smooth; }

body {
    background: #F5F2EE;
    color: #1A1A1A;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* ----------------------------------------------------
   TIPOGRAFIA
---------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: .5px;
    color: #6A7A5A;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }

/* ----------------------------------------------------
   HEADER
---------------------------------------------------- */
#header {
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 3px solid #BFA77A;
}

.navigation ul {
    list-style: none;
    display: inline-flex;
    gap: 25px;
}

.navigation a {
    text-decoration: none;
    color: #3A3A3A;
    font-weight: 500;
    transition: .3s;
}
.navigation a:hover { color: #BFA77A; }

/* ----------------------------------------------------
   MENU MOBILE (desktop: nascosto)
---------------------------------------------------- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}
.hamburger span {
    width: 28px;
    height: 3px;
    background: #6A7A5A;
    border-radius: 3px;
    transition: .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----------------------------------------------------
   SLIDER
---------------------------------------------------- */
#featured {
    max-width: 800px;
    margin: 0 auto;
}
#featured img {
    width: 100%;
    border-radius: 6px;
    transition: .4s;
}
#featured:hover img { transform: translateY(-5px); }

/* ----------------------------------------------------
   PDF BUTTONS
---------------------------------------------------- */
.pdf-buttons {
    display: flex;
    flex-direction: column;
    gap: 28px;
    list-style: none;
}

.pdf-buttons a {
    padding: 12px 26px;
    background: #6A7A5A;
    color: #F5F2EE;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid #BFA77A;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
    transition: .3s;
}
.pdf-buttons a:hover {
    background: #4F5D41;
    border-color: #D8C48A;
    transform: translateY(-3px);
}

/* ----------------------------------------------------
   HERO OVERLAY LEFT
---------------------------------------------------- */
.hero-overlay-left {
    position: fixed;
    top: 200px;
    left: 26px;
    z-index: 9999;
    padding: 24px 22px;
    border-radius: 18px;
    background-image: url("Immagini/texture-carta.webp"),
                      linear-gradient(180deg, rgba(245,242,238,.92), rgba(245,242,238,.75));
    background-size: cover;
    background-blend-mode: multiply;
    border: 2px solid #BFA77A;
    box-shadow: 0 8px 26px rgba(0,0,0,.25);
    backdrop-filter: blur(4px);
}
.hero-overlay-left::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 14px;
    border: 2px solid #E8D9B8;
}

.hero-overlay-left,
.section-right {
    pointer-events: none;
}

.pdf-buttons a,
.section-right a {
    pointer-events: auto;
}

.hero-overlay-left h2 {
    margin-bottom: 12px;
}

/* ----------------------------------------------------
   SECTION RIGHT + COCCARDA
---------------------------------------------------- */
.section-right {
    position: fixed;
    top: 200px;
    right: 40px;
    z-index: 9999;
    padding: 28px 24px;
    border-radius: 20px;
    background-image: url("Immagini/texture-carta.webp"),
                      linear-gradient(180deg, rgba(245,242,238,.92), rgba(245,242,238,.75));
    background-size: cover;
    background-blend-mode: multiply;
    border: 2px solid #BFA77A;
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
    backdrop-filter: blur(4px);
}
.section-right::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 16px;
    border: 2px solid #E8D9B8;
}

/* COCCARDA */
.section-right::after {
    content: "";
    position: absolute;
    top: -24px;
    right: -24px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #BFA77A 40%, #8E7A4A 100%);
    border-radius: 50%;
    border: 2px solid #F5F2EE;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    filter: drop-shadow(0 0 6px rgba(255,220,150,.55));
}

.badge-img {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
}

.section-right .content {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    text-align: right;
}

.section-right p a {
    color: #7A2E2E;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.section-right p a::after {
    content: "➤";
    color: #BFA77A;
    transition: .3s;
}
.section-right p a:hover::after { transform: translateX(4px); }

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
.footer-3col-center {
    background: #6A7A5A;
    color: #F5F2EE;
    padding: 1rem;
    border-top: 3px solid #BFA77A;
    width: 100%;
}

.footer-3col-center .footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    text-align: center;
}

.footer-3col-center h4 {
    color: #F5F2EE;
    margin-bottom: .5rem;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
}

.footer-3col-center p {
    margin: 2px 0;
    line-height: 1.3;
    font-size: .75rem;
}

.footer-social a img {
    width: 36px;
    height: 36px;
    margin: 0 8px;
    transition: .3s;
}
.footer-social a img:hover {
    transform: scale(1.15);
    opacity: .85;
}

address a,
.footer-legal a {
    color: inherit;
    text-decoration: none;
}

.footer-inner h4 {
    line-height: 1.1;   /* puoi scendere fino a 1 o 0.9 */
    margin-top: 0;
    margin-bottom: 8px; /* regola a piacere */
}
/* ----------------------------------------------------
   LOGO HEADER
---------------------------------------------------- */
.logo-header {
    width: 100%;
    max-width: 660px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ----------------------------------------------------
   COOKIE BANNER
---------------------------------------------------- */
#cookie-banner,
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #F5F2EE;
    border: 2px solid #BFA77A;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    z-index: 9000;
    display: none;
}

.cookie-options {
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #3A3A3A;
}

.cookie-buttons {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.cookie-buttons button {
    padding: 8px 16px;
    background: #BFA77A;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.cookie-buttons button:hover { background: #D8C48A; }

.cookie-info {
    display: inline-block;
    margin-top: 10px;
    color: #7A2E2E;
    font-weight: 600;
}

/* ----------------------------------------------------
   HERO GALLERY
---------------------------------------------------- */
.hero-gallery {
    text-align: center;
    padding: 2rem 2rem 3rem;
    background: #F5F2EE;
}

.hero-gallery h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #7A2E2E;
    margin-bottom: 1rem;
}

.hero-gallery p {
    font-size: 1.2rem;
    color: #8E7A4A;
}

.gallery-grid {
    max-width: 1200px;
    margin: 40px auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    text-align: center;
}

.gallery-img-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform .4s ease;
    pointer-events: auto;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-desc {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #7A2E2E;
}

/* ----------------------------------------------------
   ANIMAZIONI
---------------------------------------------------- */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeIn { to { opacity: 1; } }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ----------------------------------------------------
   CONTACT SECTION
---------------------------------------------------- */
.contact-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

.contact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.contact-section .intro-text {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 40px;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* FORM */
.contact-form {
    flex: 1;
    min-width: 300px;
    background: #fafafa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.contact-form h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.contact-form label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.btn-send {
    margin-top: 20px;
    background: #7a9c59;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background .3s;
}
.btn-send:hover { background: #6a8a4f; }

/* INFO */
.contact-info {
    flex: 1;
    min-width: 280px;
    padding: 25px;
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #333;
}

/* MAPPA */
.map-container {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

/* ----------------------------------------------------
   TIMELINE
---------------------------------------------------- */
.timeline-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.timeline-title {
    margin-bottom: 40px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #D4AF37;
    border-radius: 3px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 40px;
    width: 16px;
    height: 16px;
    background: #D4AF37;
    border-radius: 50%;
    border: 3px solid #fff;
}

.timeline-year {
    min-width: 110px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #7A2E2E;
}

.timeline-content {
    background: #F5F2EE;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
}


/* ----------------------------------------------------
   EXTRA
---------------------------------------------------- */
.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #6A7A5A;
    margin-top: -20px;
    margin-bottom: 38px;
}

.section-right .cta-general {
    margin-top: 4px;
    line-height: 1.1;
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: -10px;
}

.privacy-note {
    margin-top: 10px;
    font-size: .9rem;
    color: #555;
}
.privacy-note a {
    color: #7A2E2E;
    font-weight: 600;
}

.cookie-links {
    margin-top: 10px;
    display: flex;
    gap: 15px
}
/* ============================
   CHI SIAMO — Migliorie layout
   ============================ */

.about-section {
    max-width: 1200px;
    margin: 60px auto; /* stacca dall’header */
    padding: 0 20px;   /* stacca dai bordi laterali */
    display: flex;
    align-items: flex-start;
    gap: 40px;         /* spazio tra immagine e testo */
}

.about-image img {
    width: 100%;
    max-width: 520px;  /* dimensione più elegante */
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.about-text {
    flex: 1;
    padding-top: 10px; /* allinea meglio con l’immagine */
}

/* ============================
   PAGINE LEGALI — Centratura
   ============================ */

.legal-page {
    max-width: 900px;        /* larghezza elegante */
    margin: 60px auto;       /* centra la pagina */
    padding: 0 20px;         /* margine laterale */
    text-align: left;        /* testo allineato come le altre pagine */
    line-height: 1.7;
}

.legal-page h1,
.legal-page h2 {
    text-align: center;      /* titoli centrati */
    color: #7A2E2E;
    margin-bottom: 20px;
}

.legal-page p,
.legal-page ul {
    font-size: 1.05rem;
    color: #4a3f2b;
}

.legal-page ul {
    margin: 14px 0 20px 20px;
    list-style: disc;
}

.about-text p {
    text-align: justify;
    hyphens: auto;
    max-width: 600px; /* opzionale */
}

