/* SELF-HOSTED FONTS (Fraunces + DM Sans) — assets/fonts/ */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/fraunces-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/fraunces-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300; font-display: swap; src: url('fonts/fraunces-latin-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/fraunces-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/dm-sans-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/dm-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/dm-sans-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/dm-sans-latin-900-normal.woff2') format('woff2'); }

 :root {
 --cream: #F4F1EA;
 --parchment: #E8E2D0;
 --sage: #6B7F5E;
 --sage-dark: #4A5940;
  --sage-black: #0c0f0a;
 --sage-mid: #8A9E7A;
 --sage-pale: #D6E0CC;
 --dark: #293222;
 --mid: #5A6450;
 --border: #C8D4BC;
 --white: #FAFAF7;
 }

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

 html { scroll-behavior: smooth; }

 body {
 background: var(--cream);
 font-family: 'DM Sans', sans-serif;
 color: var(--dark);
 line-height: 1.75;
 font-size: 15px;
 font-weight: 400;
 }

 /* LANGUAGE BAR */
 .lang-bar {
 background: var(--dark);
 padding: 9px 48px;
 display: flex;
 align-items: center;
 justify-content: flex-end;
 gap: 8px;
 position: sticky;
 top: 0;
 z-index: 200;
 }
 .lang-bar span {
 font-size: 0.65rem;
 letter-spacing: 0.16em;
 text-transform: uppercase;
 color: rgba(255,255,255,0.4);
 margin-right: 6px;
 }
 .lang-btn {
 padding: 4px 16px;
 font-size: 0.68rem;
 letter-spacing: 0.14em;
 text-transform: uppercase;
 font-family: 'DM Sans', sans-serif;
 border: 1px solid rgba(255,255,255,0.2);
 background: transparent;
 color: rgba(255,255,255,0.5);
 cursor: pointer;
 border-radius: 2px;
 transition: all 0.2s;
 }
 .lang-btn.active {
 background: var(--sage);
 color: #fff;
 border-color: var(--sage);
 }
 .lang-btn:hover:not(.active) {
 border-color: rgba(255,255,255,0.5);
 color: rgba(255,255,255,0.8);
 }

 /* NAV */
 nav {
 background: var(--dark);
 border-top: 1px solid rgba(255,255,255,0.06);
 padding: 16px 48px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 position: sticky;
 top: 37px;
 z-index: 100;
 }
 nav .logo {
 font-family: 'Fraunces', serif;
 font-size: 1rem;
 color: var(--cream);
 letter-spacing: 0.1em;
 font-weight: 300;
 }
 nav .nav-links {
 display: flex;
 gap: 28px;
 list-style: none;
 }
 nav .nav-links a {
 color: rgba(255,255,255,0.55);
 font-weight: 500;
 text-decoration: none;
 font-size: 0.68rem;
 letter-spacing: 0.14em;
 text-transform: uppercase;
 transition: color 0.2s;
 }
 nav .nav-links a:hover { color: var(--sage-mid); }

 /* LANGUAGE VISIBILITY */
 /* HERO padding: 96px 40px 80px; */
 .hero {
 background: var(--dark);
 padding: 36px 40px 30px;
 text-align: center;
 flex-direction: column;
 align-items: center;
 position: relative;
 overflow: hidden;
 }
 .hero::before {
 content: '';
 position: absolute;
 inset: 0;
 background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(107,127,94,0.18) 0%, transparent 70%);
 pointer-events: none;
 }
 .hero .eyebrow {
 font-size: 1.8rem;
 letter-spacing: 0.2em;
 text-transform: uppercase;
 text-align: center;
 color: var(--sage-mid);
 margin-top: 8px;
 margin-bottom: 32px;
 font-weight: 400;
 font-family: 'DM Sans', sans-serif;
 }
 .hero h1 {
 font-family: 'Fraunces', serif;
 font-size: clamp(3rem, 5.5vw, 4.4rem);
 font-weight: 300;
 line-height: 1.12;
 margin-bottom: 10px;
 color: var(--cream);
 letter-spacing: 0.02em;
 }
 .hero h1 em { font-style: italic; color: var(--sage-mid); }
 .hero .tagline {
 font-size: 1rem;
 color: rgba(244,241,234,0.55);
 letter-spacing: 0.18em;
 text-transform: uppercase;
 margin-bottom: 44px;
 font-weight: 300;
 }
 .hero .tagline strong {
 font-weight: 600;
 color: rgba(244,241,234,0.85);
 }
 .hero .hero-body {
 max-width: 820px;
 font-size: 1.25rem;
 color: #BCC1B3; /* Era questo colore #BCC1B3 */
 line-height: 1.8;
 font-family: 'Fraunces', serif;
 font-weight: 300;
 font-style: italic;
 position: relative;
 text-align: center; /* Centra il testo su ogni riga */
 margin-left: auto;  /* Centra il blocco intero da sinistra */
 margin-right: auto; /* Centra il blocco intero da destra */
 }

  /* LOGO SECTION */
