/*
Theme Name: Iannelloinox International
Theme URI: https://iannelloinox.it/
Author: Concept by Codex
Description: Custom international WordPress theme starter for Iannelloinox dairy machinery website.
Version: 0.1.3
Text Domain: iannelloinox
*/

:root {
  color-scheme: light;
  --ink: #13171b;
  --muted: #606a73;
  --line: #d8dde1;
  --soft: #f4f6f7;
  --panel: #ffffff;
  --red: #d40016;
  --red-dark: #9d0010;
  --blue: #155d7a;
  --deep: #20272d;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(19, 23, 27, 0.08);
  backdrop-filter: blur(12px);
  transition: padding 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 9px;
  padding-bottom: 9px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(238, 244, 247, 0.9), rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 40px rgba(19, 23, 27, 0.12);
}

.brand img {
  width: 176px;
  height: auto;
  transition: width 220ms ease;
}

.site-header.is-scrolled .brand img {
  width: 140px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.language-select,
.lead-form select,
.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.language-select,
.lead-form select,
.lead-form input {
  height: 42px;
  padding: 0 12px;
}

.language-select {
  width: auto;
  min-width: 72px;
  font-weight: 700;
}

.lead-form textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .menu-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: var(--scroll-progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--red), #8bd8ea, var(--blue));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--red);
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0;
  white-space: nowrap;
}

.button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
}

.button-ghost {
  background: #fff;
  color: var(--ink);
  border-color: #9ba5ad;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background-color: #f8fafb;
  background-image:
    linear-gradient(90deg, rgba(248, 250, 251, 0.98) 0%, rgba(248, 250, 251, 0.94) 36%, rgba(248, 250, 251, 0.62) 58%, rgba(248, 250, 251, 0.08) 100%),
    url("assets/macchine_3.png");
  background-repeat: no-repeat;
  background-size: cover, min(74vw, 980px) auto;
  background-position: center, right 5vw center;
}

.hero {
  min-height: min(570px, calc(100vh - 112px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 4.8vw, 60px) clamp(20px, 5vw, 72px) 22px;
}

.page-hero {
  min-height: 440px;
  display: grid;
  align-items: end;
  padding: clamp(80px, 10vw, 132px) clamp(20px, 5vw, 72px) clamp(44px, 6vw, 70px);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(21, 93, 122, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 93, 122, 0.14) 1px, transparent 1px),
    linear-gradient(100deg, transparent 0%, transparent 46%, rgba(212, 0, 22, 0.15) 50%, transparent 54%, transparent 100%);
  background-size: 54px 54px, 54px 54px, 220% 100%;
  mix-blend-mode: multiply;
  opacity: 0.62;
  animation: scan-field 8s linear infinite;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.hero-copy,
.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.15;
}

