@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/source-sans-pro-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/source-sans-pro-latin-400-italic.woff2) format('woff2')}
@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/source-sans-pro-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:600;font-display:swap;src:url(/assets/fonts/source-sans-pro-latin-600-italic.woff2) format('woff2')}
@font-face{font-family:'Source Sans Pro';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/source-sans-pro-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Source Sans Pro';font-style:italic;font-weight:700;font-display:swap;src:url(/assets/fonts/source-sans-pro-latin-700-italic.woff2) format('woff2')}
@font-face{font-family:'Pinyon Script';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/pinyon-script-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url(/assets/fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:600;font-display:swap;src:url(/assets/fonts/cormorant-garamond-latin-600-italic.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/cormorant-garamond-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:700;font-display:swap;src:url(/assets/fonts/cormorant-garamond-latin-700-italic.woff2) format('woff2')}
/* ===== Fucili Cortesi – stile classico, stessi colori del sito storico ===== */
:root {
  --page: #333333;
  --burgundy: #670902;
  --burgundy-dark: #4d0601;
  --brown: #693727;
  --cream: #EDE7D7;
  --cream-light: #f6f2e8;
  --muted: #8a6d62;
  --frame: #d9cdb4;
  --text: #2a211d;
  --white: #ffffff;
  --wrap: 1100px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --sans: 'Source Sans Pro', 'Segoe UI', Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html { background: #2e2e2e; }
body { margin: 0; min-height: 100vh; background-color: #2e2e2e; background-image: linear-gradient(180deg, #3a3a3a 0, #2e2e2e 420px); background-repeat: no-repeat; color: var(--text);
  font: 400 17px/1.7 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--burgundy); }
:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Cornice della pagina, come la tabella originale centrata */
.page { max-width: var(--wrap); margin: 0 auto; background: var(--cream);
  border-left: 1px solid var(--white); border-right: 1px solid var(--white); box-shadow: 0 0 40px rgba(0,0,0,.45); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }

/* Testata */
.hero { background: #000; line-height: 0; }
.hero img { width: 100%; aspect-ratio: 750 / 229; object-fit: cover; filter: sepia(.12) contrast(1.03); }
.hero-cap { margin: 0; padding: 6px clamp(18px, 4vw, 48px); background: var(--cream-light); color: var(--muted);
  font: italic 500 15px/1.4 var(--serif); text-align: right; border-bottom: 1px solid var(--frame); }

/* Menu bordeaux */
.mainnav { background: var(--burgundy); border-top: 1px solid var(--white); border-bottom: 3px solid var(--brown); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: stretch; padding: 0 !important; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; }
.mainnav li { flex: 1; border-left: 1px solid rgba(255,255,255,.55); }
.mainnav li a { display: block; height: 100%; padding: 22px 12px 9px; color: var(--white); text-decoration: none; text-align: right;
  font: 500 13.5px/1.2 var(--sans); letter-spacing: .04em; transition: background .25s, color .25s; }
.mainnav li a:hover, .mainnav li a:focus { background: var(--burgundy-dark); color: #e9cfc4; }
.mainnav li a.active { background: var(--brown); }
.mainnav .lang { display: flex; align-items: center; justify-content: center; min-width: 64px; background: var(--cream); color: var(--brown);
  font: 700 13px/1 var(--sans); letter-spacing: .12em; text-decoration: none; border-left: 1px solid var(--white); }
.mainnav .lang:hover { background: var(--white); }
.menu-toggle { display: none; }

/* Contenuto */
.content { padding: 30px 0 50px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; padding: 0; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin: 0 6px 0 2px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--burgundy); text-decoration: underline; }
.script { margin: 0; font: 400 clamp(30px, 4.6vw, 46px)/1.25 var(--script); color: #3a2b25; }
h1 { margin: 2px 0 22px; font: 600 clamp(25px, 3vw, 33px)/1.2 var(--serif); color: var(--brown); padding-bottom: 14px;
  border-bottom: 1px solid var(--frame); }
h2 { margin: 34px 0 12px; font: 600 clamp(21px, 2.4vw, 26px)/1.25 var(--serif); color: var(--brown); }
p { margin: 0 0 1em; }
.lead { font: 500 clamp(19px, 2vw, 22px)/1.55 var(--serif); color: #3b2c25; }
.source { font: italic 500 16px/1.4 var(--serif); color: var(--muted); text-align: right; }
.prose p { text-align: justify; hyphens: auto; }
.list { margin: 0 0 1em; padding-left: 1.2em; }
.list li::marker { color: var(--burgundy); }

/* Layout a due colonne */
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 44px); align-items: start; margin-bottom: 10px; }
.split.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.split.photo { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.stack { display: grid; gap: 20px; }
.photo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; margin-bottom: 24px; }

/* Cornici immagini (come i riquadri beige del sito originale) */
.frame { margin: 0 0 18px; background: var(--frame); padding: 7px; border-radius: 3px; box-shadow: 0 2px 6px rgba(70,40,25,.18); }
.frame img { width: 100%; background: #fff; }
.frame figcaption { padding: 7px 4px 1px; font: italic 500 15px/1.35 var(--serif); color: #4a3a33; }
.frame.wide { max-width: 860px; margin-left: auto; margin-right: auto; }
.zoom { display: block; position: relative; cursor: zoom-in; overflow: hidden; }
.zoom img { transition: transform .5s ease, filter .3s; }
.zoom:hover img { transform: scale(1.03); filter: brightness(1.05); }
.zoom::after { content: ''; position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(103,9,2,.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center/18px no-repeat;
  opacity: 0; transition: opacity .25s; }
.zoom:hover::after, .zoom:focus::after { opacity: 1; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.thumbs .frame { padding: 4px; margin: 0; }
.thumbs .frame img { aspect-ratio: 1; object-fit: cover; }

/* Schede (home e modelli) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 26px 0 10px; }
.card { background: var(--cream-light); border: 1px solid var(--frame); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .3s, transform .3s; }
.card:hover { box-shadow: 0 8px 22px rgba(70,40,25,.18); transform: translateY(-3px); }
.card-img { display: block; background: #e7dfcc; padding: 14px 14px 0; }
.card-img img { width: 100%; aspect-ratio: 147 / 89; object-fit: cover; }
.card-body { padding: 14px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.card h2 { margin: 0 0 8px; font-size: 21px; }
.card h2 a { color: var(--brown); text-decoration: none; }
.card p { font-size: 15.5px; margin-bottom: .6em; }
.card .more { margin-top: auto; margin-bottom: 0; }
.card .more a { font-weight: 600; text-decoration: none; }

/* Dati in breve, specifiche */
.facts { margin: 36px 0 10px; background: var(--cream-light); border-top: 3px solid var(--burgundy); padding: 18px 22px; }
.facts dl, .specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 22px; margin: 0; }
.facts dt, .specs dt { font: 700 12px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd, .specs dd { margin: 2px 0 0; font: 600 18px/1.3 var(--serif); color: #3b2c25; }
.specs { grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--cream-light); border-left: 3px solid var(--burgundy); padding: 14px 18px; margin: 0 0 1.2em; }

/* FAQ */
.faq-wrap { margin-top: 30px; }
.faq { border-bottom: 1px solid var(--frame); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 34px 14px 0; position: relative; font: 600 19px/1.35 var(--serif); color: #3b2c25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 10px; font: 400 26px/1 var(--serif); color: var(--burgundy); transition: transform .25s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; animation: fade .3s ease; }

/* Pulsanti */
.btn { display: inline-block; background: var(--burgundy); color: var(--white) !important; text-decoration: none; padding: 10px 20px; border-radius: 2px;
  font: 600 15px/1.2 var(--sans); letter-spacing: .03em; margin: 4px 6px 4px 0; transition: background .25s; }
.btn:hover, .btn:focus { background: var(--brown); }
.btn.ghost { background: transparent; color: var(--burgundy) !important; box-shadow: inset 0 0 0 1px var(--burgundy); }
.btn.ghost:hover { background: var(--burgundy); color: #fff !important; }
.btn-link { font-weight: 600; text-decoration: none; }

/* Contatti */
.card-address { font-style: normal; background: var(--cream-light); border-left: 3px solid var(--burgundy); padding: 16px 20px; margin-bottom: 18px; font-size: 18px; line-height: 1.7; }
.note { font-size: 15px; color: var(--muted); }

/* Galleria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 20px; }
.gallery figure { margin: 0; background: var(--frame); padding: 5px; border-radius: 3px; box-shadow: 0 2px 6px rgba(70,40,25,.15); }
.gallery img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

/* Slideshow produzione (ex Flash) */
.slideshow { position: relative; max-width: 380px; aspect-ratio: 270 / 150; margin: 24px 0; background: var(--frame); border: 7px solid var(--frame); border-radius: 3px; overflow: hidden; }
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.slideshow img.is-active { opacity: 1; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(20,14,12,.94); display: none; align-items: center; justify-content: center; }
.lb.is-open { display: flex; animation: fade .25s ease; }
.lb figure { margin: 0; max-width: 92vw; text-align: center; }
.lb img { max-width: 92vw; max-height: 82vh; margin: 0 auto; border: 6px solid var(--cream); box-shadow: 0 0 40px rgba(0,0,0,.6); }
.lb figcaption { color: #e8dfcd; font: italic 500 18px/1.4 var(--serif); margin-top: 10px; }
.lb button { position: absolute; background: rgba(237,231,215,.12); color: #fff; border: 0; width: 50px; height: 50px; border-radius: 50%;
  font: 400 32px/1 var(--serif); cursor: pointer; }
.lb button:hover, .lb button:focus { background: var(--burgundy); }
.lb .lb-close { top: 14px; right: 14px; }
.lb .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; top: 24px; left: 0; right: 0; text-align: center; color: #bfb39d; font-size: 14px; letter-spacing: .1em; }
body.lb-lock { overflow: hidden; }

/* Footer */
.site-footer { background: #e3dcc9; border-top: 1px solid var(--frame); padding: 26px 0 30px; text-align: center; color: var(--muted); font-size: 14.5px; }
.site-footer p { margin: 0 0 .6em; }
.site-footer a { color: var(--brown); }
.footer-nav { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px solid var(--frame); }
.footer-nav a { text-decoration: none; font-weight: 600; font-size: 14px; }
.tagline { font: italic 500 16px/1.4 var(--serif); color: #5e4b43; }
.copy { font-size: 13px; }

/* Animazione d'ingresso discreta */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .split, .split.reverse, .split.photo { grid-template-columns: 1fr; }
  .split.reverse > .frame { order: 2; }
  .stack { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .page { border: 0; }
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; background: none; border: 0; color: #fff;
    padding: 12px 18px; cursor: pointer; margin-right: auto; }
  .menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
  .menu-toggle b { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-inner { flex-wrap: wrap; }
  .mainnav ul { display: none; order: 3; flex-basis: 100%; flex-direction: column; border-top: 1px solid rgba(255,255,255,.4); }
  .mainnav ul.is-open { display: flex; animation: fade .25s ease; }
  .mainnav li { border-left: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .mainnav li a { text-align: left; padding: 14px 20px; font-size: 16px; }
  .hero img { aspect-ratio: 16 / 7; }
  .hero-cap { text-align: left; font-size: 14px; }
  .photo-row { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lb .lb-prev, .lb .lb-next { top: auto; bottom: 18px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  body { background: #fff; } .mainnav, .site-footer .footer-nav, .hero { display: none; } .page { box-shadow: none; border: 0; }
}