.logo-img {
    height: 60px;   /* Modifica l'altezza a piacere */
    width: auto;
    display: block;
}

 /* SECTION */
 .section-block {
 max-width: 880px;
 margin: 0 auto;
 padding: 68px 40px;
 border-bottom: 1px solid var(--border);
 }

 .section-label {
 font-size: 0.62rem;
 letter-spacing: 0.26em;
 text-transform: uppercase;
 color: var(--sage);
 font-weight: 500;
 margin-bottom: 6px;
 }
 .divider { width: 40px; height: 1px; background: var(--sage); margin: 18px 0 26px; }

 h2 {
 font-family: 'Fraunces', serif;
 font-size: 2.1rem;
 font-weight: 500;
 margin-bottom: 6px;
 letter-spacing: 0.01em;
 color: var(--dark);
 }

 p { margin-bottom: 14px; color: var(--mid); font-weight: 400; }
 p strong { color: var(--dark); }
 p em { font-style: italic; }

 /* ACCORDION */
 .accordion {
 margin-top: 20px;
 border: 1px solid var(--border);
 border-radius: 4px;
 overflow: hidden;
 }
 .accordion-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 16px 22px;
 background: var(--white);
 cursor: pointer;
 user-select: none;
 transition: background 0.2s;
 border: none;
 width: 100%;
 text-align: left;
 font-family: 'DM Sans', sans-serif;
 }
 .accordion-header:hover { background: var(--sage-pale); }
 .accordion-header .acc-label {
 font-size: 0.78rem;
 letter-spacing: 0.1em;
 text-transform: uppercase;
 color: var(--sage-dark);
 font-weight: 500;
 }
 .accordion-arrow {
 width: 22px;
 height: 22px;
 border: 1px solid var(--border);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 flex-shrink: 0;
 transition: transform 0.3s, background 0.2s;
 color: var(--sage);
 font-size: 0.7rem;
 }
 .accordion-header.open .accordion-arrow {
 transform: rotate(180deg);
 background: var(--sage);
 color: white;
 border-color: var(--sage);
 }
 .accordion-body {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1);
 background: var(--white);
 border-top: 1px solid var(--border);
 }
 .accordion-body.open { max-height: 50000px; }
 .accordion-inner { padding: 24px 22px 28px; }
 .accordion-inner p { font-size: 0.9rem; color: var(--mid); margin-bottom: 10px; }
 .accordion-inner p:last-child { margin-bottom: 0; }
 .accordion-inner p strong { color: var(--dark); }

 /* SERVICES GRID */
 .services-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 2px;
 margin-top: 28px;
 }
 .service-card {
 padding: 28px 24px;
 background: var(--white);
 border: 1px solid var(--border);
 transition: background 0.2s;
 }
 .service-card:hover { background: var(--sage-pale); }
 .service-card .location {
 font-size: 0.75rem; /* era 0.75rem  */
 letter-spacing: 0.2em; /* era 0.2em  */
 text-transform: uppercase;
 color: var(--black); /* era var(--dark) - ho aggiunto il colore --black  */
 font-weight: 800;
 margin-bottom: 8px;
 }
 .service-card p { font-size: 0.9rem; margin: 0; color: var(--mid); line-height: 1.65; }
 .service-note { font-size: 0.8rem; color: var(--mid); font-style: italic; margin-top: 14px; line-height: 1.6; }

 /* TESTIMONIALS */
 .testimonials { display: flex; flex-direction: column; gap: 2px; margin-top: 28px; }
 .testimonial {
 padding: 26px 28px;
 background: var(--white);
 border-left: 3px solid var(--sage);
 transition: border-color 0.2s;
 }
 .testimonial:hover { border-color: var(--sage-dark); }
 .testimonial blockquote {
 font-family: 'Fraunces', serif;
 font-size: 1.05rem;
 font-style: italic;
 color: var(--dark);
 line-height: 1.78;
 margin-bottom: 14px;
 }
 .testimonial blockquote strong { font-style: normal; font-weight: 600; color: var(--sage-dark); }
 .testimonial .attribution {
 font-size: 0.72rem;
 letter-spacing: 0.08em;
 color: var(--sage);
 font-weight: 500;
 text-transform: uppercase;
 }
 .testimonial .attribution span { color: var(--mid); font-weight: 300; text-transform: none; letter-spacing: 0; }

 /* TIMELINE */
 .timeline { margin-top: 28px; }
 .timeline-item {
 display: grid;
 grid-template-columns: 190px 1fr;
 gap: 24px;
 padding: 22px 0;
 border-bottom: 1px solid var(--border);
 }
 .timeline-item:last-child { border-bottom: none; }
 .timeline-org { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em; color: var(--dark); text-transform: uppercase; }
 .timeline-role { font-size: 0.68rem; color: var(--sage); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 3px; }
 .timeline-projects { list-style: none; padding: 0; }
 .timeline-projects li {
 font-size: 0.85rem; color: var(--mid);
 padding: 2px 0 2px 14px; position: relative; line-height: 1.55;
 }
 .timeline-projects li::before { content: '—'; position: absolute; left: 0; color: var(--sage); font-size: 0.75rem; }
 .timeline-projects li strong { color: var(--dark); font-weight: 500; }

 
 /* EXPANDED TIMELINE (IT) */
 .timeline-content { font-size: 0.85rem; color: var(--mid); line-height: 1.6; }
 .timeline-content .tl-intro { margin-bottom: 12px; }
 .timeline-content .tl-subsection { margin: 14px 0 6px; font-size: 0.85rem; color: var(--mid); }
 .timeline-content .tl-subsection strong { color: var(--dark); font-weight: 500; }
 .timeline-content .tl-project { margin: 10px 0 14px; }
 .timeline-content .tl-project-title { color: var(--dark); font-weight: 500; font-size: 0.9rem; margin-bottom: 3px; line-height: 1.4; }
 .timeline-content .tl-project-desc { color: var(--mid); font-size: 0.85rem; line-height: 1.55; }
 .timeline-content .tl-project-desc + .tl-project-desc { margin-top: 4px; }


 /* MEMOIR SECTION */
 .memoir-card {
   border-left: 3px solid var(--sage);
   margin: 24px 0;
 }
 .memoir-header {
   padding: 18px 22px;
   background: var(--parchment);
   cursor: pointer;
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   gap: 16px;
 }
 .memoir-header:hover { background: var(--sage-pale); }
 .memoir-title {
   font-family: 'Fraunces', serif;
   font-size: 1rem;
   font-weight: 400;
   font-style: italic;
   color: var(--dark);
   line-height: 1.4;
 }
 .memoir-year {
   font-size: 0.72rem;
   letter-spacing: 0.1em;
   color: var(--sage);
   text-transform: uppercase;
   white-space: nowrap;
   padding-top: 4px;
 }
 .memoir-body {
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
 }
 .memoir-body.open { max-height: 8000px; }
 .memoir-inner {
   padding: 22px 24px 28px;
   background: var(--white);
 }
 .memoir-inner p {
   font-size: 0.9rem;
   color: var(--mid);
   margin-bottom: 14px;
   line-height: 1.75;
   text-align: justify;
 }
 .memoir-inner p:last-child { margin-bottom: 0; }
 .memoir-inner p strong { color: var(--dark); }
 .memoir-arrow {
   width: 18px;
   height: 18px;
   border-right: 1.5px solid var(--sage);
   border-bottom: 1.5px solid var(--sage);
   transform: rotate(45deg);
   transition: transform 0.3s;
   flex-shrink: 0;
   margin-top: 6px;
 }
 .memoir-header.open .memoir-arrow { transform: rotate(-135deg); margin-top: 10px; }

 /* SERVICES TABLE */
 .services-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
 .services-table th {
 background: var(--sage-dark);
 color: rgba(255,255,255,0.9);
 padding: 11px 18px;
 text-align: left;
 font-size: 0.68rem;
 letter-spacing: 0.16em;
 text-transform: uppercase;
 font-weight: 400;
 }
 .services-table td {
 padding: 13px 18px;
 border-bottom: 1px solid var(--border);
 font-size: 0.85rem;
 vertical-align: top;
 color: var(--mid);
 background: var(--white);
 }
 .services-table td:first-child { color: var(--dark); font-weight: 500; }
 .services-table tr:last-child td { border-bottom: none; }
 .services-table tr:hover td { background: var(--sage-pale); }

 /* FOCUS LIST */
 .focus-list { list-style: none; padding: 0; margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
 .focus-list li {
 font-size: 0.9rem; color: var(--mid);
 padding: 9px 0 9px 20px; position: relative;
 border-bottom: 1px solid var(--border);
 }
 .focus-list li::before { content: ''; position: absolute; left: 0; color: var(--sage); font-size: 0.5rem; top: 13px; }

 /* TRAINING */
 .training-list { list-style: none; padding: 0; margin-top: 18px; }
 .training-list li {
 padding: 13px 0; border-bottom: 1px solid var(--border);
 font-size: 0.9rem; color: var(--mid);
 display: flex; align-items: baseline; gap: 14px;
 }
 .training-list li .org { font-weight: 500; color: var(--dark); min-width: 200px; }

 /* CONTACT */
 .contact-block {
 background: var(--dark);
 padding: 72px 40px;
 text-align: center;
 position: relative;
 overflow: hidden;
 }
 .contact-block::before {
 content: '';
 position: absolute;
 inset: 0;
 background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(107,127,94,0.15) 0%, transparent 60%);
 pointer-events: none;
 }
 .contact-block h2 { color: var(--cream); font-size: 2.2rem; margin-bottom: 6px; position: relative; }
 .contact-block .subtitle {
 color: rgba(244,241,234,0.4);
 font-size: 0.78rem;
 letter-spacing: 0.16em;
 text-transform: uppercase;
 margin-bottom: 40px;
 position: relative;
 }
 .contact-block .subtitle strong {
 font-weight: 700;
 color: rgba(244,241,234,0.75);
 }
 .contact-links { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; margin-bottom: 32px; position: relative; }
 .contact-link {
 color: rgba(244,241,234,0.7);
 text-decoration: none;
 font-size: 0.84rem;
 letter-spacing: 0.06em;
 transition: color 0.2s;
 display: flex; align-items: center; gap: 8px;
 }
 .contact-link:hover { color: var(--sage-mid); }
 .contact-note {
 font-family: 'Fraunces', serif;
 font-style: italic;
 font-size: 1.05rem;
 color: rgba(244,241,234,0.38);
 position: relative;
 }


 /* GALLERY PLACEHOLDER */
 .gallery-section {
 background: var(--dark);
 padding: 72px 40px;
 text-align: center;
 }
 .gallery-section h2 { color: var(--cream); margin-bottom: 8px; }
 .gallery-section .subtitle {
 color: rgba(244,241,234,0.45);
 font-size: 0.78rem;
 letter-spacing: 0.18em;
 text-transform: uppercase;
 margin-bottom: 40px;
 }
 .gallery-grid {
 max-width: 880px;
 margin: 0 auto;
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 3px;
 }
 .gallery-item {
 aspect-ratio: 4/3;
 background: rgba(255,255,255,0.05);
 border: 1px dashed rgba(107,127,94,0.35);
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 10px;
 padding: 20px;
 transition: background 0.2s;
 overflow: hidden;
 position: relative;
 }
 .gallery-item:hover { background: rgba(107,127,94,0.1); }
 .gallery-item img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
 transition: transform 0.35s ease;
 }
 .gallery-item:hover img { transform: scale(1.04); }
 .gallery-item .gi-icon { font-size: 1.6rem; opacity: 0.4; }
 .gallery-item .gi-label {
 font-size: 0.62rem;
 letter-spacing: 0.16em;
 text-transform: uppercase;
 color: rgba(244,241,234,0.3);
 font-weight: 500;
 }
 .gallery-note {
 max-width: 520px;
 margin: 32px auto 0;
 font-size: 0.82rem;
 color: rgba(244,241,234,0.35);
 font-style: italic;
 line-height: 1.7;
 }


 /* GALLERY FILTRATA */
 .gallery-filters {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
 justify-content: center;
 margin-bottom: 36px;
 }
 .filter-btn {
 padding: 7px 20px;
 font-size: 0.65rem;
 letter-spacing: 0.16em;
 text-transform: uppercase;
 font-family: 'DM Sans', sans-serif;
 border: 1px solid rgba(255,255,255,0.2);
 background: transparent;
 color: rgba(255,255,255,0.5);
 cursor: pointer;
 border-radius: 2px;
 transition: all 0.2s;
 }
 .filter-btn:hover:not(.active) {
 border-color: rgba(255,255,255,0.5);
 color: rgba(255,255,255,0.8);
 }
 .filter-btn.active {
 background: var(--sage);
 color: #fff;
 border-color: var(--sage);
 }
 .gallery-grid-full {
 max-width: 960px;
 margin: 0 auto;
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 3px;
 }
 .gf-item {
 aspect-ratio: 4/3;
 overflow: hidden;
 position: relative;
 cursor: pointer;
 background: rgba(255,255,255,0.04);
 border: 1px dashed rgba(107,127,94,0.3);
 }
 .gf-item img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
 transition: transform 0.4s ease;
 }
 .gf-item:hover img { transform: scale(1.06); }
 .gf-item .gf-placeholder {
 position: absolute;
 inset: 0;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 0.6rem;
 letter-spacing: 0.18em;
 text-transform: uppercase;
 color: rgba(244,241,234,0.18);
 font-family: 'DM Sans', sans-serif;
 font-weight: 500;
 }
 .gf-item.hidden { display: none; }

 .gallery-year-section { margin-bottom: 4px; }
 .gallery-year-label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 16px;
  border-bottom: 1px solid rgba(107,127,94,0.18);
  cursor: pointer; user-select: none; transition: border-color 0.2s;
 }
 .gallery-year-label:hover { border-color: rgba(107,127,94,0.45); }
 .year-left { display: flex; flex-direction: column; gap: 4px; }
 .year-number {
  font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 300;
  color: var(--cream); line-height: 1; transition: color 0.2s;
 }
 .gallery-year-label:hover .year-number,
 .gallery-year-section.open .year-number { color: var(--sage-mid); }
 .year-meta { font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mid); font-family: 'DM Sans', sans-serif; }
 .year-right { display: flex; align-items: center; gap: 16px; }
 .year-preview { display: flex; gap: 3px; transition: opacity 0.25s; }
 .year-preview img { width: 32px; height: 32px; object-fit: cover; opacity: 0.6; }
 .gallery-year-label:hover .year-preview img { opacity: 0.9; }
 .gallery-year-section.open .year-preview { opacity: 0; pointer-events: none; }
 .year-arrow { font-size: 0.5rem; color: var(--sage-mid); opacity: 0.5; transition: transform 0.3s ease, opacity 0.2s; flex-shrink: 0; }
 .gallery-year-section.open .year-arrow { transform: rotate(180deg); opacity: 1; }
 .gallery-year-section .gallery-grid-full { display: none; margin-top: 3px; margin-bottom: 20px; }
 .gallery-year-section.open .gallery-grid-full { display: grid; }

 /* LIGHTBOX */
 .lb-overlay {
 display: none;
 position: fixed;
 inset: 0;
 background: rgba(18,22,16,0.97);
 z-index: 500;
 align-items: center;
 justify-content: center;
 flex-direction: column;
 }
 .lb-overlay.open { display: flex; }
 .lb-img {
 max-width: 90vw;
 max-height: 82vh;
 object-fit: contain;
 }
 .lb-close {
 position: absolute;
 top: 20px;
 right: 28px;
 background: none;
 border: none;
 color: rgba(255,255,255,0.5);
 font-size: 2rem;
 cursor: pointer;
 line-height: 1;
 transition: color 0.2s;
 font-family: sans-serif;
 }
 .lb-close:hover { color: #fff; }
 .lb-nav {
 display: flex;
 gap: 16px;
 margin-top: 18px;
 }
 .lb-nav button {
 background: none;
 border: 1px solid rgba(255,255,255,0.18);
 color: rgba(255,255,255,0.5);
 padding: 7px 22px;
 cursor: pointer;
 font-size: 0.65rem;
 letter-spacing: 0.14em;
 text-transform: uppercase;
 font-family: 'DM Sans', sans-serif;
 border-radius: 2px;
 transition: all 0.2s;
 }
 .lb-nav button:hover { border-color: var(--sage-mid); color: var(--sage-mid); }

 .nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; background: transparent; border: none; cursor: pointer; }
 .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .25s, opacity .2s; }
 nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
 nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
 nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

 /* RESPONSIVE */
 @media (max-width: 680px) {
 /* Layout */
 .services-grid { grid-template-columns: 1fr; }
 .timeline-item { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
 .focus-list { grid-template-columns: 1fr; columns: 1; margin-top: 18px; }
 .training-list li { flex-direction: column; gap: 3px; }
 .gallery-grid-full { grid-template-columns: repeat(2, 1fr); }
 nav { top: 33px; }
 .nav-toggle { display: flex; }
 nav .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--dark); padding: 6px 0; border-top: 1px solid rgba(255,255,255,0.08); box-shadow: 0 12px 24px rgba(0,0,0,0.25); }
 nav.open .nav-links { display: flex; }
 nav .nav-links li { width: 100%; text-align: center; }
 nav .nav-links a { display: block; padding: 13px 24px; font-size: 0.82rem; color: var(--cream); text-align: center; }
 nav .nav-links a:hover { color: #fff; }
 .lang-btn { padding: 9px 18px; font-size: 0.72rem; }
 .contact-link { display: inline-block; padding: 6px 2px; }
 .lang-bar { padding: 9px 20px; }
 
 /* Spazi sezioni — più compatte su mobile */
 .section-block { padding: 44px 22px; }
 .hero { padding: 60px 24px 50px; }
 .contact-block { padding: 56px 24px; }
 .service-card { padding: 24px 20px; }
 .testimonial { padding: 22px 22px; }
 .timeline { margin-top: 22px; }
 
 /* Tipografia — proporzioni più mobile-friendly */
 h2 { font-size: 1.7rem; margin-bottom: 4px; }
 .contact-block h2 { font-size: 1.85rem; }
 p { margin-bottom: 11px; }
 body { line-height: 1.7; }
 
 /* Contatti */
 .contact-links { gap: 22px !important; margin-bottom: 24px !important; }
 }