.hero-text {
  max-width: 600px;
  color: #3f4b54;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-data,
.solution-grid,
.machine-grid,
.service-list,
.feature-grid,
.family-grid,
.process-grid,
.download-grid,
.visual-proof-grid {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.hero-data {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(880px, 100%);
  margin-top: clamp(22px, 3.4vw, 34px);
  border: 1px solid var(--line);
  background: var(--line);
}

.hero-data div {
  min-height: 72px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
}

.hero-data strong {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 22px;
}

.band {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.intro-grid,
.section-heading,
.page-intro,
.content-split,
.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

.intro-grid {
  grid-template-columns: 0.7fr 1.4fr 1fr;
}

.section-heading,
.page-intro,
.content-split,
.contact-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
}

.intro-grid p,
.section-heading p,
.page-intro p,
.content-block p,
.contact-band p {
  color: var(--muted);
  font-size: 17px;
}

.solution-band,
.dark-band {
  background: var(--deep);
  color: #fff;
}

.solution-band h2,
.solution-band .section-heading p,
.dark-band h2,
.dark-band h3,
.services-band h2 {
  color: #fff;
}

.solution-grid,
.machine-grid,
.feature-grid,
.family-grid,
.process-grid,
.download-grid,
.visual-proof-grid {
  display: grid;
  gap: 18px;
}

.solution-grid,
.machine-grid,
.feature-grid,
.family-grid,
.process-grid,
.download-grid,
.visual-proof-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid,
.family-grid,
.download-grid,
.visual-proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.solution-tile,
.machine-card,
.feature-panel,
.process-step,
.machine-family,
.download-item,
.visual-proof-card {
  min-width: 0;
  border-radius: 6px;
}

.solution-tile {
  min-height: 230px;
  padding: 28px;
  background: #252d33;
  transition: background 160ms ease, transform 160ms ease;
}

.solution-tile:hover,
.machine-card:hover {
  transform: translateY(-2px);
}

.solution-tile span {
  display: block;
  margin-bottom: 44px;
  color: #9ed6e8;
  font-weight: 900;
}

.solution-tile strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
}

.solution-tile small {
  color: #c9d3d8;
}

.machines-band,
.contact-band {
  background: var(--soft);
}

.machine-toolbar {
  max-width: var(--max);
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #3c464e;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  border-color: var(--red);
  color: var(--red);
}

.machine-card,
.feature-panel,
.process-step,
.machine-family,
.download-item,
.visual-proof-card,
.lead-form {
  border: 1px solid var(--line);
  background: #fff;
}

.machine-card {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.machine-card[hidden] {
  display: none;
}

.machine-card:hover {
  border-color: rgba(21, 93, 122, 0.34);
  box-shadow: 0 18px 38px rgba(19, 23, 27, 0.1);
}

.machine-card img,
.machine-family img,
.detail-media img,
.visual-proof-card img,
.feature-panel img,
.process-step img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.machine-card div,
.feature-panel,
.process-step,
.machine-family,
.download-item,
.visual-proof-card div {
  padding: 24px;
}

.visual-proof-card {
  overflow: hidden;
}

.visual-proof-card p,
.feature-panel p,
.process-step p,
.machine-family p,
.download-item span {
  color: var(--muted);
}

.machine-card p {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.machine-card span,
.contact-details a {
  color: var(--blue);
  font-weight: 900;
}

.machine-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.machine-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(21, 93, 122, 0.2);
  border-radius: 6px;
  background: #f4f8fa;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.machine-detail-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 44px;
  align-items: start;
}

.iaevo-section {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 34px;
  align-items: center;
  padding: clamp(62px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.services-band {
  background: #101418;
  color: #fff;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.service-list div {
  min-height: 180px;
  padding: 26px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.service-list strong,
.feature-panel > strong,
.download-item strong {
  display: block;
  margin-bottom: 8px;
}

.service-list strong::after,
.feature-panel > strong::after,
.download-item strong::after {
  content: ":";
}

.service-list span,
.dark-band p,
.dark-band li {
  color: #c7d0d6;
}

.dark-band .feature-panel,
.dark-band .process-step {
  background: #171e24;
  border-color: rgba(255, 255, 255, 0.16);
}

.dark-band .feature-panel img,
.dark-band .process-step img {
  background: #10161b;
  border-color: rgba(255, 255, 255, 0.16);
}

.international-band {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 44px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.language-grid span {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 800;
}

.lead-form {
  max-width: 560px;
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 6px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: #39444c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.spec-list {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.spec-list dt,
.spec-list dd {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.spec-list dd {
  border-left: 1px solid var(--line);
  color: var(--muted);
}

.cta-strip {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(21, 93, 122, 0.22);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 248, 0.94));
}

.site-footer {
  padding: clamp(48px, 6vw, 76px) clamp(20px, 5vw, 72px) 26px;
  background: linear-gradient(180deg, #141a1f 0%, #0d1115 100%);
  color: #cbd3d8;
  font-size: 14px;
}

.site-footer img {
  width: 158px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand,
.footer-nav {
  display: grid;
  gap: 28px;
}

.footer-brand {
  grid-template-columns: minmax(220px, 0.64fr) minmax(280px, 1fr) minmax(260px, 0.86fr);
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand h2 {
  margin: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.1;
}

.footer-brand p,
.footer-nav a,
.footer-bottom {
  color: #aebbc3;
}

.footer-brand address {
  display: grid;
  gap: 8px;
  color: #e9eef1;
  font-style: normal;
}

.footer-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 34px 0;
}

.footer-nav div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-nav h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
}

.footer-nav a {
  display: block;
  text-align: left;
}

.footer-nav a[dir="rtl"] {
  direction: rtl;
  text-align: left;
  unicode-bidi: isolate;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@keyframes scan-field {
  from {
    background-position: 0 0, 0 0, 170% 0;
  }

  to {
    background-position: 0 0, 0 0, -70% 0;
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .intro-grid,
  .section-heading,
  .page-intro,
  .content-split,
  .contact-grid,
  .machine-detail-grid,
  .iaevo-section,
  .international-band {
    grid-template-columns: 1fr;
  }

  .solution-grid,
  .machine-grid,
  .service-list,
  .feature-grid,
  .family-grid,
  .process-grid,
  .download-grid,
  .visual-proof-grid,
  .footer-brand,
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 12px 16px;
  }

  .brand img {
    width: 144px;
  }

  .site-header.is-scrolled .brand img {
    width: 118px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(19, 23, 27, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 44px rgba(19, 23, 27, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 13px 12px;
    border-radius: 6px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .button-small {
    display: none;
  }

  .hero,
  .page-hero {
    min-height: auto;
    background-size: cover, 125vw auto;
    background-position: center, right -32vw bottom 42px;
  }

  h1 {
    font-size: 34px;
    line-height: 1;
  }

  .solution-grid,
  .machine-grid,
  .service-list,
  .feature-grid,
  .family-grid,
  .process-grid,
  .download-grid,
  .visual-proof-grid,
  .language-grid,
  .footer-brand,
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .hero-data {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-data div,
  .solution-tile,
  .service-list div {
    min-height: 0;
  }

  .spec-list,
  .cta-strip {
    grid-template-columns: 1fr;
  }

  .spec-list dd {
    border-left: 0;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
