/* Rosario Graziano – Agenzia di rappresentanze */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --sand: #efe9e1;
  --ink: #23201c;
  --muted: #6b645b;
  --line: #e2dbd1;
  --accent: #9c5b3c;
  --accent-dark: #7d4529;
  --radius: 10px;
  --wrap: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 10px; top: 10px; }

.eyebrow {
  display: block;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .8em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 20px;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand:hover { color: var(--ink); }
.brand strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.brand span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: .95rem;
}
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 12px; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex; align-items: flex-end;
  color: #fff;
  background: #2a2622 center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 17, 14, .78) 0%, rgba(20, 17, 14, .45) 50%, rgba(20, 17, 14, .1) 85%),
    linear-gradient(180deg, transparent 50%, rgba(20, 17, 14, .45) 100%);
}
.hero h1, .hero p { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }

@media (max-width: 700px) {
  .hero::before { background: rgba(20, 17, 14, .6); }
}
.hero .wrap { position: relative; padding-top: 80px; padding-bottom: 56px; }
.hero .eyebrow { color: #f1d9c8; }
.hero p { font-size: 1.15rem; max-width: 560px; opacity: .95; }
.hero--small { min-height: 380px; }

.btn {
  display: inline-block;
  padding: 13px 24px; border-radius: 999px;
  background: var(--accent); color: #fff;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--accent);
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Sezioni ---------- */

.section { padding: 88px 0; }
.section--sand { background: var(--sand); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px; align-items: center;
}
.about figure { margin: 0; }
.about img { border-radius: var(--radius); width: 100%; max-width: 420px; }
.about .role { color: var(--muted); font-style: italic; margin-top: -.4em; }

@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about img { max-width: 320px; }
}

/* Card settori */
.sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sector {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); color: #fff; text-decoration: none;
  aspect-ratio: 4 / 3; background: #2a2622;
}
.sector img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sector:hover img { transform: scale(1.04); }
.sector::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(20, 17, 14, .85) 100%);
}
.sector h3, .sector span { text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.sector div { position: absolute; left: 28px; right: 28px; bottom: 24px; z-index: 1; }
.sector h3 { font-size: 1.7rem; margin-bottom: .2em; }
.sector span { font-size: .95rem; opacity: .9; }
.sector:hover { color: #fff; }

@media (max-width: 700px) {
  .sectors { grid-template-columns: 1fr; }
}

/* Marchi */
.brands { display: grid; gap: 28px; }
.brand-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.brand-logo {
  display: flex; align-items: center; justify-content: center;
  height: 160px; padding: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
.brand-logo--dark { background: #000; border-color: #000; }
.brand-logo--grey { background: #4a4a4a; border-color: #4a4a4a; }
.brand-logo img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.brand-card h3 { margin-bottom: .4em; }
.brand-card p { color: #3d3833; }
.brand-card .tag { font-size: .85rem; color: var(--muted); margin: -.3em 0 .8em; }
.brand-card .more { font-weight: 600; font-size: .95rem; text-decoration: none; }
.brand-card .more:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .brand-card { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .brand-logo { height: 130px; }
}

/* Contatti */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; }
.contact-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.contact-item h3 { font-size: 1.15rem; margin-bottom: .5em; }
.contact-item p { color: var(--muted); margin-bottom: .7em; }
.contact-item a { font-weight: 600; word-break: break-word; }
.social { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.cta {
  text-align: center; max-width: 640px; margin: 0 auto;
}
.cta p { color: var(--muted); font-size: 1.08rem; }
.cta .btn-row { justify-content: center; }

.zones { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.zones li {
  background: var(--surface); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 999px; font-size: .9rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #23201c; color: #cfc7bd;
  padding: 56px 0 32px; font-size: .95rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid #3a352f;
}
.footer-grid strong { display: block; color: #fff; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; margin-bottom: 6px; }
.footer-grid h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid ul a { color: #cfc7bd; text-decoration: none; }
.footer-grid ul a:hover { color: #fff; }
.footer-legal { padding-top: 24px; font-size: .85rem; color: #998f84; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.contact-item address { font-style: normal; color: var(--ink); }