.tl-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.tl-photo {
  cursor: pointer;
  display: block;
  width: 100%;
}
.tl-photo-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 2px;
  background: var(--border);
}
.tl-photo-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.2s;
}
.tl-photo:hover .tl-photo-frame img {
  transform: scale(1.04);
  opacity: 0.92;
}
.tl-photo-caption {
  font-size: 0.72rem;
  color: var(--mid);
  margin-top: 4px;
  font-style: italic;
  line-height: 1.3;
}
@media (max-width: 700px) {
  .tl-photos { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

 #backtop { position: fixed; bottom: 22px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--dark); color: var(--cream); font-size: 1.15rem; line-height: 1; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s, background .2s; z-index: 300; box-shadow: 0 4px 16px rgba(0,0,0,0.22); }
 #backtop.show { opacity: 1; pointer-events: auto; }
 #backtop:hover { background: var(--sage-dark); }

/* GALLERY PAGE — unified grid (replaces scattered per-period tl-photos galleries) */
.gallery-intro { margin-bottom: 22px; }
.gallery-grid-unified {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.gallery-grid-unified .tl-photo-frame { border-radius: 4px; }
.gallery-grid-unified .tl-photo-caption { font-size: 0.7rem; }
@media (max-width: 680px) {
  .gallery-grid-unified { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Simple footer for split multi-page site */
footer.site-footer {
  text-align: center;
  padding: 28px 20px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--mid);
  background: var(--parchment);
}
footer.site-footer a { color: var(--sage-dark); text-decoration: none; }

img { max-width: 100%; }

/* Ensure <picture> wrappers don't break absolutely-positioned photo frames */
.tl-photo-frame picture { display: block; width: 100%; height: 100%; }
.memoir-inner picture { display: inline-block; }

/* Home — striscia statistiche */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
  padding: 28px 20px;
  background: var(--parchment);
  border-radius: 6px;
  text-align: center;
}
.stats-strip .stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  color: var(--sage-dark);
  line-height: 1;
}
.stats-strip .stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--mid);
  margin-top: 6px;
  text-transform: uppercase;
}
@media (max-width: 680px) {
  .stats-strip { grid-template-columns: 1fr; gap: 18px; }
}

/* Chi sono — foto personale sotto il testo, dopo il paragrafo finale */
.about-photo {
  margin: 0 auto;
  max-width: 600px;
}
.about-photo img {
  width: 100%;
  display: block;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
