/* ItaliaAutomazioni home: promise and sector choice, programs, one 3D example, sectors, method. */
.home-immersive {
  --scene-paper: #f4f5f2;
  --scene-forest: #164f3d;
  --scene-ink: #123d33;
  --scene-nav: 64px;
  --green: var(--scene-forest);
  --color-action: var(--scene-forest);
  --color-action-hover: #103c2e;
  --cream: var(--scene-paper);
  background: var(--scene-paper);
}
.home-immersive ::selection { background: #d2e6d9; color: #103c2e; }
.home-immersive { scrollbar-color: #6d897c var(--scene-paper); }
.home-immersive a, .home-immersive button, .home-immersive select { -webkit-tap-highlight-color: #d2e6d9; }
.home-immersive :focus-visible { outline: 3px solid #ba5b19; outline-offset: 5px; }
.home-immersive .btn { border-radius: 5px; box-shadow: none; transition: background .2s var(--ease), color .2s var(--ease); }
.home-immersive .btn:hover { transform: none; box-shadow: none; }
.home-immersive #nav, .home-immersive #nav.stuck {
  height: var(--scene-nav); padding: 0; background: var(--scene-paper); border: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.home-immersive #nav .wrap { height: 100%; max-width: none; padding: 0 4.9%; }
.home-immersive #nav .logo-svg { height: 48px; padding: 0; }
.home-immersive .nav-links { flex: 0 1 auto; gap: 28px; }
/* unified nav: all main links visible */
.home-immersive .nav-links > li:last-child { margin-left: 0; }
.home-immersive .nav-links a, .home-immersive .nav-drop-btn { color: #1b302b; }
.home-immersive .nav-links .btn { color: white; padding: 12px 24px !important; }
.home-immersive main { padding-top: var(--scene-nav); }

/* Hero: the everyday problem (photo), the promise and the sector choice. */
.journey-intro { position: relative; }
.journey-stage { position: relative; overflow: hidden; isolation: isolate; background: #173a34; min-height: min(49.5vw, 820px); display: flex; align-items: center; }
.scene-photo { position: absolute; inset: 0; overflow: hidden; z-index: -2; }
.scene-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 70% center; }
.journey-stage::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(10,38,31,.9), rgba(10,38,31,.72) 36%, rgba(10,38,31,.12) 62%, transparent 76%); }
.journey-copy { position: relative; padding: 52px 0; margin-left: 4.9%; color: #fff; width: min(620px, 46%); }
.journey-copy h1 { font-size: clamp(40px, 4.7vw, 74px); font-weight: 800; line-height: 1.03; letter-spacing: -.035em; }
.journey-copy h1 span { display: block; }
.journey-copy h1 span + span { margin-top: .12em; color: #9fd0b9; }
.journey-copy > p { margin-top: 22px; max-width: 46ch; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; color: #eef4ef; }
.hero-sectors { margin-top: 26px; }
.hero-sectors > p { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #cfe2d5; }
.hero-sectors ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hero-sectors a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 6px; background: rgba(244,245,242,.96); color: var(--scene-ink); font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s var(--ease); }
.hero-sectors a:hover { background: #d8e9dd; }
.hero-sectors .hero-sectors-all { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.hero-sectors .hero-sectors-all:hover { background: rgba(255,255,255,.12); }
.hero-sectors svg { width: 16px; height: 16px; }
.scene-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; font-weight: 600; }
.scene-link svg { width: 18px; height: 18px; flex: 0 0 auto; transition: transform .2s var(--ease); }
.scene-link:hover svg { transform: translateX(4px); }
.journey-copy .hero-call { margin-top: 14px; color: #fff; font-size: 15px; }

/* Programs strip: one continuous line of logos; it stops on hover and stays still with reduced motion. */
.home-programs { padding: 36px 0 34px; background: var(--scene-paper); color: var(--scene-ink); overflow: hidden; }
.programs-intro { max-width: 1320px; margin: 0 auto; padding: 0 4.9%; text-align: center; }
.programs-intro h2 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.programs-marquee { margin-top: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.programs-track { display: flex; width: max-content; animation: programs-scroll 55s linear infinite; }
.programs-marquee:hover .programs-track { animation-play-state: paused; }
.programs-list { list-style: none; display: flex; align-items: center; gap: 40px; padding-right: 40px; flex-shrink: 0; }
.programs-list li { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 15px; font-weight: 600; color: #2c4337; }
.programs-list img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.programs-list .is-wide img { width: auto; height: 26px; }
/* Square files with a thin wordmark in the middle: show only the central band. */
.programs-list .is-crop img { width: 120px; height: 30px; object-fit: cover; }
@keyframes programs-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .programs-marquee { -webkit-mask-image: none; mask-image: none; padding: 0 4.9%; }
  .programs-track { display: block; width: auto; animation: none; }
  .home-programs .programs-list { flex-wrap: wrap; justify-content: center; gap: 14px 28px; padding-right: 0; }
  .programs-list[aria-hidden="true"] { display: none; }
}

/* Sectors: the whole range visible at a glance. */
.journey-sector-picker { padding: 64px 4.9%; background: var(--scene-paper); scroll-margin-top: var(--scene-nav); }
.journey-sector-picker .picker-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); align-items: start; gap: 28px 56px; max-width: 1320px; margin: 0 auto; }
.journey-sector-picker h2 { font-size: clamp(28px, 3vw, 42px); color: var(--scene-ink); }
.journey-sector-picker p { margin-top: 12px; color: #44594c; max-width: 43ch; }
.home-sector-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.home-sector-grid a { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 14px 16px; border: 1px solid #ccd8cd; border-radius: 8px; background: #fff; color: var(--scene-ink); text-decoration: none; transition: border-color .2s var(--ease), background .2s var(--ease); }
.home-sector-grid a:hover { border-color: var(--scene-forest); background: #f2f7f1; }
.sector-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: #e3efe9; color: var(--scene-forest); transition: background .2s var(--ease), color .2s var(--ease); }
.sector-icon svg { width: 20px; height: 20px; }
.home-sector-grid a:hover .sector-icon { background: var(--scene-forest); color: #fff; }
.sector-text { display: grid; gap: 3px; min-width: 0; }
.home-sector-grid strong { font-size: 15px; line-height: 1.3; }
.sector-desc { font-size: 12px; line-height: 1.4; color: #52695b; }
.journey-sector-picker .home-sector-alternatives { margin-top: 16px; font-size: 15px; }
.home-sector-alternatives a { text-decoration: underline; text-underline-offset: 4px; color: var(--scene-forest); font-weight: 600; }
.home-stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #ccd8cd; max-width: 420px; }
.home-stats li { display: grid; gap: 4px; align-content: start; }
.home-stats strong { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: clamp(40px, 3.6vw, 54px); line-height: .9; color: var(--scene-forest); font-variant-numeric: tabular-nums; }
.home-stats span { font-size: 13px; line-height: 1.3; color: #52695b; }

/* Method: four step cards; the short FAQ follows the final CTA. */

.home-faq { padding: 72px 4.9% 80px; background: #e7ece5; color: var(--scene-ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 28px 64px; }
.home-faq > * { min-width: 0; }
.home-faq-intro, .home-faq-list { max-width: 880px; }
.home-faq-intro { justify-self: end; width: 100%; max-width: 420px; padding-top: 18px; }
.home-faq h2 { font-size: clamp(26px, 2.6vw, 38px); }
.home-faq-intro p { margin-top: 10px; font-size: 16px; color: #3f5a4c; }
.home-faq-intro .scene-link { margin-top: 10px; color: var(--scene-forest); }
.home-faq-list { border-top: 1px solid #b9c9bc; }
.home-faq details { border-bottom: 1px solid #b9c9bc; }
.home-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 18px 0; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--scene-forest); transition: transform .2s var(--ease); }
.home-faq details[open] summary svg { transform: rotate(45deg); }
.home-faq details p { padding-bottom: 20px; max-width: 62ch; font-size: 16px; line-height: 1.55; color: #3f5a4c; }

.home-immersive .cta-final { background: var(--scene-forest); color: #fff; padding: 84px 24px; text-align: center; }
.home-immersive .cta-final h2 { font-size: clamp(32px,4vw,56px); letter-spacing: -.035em; }
.home-immersive .cta-final p { color: #e2eee5; margin-top: 14px; font-size: 18px; }
.home-immersive .cta-final-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 28px; }
.home-immersive .cta-final .btn svg { width: 18px; height: 18px; }
.home-immersive .cta-final .btn-primary { background: #f4f5f2; color: #103c2e; }
.home-immersive .cta-final .btn-primary:hover { background: #d8e9dd; }
.home-immersive .cta-final .scene-link { color: #fff; }
.home-immersive footer { background: var(--scene-paper); }
.home-immersive footer, .home-immersive .foot-col a, .home-immersive .foot-bottom a { color: #334e40; }
.home-immersive footer .logo-svg, .home-immersive .foot-col h4 { color: var(--scene-ink); }
.home-immersive footer .logo-svg .lm-g { fill: var(--scene-forest); }
.home-immersive footer .logo-svg .lm-gs { stroke: var(--scene-forest); }
.home-immersive .foot-brand p { color: #44594b; }
.home-immersive .foot-col a:hover, .home-immersive .foot-bottom a:hover { color: #103c2e; }
.home-immersive .foot-bottom { color: #44594b; border-color: #c4d1c6; }
.home-immersive footer .foot-wrap { max-width: 1320px; }
.home-immersive .mob-sticky-cta { border-radius: 6px; }

@media (min-width: 901px) and (max-width: 1100px) {
  .home-immersive { --scene-nav: 50px; }
  .home-immersive #nav .logo-svg { height: 44px; }
  .home-immersive .nav-links { gap: 18px; }
  .home-immersive .nav-links .btn { min-height: 36px; padding: 10px 18px !important; font-size: 12px; }
  .journey-copy { width: 54%; }
}
@media (max-width: 900px) {
  .home-immersive { --scene-nav: 66px; }
  .home-immersive #nav .wrap { padding: 0 24px; }
  .home-immersive .nav-links { display: none; }
  .home-immersive .burger { display: flex; }
  .journey-stage { min-height: 0; align-items: flex-start; }
  .scene-photo img { object-position: 72% center; }
  .journey-stage::after { background: linear-gradient(180deg, rgba(10,38,31,.94), rgba(10,38,31,.88) 55%, rgba(10,38,31,.7)); }
  .journey-copy { width: auto; margin: 0; padding: 36px 24px 32px; }
  .journey-copy h1 { font-size: clamp(36px, 7vw, 60px); max-width: 630px; }
  .journey-copy > p { margin-top: 16px; font-size: 16px; }
  .hero-sectors { margin-top: 20px; }
  .hero-sectors ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-sectors a { justify-content: center; text-align: center; padding: 8px 10px; font-size: 14px; line-height: 1.25; width: 100%; height: 100%; }
  .hero-sectors li:last-child { grid-column: 1 / -1; }
  .journey-copy .hero-call { margin-top: 8px; font-size: 14px; }
  .journey-sector-picker { padding: 48px 24px; }
  .journey-sector-picker .picker-layout { grid-template-columns: 1fr; gap: 24px; }
  .home-sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-faq { grid-template-columns: 1fr; gap: 16px; padding: 52px 24px 60px; }
  .home-faq-intro { justify-self: start; max-width: none; padding-top: 0; }
  .home-immersive .cta-final { padding: 60px 24px; }
}
@media (max-width: 480px) {
  .journey-copy h1 { font-size: clamp(33px, 9.4vw, 44px); }
  .programs-list { gap: 28px; padding-right: 28px; }
  .programs-list li { font-size: 14px; }
  .home-sector-grid { grid-template-columns: 1fr; }
  .home-sector-grid a { padding: 12px 14px; }
  .home-faq summary { font-size: 16px; padding: 16px 0; }
  .home-immersive .cta-final-buttons { flex-direction: column; align-items: center; }
}
