/* Layout editoriale e contenuti aziendali. Font e colori di base in styles.css. */
.brand { gap: 0; }
.brand-logo { display: block; height: auto; object-fit: contain; }
.header .brand-logo { width: 260px; }
.footer .brand { justify-self: start; background: #fff; padding: 10px 14px; border-radius: 5px; }
.footer .brand-logo { width: 280px; }
.hero { height: 660px; background: #102138; }
.hero-image { left: 44%; width: 56%; object-position: center 58%; opacity: 0; transition: opacity 1.5s ease-in-out; }
.hero-image.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-image { transition: opacity .35s ease-in-out !important; }
}
.hero-shade { background: linear-gradient(90deg, #102138 34%, #102138ed 44%, #10213828 70%, #10213816), linear-gradient(0deg, #102138be, transparent 40%); }
.hero-content { padding-top: 110px; }
.hero h1 { font-size: clamp(58px, 5.65vw, 82px); line-height: 1.09; letter-spacing: -3.6px; }
.hero h1 em { color: #91b1ff; }
.hero-description { max-width: 450px; color: #d8e0eb; }
.hero-bottom { bottom: 28px; }
.history-badge { position: absolute; z-index: 1; top: 32px; right: max(40px, calc((100vw - var(--container))/2)); width: 96px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid #ffffff9e; border-radius: 50%; background: #102138ba; color: #fff; text-align: center; line-height: 1.2; }
.history-mark { font-size: 32px; font-weight: 750; letter-spacing: -2px; }
.history-mark span { font-size: 17px; vertical-align: top; letter-spacing: 0; }
.history-badge > span:last-child { font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.expertise-strip { background: #eef2f7; }
.expertise-inner { padding-block: 24px; }
.expertise-inner i { width: 6px; height: 6px; border-radius: 50%; }
.company { overflow: hidden; }
.company-grid { grid-template-columns: 1.1fr .9fr; gap: 100px; }
.company-copy h2 { max-width: 570px; }
.company-copy .lead { margin-top: 30px; }
.company-visual { margin-left: 28px; padding-bottom: 26px; }
.company-visual > img { height: 540px; width: 100%; object-position: center 43%; }
.company-visual:before { width: 100px; height: 100px; border-width: 1px; right: -18px; top: -18px; }
.company-visual figcaption { left: -48px; bottom: 0; min-width: 330px; padding: 25px 28px; background: var(--navy); border-left: 3px solid var(--blue); }
.caption-number { font-size: 44px; letter-spacing: -2px; }
.services { background: #f3f5f7; }
.machining-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.machining-card { background: #fff; border: 1px solid #e0e5eb; border-radius: 7px; overflow: hidden; }
.machining-photo { position: relative; overflow: hidden; }
.machining-photo img { width: 100%; height: 310px; object-position: 50% 53%; transition: transform .7s ease; }
.machining-card:hover .machining-photo img { transform: scale(1.025); }
.machining-photo > span { position: absolute; bottom: 20px; left: 24px; color: #fff; background: #102138e8; border-radius: 3px; padding: 7px 12px; font-size: 12px; letter-spacing: 1px; }
.machining-copy { padding: 30px 34px 34px; }
.machining-copy h3 { font-size: 30px; font-weight: 550; letter-spacing: -.8px; }
.machining-copy p { margin: 14px 0 22px; color: var(--muted); line-height: 1.8; }
.supply-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; margin-top: 42px; padding: 38px 0 0; border-top: 1px solid #cbd5df; }
.supply-panel .eyebrow { margin-bottom: 16px; }
.supply-panel h3 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.35; letter-spacing: -.8px; }
.supply-panel p:not(.eyebrow) { color: var(--muted); line-height: 1.8; margin-bottom: 18px; }
.machines { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.machines::before { content: ''; position: absolute; width: 560px; height: 560px; border: 1px solid #ffffff08; border-radius: 50%; top: -310px; right: -180px; box-shadow: 0 0 0 65px #ffffff03, 0 0 0 130px #ffffff02; pointer-events: none; }
.machines h2 em { color: #91b1ff; }
.machines .section-heading > p { color: #bac7d8; }
.machine-feature { display: grid; grid-template-columns: 1fr 1.2fr 50px; align-items: center; gap: 8px 30px; background: #2459dc; border-radius: 7px; padding: 26px 32px; margin-bottom: 30px; }
.new-machine { font-size: 11px; letter-spacing: 1.5px; color: #d7e3ff; grid-column: 1; }
.machine-feature h3 { font-size: 27px; grid-column: 1; font-weight: 600; letter-spacing: -.5px; }
.machine-feature p { grid-column: 2; grid-row: 1 / 3; font-size: 16px; color: #e1eaff; max-width: 420px; }
.machine-feature a { grid-column: 3; grid-row: 1 / 3; display: grid; place-items: center; border: 1px solid #ffffff6e; border-radius: 50%; width: 46px; height: 46px; font-size: 24px; }
.machine-feature a:hover { background: #fff; color: var(--blue); }
.machine-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.machine-group { padding: 20px 0 0; }
.machine-group-title { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.machine-group-title > span { font-size: 12px; color: #8fabd6; }
.machine-group h3 { font-size: 25px; font-weight: 500; }
.machine-group ul { list-style: none; padding: 0; margin: 0; }
.machine-group li { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid #ffffff29; }
.machine-group strong { font-size: 16px; font-weight: 600; }
.machine-group li > span { color: #bac7d8; font-size: 15px; text-align: right; }
.machine-note { margin-top: 28px; padding-top: 28px; border-top: 1px solid #ffffff29; color: #bac7d8; font-size: 15px; }
.machine-note a { color: #fff; margin-left: 12px; text-decoration: underline; text-underline-offset: 5px; }
.machine-note a span { margin-left: 8px; color: #91b1ff; }
.quality-grid { grid-template-columns: 1fr 1fr; gap: 86px; }
.quality-image { padding: 0 0 35px; }
.quality-image > img { height: 500px; object-position: center; border-radius: 7px; }
.quality-image::after { display: none; }
.quality-note { display: flex; align-items: center; gap: 18px; position: absolute; bottom: 0; left: 24px; right: 24px; padding: 19px 22px; background: #eef2f7; border-radius: 5px; font-size: 11px; font-weight: 650; letter-spacing: 1px; }
.quality-note > span { color: var(--blue); font-size: 28px; line-height: 1; font-weight: 400; }
.quality-copy strong { color: var(--ink); font-weight: 650; }
.quality-facts { display: grid; grid-template-columns: .7fr 1.3fr; gap: 20px; margin: 28px 0 20px; padding-top: 23px; border-top: 1px solid var(--line); }
.quality-facts > span { color: var(--muted); font-size: 13px; }
.quality-facts strong { display: block; font-size: 20px; margin-bottom: 4px; font-weight: 600; }
.workshop { background: #0e1c2e; color: #fff; }
.workshop-grid { display: grid; grid-template-columns: .9fr 2fr; gap: 44px; align-items: center; }
.workshop h2 em { color: #91b1ff; }
.workshop-copy > p:not(.eyebrow) { color: #bac7d8; margin-top: 25px; line-height: 1.8; }
.workshop-copy .text-link { margin-top: 25px; font-size: 14px; gap: 14px; border-color: #ffffff42; }
.workshop-copy .text-link span { color: #91b1ff; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.video-card:nth-child(2) { margin-top: 36px; }
.video-card video { display: block; width: 100%; height: auto; aspect-ratio: 480 / 848; object-fit: contain; background: #09111c; border-radius: 6px; }
.video-card figcaption { display: flex; align-items: baseline; gap: 9px; margin-top: 14px; color: #bbc9dc; font-size: 12px; line-height: 1.65; }
.video-card figcaption span { color: #91b1ff; font-size: 11px; }
.gallery { background: var(--paper); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery-item { position: relative; display: block; width: 100%; aspect-ratio: 1.24; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #dce2e9; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.8,.2,1), filter .65s ease; }
.gallery-item::after { content: '↗'; position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #ffffff9e; border-radius: 50%; background: #102138a8; color: #fff; font-size: 19px; line-height: 1; opacity: 0; transform: translateY(5px); transition: opacity .25s ease, transform .25s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.07); filter: saturate(1.08); }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; transform: none; }
.photo-lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; box-shadow: none; overflow: hidden; }
.photo-lightbox::backdrop { background: transparent; backdrop-filter: none; }
.lightbox-shell { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: #07111ff2; backdrop-filter: blur(12px); opacity: 0; transition: opacity .35s ease; }
.photo-lightbox.is-open .lightbox-shell { opacity: 1; }
.lightbox-figure { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; padding: 70px 95px; opacity: 0; transform: translateY(16px) scale(.965); transition: opacity .42s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.photo-lightbox.is-open .lightbox-figure { opacity: 1; transform: none; }
.lightbox-image { display: block; width: auto; height: auto; max-width: calc(100vw - 190px); max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 3px; box-shadow: 0 25px 80px #0008; transition: filter .3s ease, transform .3s ease; }
.lightbox-figure.is-loading .lightbox-image { filter: blur(6px); transform: scale(1.012); }
.lightbox-count { position: absolute; z-index: 2; top: 28px; left: 32px; color: #e9f0fb; font-size: 14px; font-weight: 650; letter-spacing: 2px; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #ffffff59; border-radius: 50%; background: #ffffff10; color: #fff; font-size: 27px; line-height: 1; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--blue); border-color: var(--blue); transform: scale(1.06); }
.lightbox-close { top: 20px; right: 28px; font-size: 32px; font-weight: 300; }
.lightbox-prev { left: 26px; top: calc(50% - 24px); }
.lightbox-next { right: 26px; top: calc(50% - 24px); }
body.lightbox-open { overflow: hidden; }
.contact { background: #eaf0f8; color: var(--ink); }
.contact-grid { align-items: center; gap: 70px; }
.contact .eyebrow { color: var(--blue); }
.contact-copy h2 em { color: var(--blue); }
.contact-copy > p:not(.eyebrow) { max-width: 440px; color: #5e7087; }
.contact-cta { margin-top: 30px; }
.contact-card { display: grid; gap: 0; background: #fff; color: var(--ink); border: 1px solid #d8e1ed; border-radius: 8px; padding: 36px 40px; font-style: normal; }
.contact-card h3 { font-size: 26px; font-weight: 650; margin-bottom: 20px; }
.contact-card > div { display: grid; grid-template-columns: 90px 1fr; column-gap: 22px; padding: 19px 0; border-top: 1px solid var(--line); }
.contact-card > div > span { grid-row: span 2; font-size: 11px; color: var(--blue); font-weight: 750; letter-spacing: 1px; padding-top: 3px; }
.contact-card a, .contact-card p { font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--blue); }
.footer { padding-block: 48px 22px; }
.footer-main { display: grid; grid-template-columns: 310px minmax(0, 1fr); align-items: start; gap: clamp(40px, 6vw, 90px); padding-bottom: 42px; }
.footer-data { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 28px; align-items: start; padding-top: 5px; color: #c0ccdc; font-size: 14px; line-height: 1.8; }
.footer-data > * { min-width: 0; }
.footer-data address { font-style: normal; }
.footer-data span { display: block; margin-bottom: 12px; color: #90a8ca; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.footer-data a { text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.footer-data a:hover, .footer-bottom a:hover { color: #fff; }
.footer-bottom { align-items: center; border-top: 1px solid #ffffff26; padding-top: 20px; color: #93a5be; font-size: 13px; }
.footer-bottom .back-top { display: inline-flex; align-items: center; gap: 10px; width: auto; height: auto; margin: 0; border: 0; color: #c0ccdc; font-size: 13px; }
.footer-bottom .back-top:hover { background: none; }
.footer-bottom .back-top span { font-size: 19px; line-height: 1; }
@media (min-width: 1600px) {
  .hero { height: 710px; }
  .hero-content { padding-top: 132px; }
}
@media (max-width: 1100px) {
  .hero h1 { font-size: 64px; }
  .history-badge { right: 32px; }
  .company-grid { gap: 54px; }
  .company-visual { margin-left: 0; }
  .company-visual > img { height: 560px; }
  .company-visual figcaption { left: -20px; right: 0; min-width: 0; }
  .machining-photo img { height: 270px; }
  .machining-copy { padding: 25px; }
  .machine-feature { gap: 8px 24px; }
  .machine-feature h3 { font-size: 24px; }
  .machine-group li { flex-direction: column; gap: 4px; }
  .machine-group li > span { text-align: left; }
  .quality-grid { gap: 45px; }
  .workshop-grid { grid-template-columns: 1fr; gap: 38px; }
  .workshop-copy { max-width: 590px; }
  .video-grid { gap: 22px; }
  .video-card video { max-height: 480px; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-grid { gap: 36px; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .header .brand-logo { width: 220px; }
  .hero { height: 640px; }
  .hero-content { padding-top: 100px; }
  .hero-description { max-width: 380px; }
  .company-grid { grid-template-columns: 1fr; gap: 44px; }
  .company-visual { max-width: 660px; margin: 0 18px 0 20px; }
  .company-visual > img { height: 440px; object-position: 50% 42%; }
  .company-visual figcaption { right: auto; }
  .supply-panel { gap: 30px; }
  .quality-grid { gap: 35px; }
  .quality-facts { grid-template-columns: 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .header .brand-logo { width: min(200px, calc(100vw - 120px)); }
  .footer .brand-logo { width: min(250px, calc(100vw - 160px)); }
  .hero { height: auto; min-height: 780px; }
  .hero-image { inset: 0; width: 100%; height: 100%; object-position: 50% center; }
  .hero-shade { background: linear-gradient(90deg, #102138f2, #102138ad), linear-gradient(0deg, #102138d9, transparent); }
  .hero-content { padding-top: 65px; padding-bottom: 195px; }
  .hero h1 { font-size: clamp(43px, 9.8vw, 66px); letter-spacing: -2.3px; line-height: 1.14; }
  .hero-description { max-width: 380px; font-size: 17px; margin-top: 26px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero-bottom { bottom: 24px; }
  .hero-bottom > span { max-width: 46%; font-size: 10px; }
  .hero-bottom > a { font-size: 10px; gap: 12px; }
  .history-badge { top: auto; bottom: 106px; right: 22px; width: 82px; height: 82px; }
  .history-mark { font-size: 26px; }
  .history-mark span { font-size: 14px; }
  .history-badge > span:last-child { font-size: 8px; }
  .company-visual { margin: 0 12px 0 14px; padding-bottom: 30px; }
  .company-visual > img { height: 410px; }
  .company-visual figcaption { left: -14px; right: 0; padding: 23px; gap: 18px; }
  .caption-number { font-size: 37px; }
  .company-visual figcaption > span:last-child { font-size: 13px; }
  .machining-grid { grid-template-columns: 1fr; gap: 24px; }
  .machining-photo img { height: 260px; }
  .machining-copy { padding: 25px 24px 28px; }
  .machining-copy h3 { font-size: 28px; }
  .supply-panel { grid-template-columns: 1fr; gap: 22px; margin-top: 34px; padding-top: 30px; }
  .supply-panel h3 { font-size: 29px; }
  .machine-feature { grid-template-columns: 1fr 40px; padding: 24px; gap: 8px 14px; }
  .machine-feature h3 { font-size: 23px; }
  .machine-feature p { grid-row: 3; grid-column: 1 / -1; margin-top: 12px; }
  .machine-feature a { grid-column: 2; width: 40px; height: 40px; }
  .machine-columns { grid-template-columns: 1fr; gap: 24px; }
  .machine-group { padding-top: 10px; }
  .machine-group li { flex-direction: row; padding-block: 18px; }
  .machine-group li > span { text-align: right; font-size: 13px; max-width: 115px; }
  .machine-group strong { font-size: 15px; }
  .machine-note { font-size: 14px; }
  .machine-note a { display: inline-block; margin: 7px 0 0; }
  .quality-grid { grid-template-columns: 1fr; gap: 35px; }
  .quality-image > img { height: 350px; }
  .quality-note { left: 14px; right: 14px; padding: 17px; font-size: 9px; gap: 10px; }
  .quality-facts { grid-template-columns: .7fr 1.3fr; gap: 18px; }
  .quality-facts strong { font-size: 18px; }
  .workshop-grid { gap: 32px; }
  .video-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: thin; scrollbar-color: #7297e5 #24364c; }
  .video-card { scroll-snap-align: start; }
  .video-card:nth-child(2) { margin-top: 0; }
  .video-card video { max-height: none; }
  .video-card figcaption { font-size: 13px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-item { aspect-ratio: 1; }
  .gallery-item::after { top: 7px; right: 7px; width: 29px; height: 29px; font-size: 16px; }
  .lightbox-figure { padding: 78px 12px 100px; }
  .lightbox-image { max-width: calc(100vw - 24px); max-height: calc(100dvh - 178px); }
  .lightbox-count { top: 28px; left: 20px; }
  .lightbox-close { top: 18px; right: 18px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 24px; width: 46px; height: 46px; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
  .contact-card { padding: 28px 24px; }
  .contact-card h3 { font-size: 23px; }
  .contact-card > div { grid-template-columns: 1fr; gap: 7px; }
  .contact-card > div > span { grid-row: auto; }
  .contact-card a, .contact-card p { font-size: 16px; }
  .footer { padding-top: 38px; }
  .footer-main { gap: 30px; padding-bottom: 32px; }
  .footer-data { grid-template-columns: 1fr; gap: 20px; padding-top: 0; font-size: 14px; }
  .footer-data span { margin-bottom: 4px; }
  .footer-bottom { flex-direction: row; flex-wrap: wrap; gap: 15px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .machining-photo img, .gallery-item img, .gallery-item::after, .lightbox-shell, .lightbox-figure, .lightbox-image, .lightbox-close, .lightbox-prev, .lightbox-next { transition: none !important; animation: none !important; }
}
