/* Effeci Securline, sito corporate. Nessun framework, nessun font esterno.
   Palette presa dal logo: blu notte, oro, bordeaux. */
:root {
  --ink: #14192b;
  --navy: #0a1730;
  --navy-deep: #050c1e;
  --gold: #d9a93a;
  --gold-text: #8f6712;
  --it-green: #008c45;
  --it-white: #f4f1ea;
  --it-red: #cd212a;
  --gold-light: #f0c859;
  --burg: #8c0f24;
  --ivory: #f6f3ec;
  --rule: #e4ded1;
  --muted: #566074;
  --white: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.7;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--burg); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
@media (min-width: 720px) { .wrap { padding: 0 36px; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }

/* Icone: tratto unico, in un riquadro tenue */
.ico {
  width: 46px; height: 46px; padding: 11px; flex: none; border-radius: 11px;
  background: rgba(217,169,58,.15); color: var(--navy);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ico.sm { width: 24px; height: 24px; padding: 0; background: none; border-radius: 0; color: var(--gold-text); }
.ico.lg { width: 64px; height: 64px; padding: 15px; border-radius: 14px; }
.head { display: flex; gap: 14px; align-items: center; }
.head h3 { margin: 0; }

/* Filetto tricolore: richiamo del marchio */
.tricolor { height: 4px; background: linear-gradient(90deg, var(--it-green) 0 33.34%, var(--it-white) 33.34% 66.67%, var(--it-red) 66.67%); }

/* Barra superiore: rimando al sito dei servizi */
.topbar { background: var(--navy-deep); color: #aeb8cf; font-size: .8125rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 2px 28px; justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--white); font-weight: 600; text-decoration-color: rgba(255,255,255,.35); }
.topbar a:hover { color: var(--gold-light); }

/* Intestazione */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); line-height: 1; }
.brand:hover { color: var(--navy); }
.brand-mark { height: 46px; width: auto; display: block; }
.brand-text b { display: block; font: 700 1.1rem/1 var(--sans); letter-spacing: .16em; }
.brand-text i { display: block; font: 600 .625rem/1 var(--sans); font-style: normal; letter-spacing: .38em; color: var(--gold-text); margin-top: 6px; }

.nav-toggle {
  display: none; font: inherit; font-size: .9rem; font-weight: 600; background: none; color: var(--navy);
  border: 1px solid var(--rule); border-radius: 8px; padding: 8px 14px; cursor: pointer;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 30px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--gold); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); font-weight: 700; }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-block; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white);
    border-bottom: 1px solid var(--rule); padding: 8px 22px 18px; box-shadow: 0 18px 24px -18px rgba(10,21,48,.4); }
  .js .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 2px; }
  .nav a { display: block; padding: 10px 0; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav { width: 100%; }
}

/* Briciole di pane */
.crumbs { font-size: .8125rem; color: var(--muted); padding-top: 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rule); }
.crumbs a { color: var(--muted); }

/* Tipografia */
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.18; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); letter-spacing: -.012em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.005em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.125rem; line-height: 1.65; max-width: 62ch; color: #38425a; }
.prose { max-width: 64ch; }
.muted { color: var(--muted); }
.intro { max-width: 62ch; margin-bottom: 36px; color: var(--muted); }
.eyebrow { font: 600 .75rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 18px; }
.hero .eyebrow, .section.dark .eyebrow { color: var(--gold-light); }

/* Sezioni */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.tint { background: var(--ivory); border-top: 0; }
.section.tint + .section { border-top: 0; }
.section.dark { background: var(--navy-deep); color: #b9c2d8; border-top: 0; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark a { color: var(--gold-light); }
.section.dark a:hover { color: var(--white); }
.section.dark h2::before { content: ""; display: block; width: 56px; height: 4px; margin-bottom: 20px; background: linear-gradient(90deg, var(--it-green) 0 33.34%, var(--it-white) 33.34% 66.67%, var(--it-red) 66.67%); }
.section.dark .ico { background: rgba(240,200,89,.12); color: var(--gold-light); }
.page-head { padding: 24px 0 8px; }
.page-head h1 { max-width: 22ch; }
.page-head h1::before { content: ""; display: block; width: 44px; height: 3px; background: var(--gold); margin-bottom: 22px; }

/* Hero della home: blu notte, testo a sinistra, tre punti fermi a destra */
.hero {
  background: radial-gradient(760px 380px at 88% -10%, rgba(217,169,58,.20), transparent 62%), radial-gradient(640px 320px at 0% 108%, rgba(140,15,36,.34), transparent 66%), var(--navy-deep);
  color: #c4ccdf; padding: 80px 0 128px;
}
.hero-grid { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 72px; } }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 18ch; }
.hero .lead { color: #c4ccdf; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 34px; }
.hero-actions a:not(.btn) { color: var(--white); text-decoration-color: rgba(255,255,255,.4); }
.hero-actions a:not(.btn):hover { color: var(--gold-light); }
.hero .ico { background: rgba(240,200,89,.12); color: var(--gold-light); }

.pillars { list-style: none; margin: 0; padding: 6px 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.035); }
.pillars li { display: grid; grid-template-columns: 46px 1fr; gap: 0 16px; padding: 22px 0; }
.pillars li + li { border-top: 1px solid rgba(255,255,255,.1); }
.pillars strong { display: block; color: var(--white); font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.pillars span { font-size: .9375rem; color: #aab4cc; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--navy); color: var(--white);
  font-weight: 600; font-size: .9375rem; padding: 13px 22px; border-radius: 10px; text-decoration: none;
  transition: background-color .2s ease, transform .2s ease, color .2s ease;
}
.btn::after { content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 7h11M8 2l5 5-5 5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1 7h11M8 2l5 5-5 5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s ease; }
.btn:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-1px); }
.btn:hover::after { transform: translateX(3px); }
.btn.gold { background: var(--gold-light); color: var(--navy-deep); }
.btn.gold:hover { background: var(--white); color: var(--navy-deep); }

/* Collegamento verso servizisicurezza.net */
a.out { font-weight: 600; }
a.out::after { content: " \2197"; font-weight: 400; }

/* Schede */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 28px 26px 24px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 18px 30px -22px rgba(10,21,48,.45); }
.card .ico { margin-bottom: 20px; }
.card h3 { margin-bottom: .45em; }
.card p { font-size: .9688rem; color: #3d4760; }
.card .card-link { margin: auto 0 0; padding-top: 10px; font-size: .9375rem; }
.section-foot { margin: 30px 0 0; }

/* Elenchi a righe (attività, rete) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows > li { display: grid; gap: 14px 48px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 800px) { .rows > li { grid-template-columns: 1fr 2fr; } }
.rows p { margin: 0 0 .6em; }
.rows p:last-child { margin-bottom: 0; }
.rows-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--navy); margin: 48px 0 16px; }
.rows-title:first-child { margin-top: 0; }

/* Sequenza vera: il metodo di lavoro */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; max-width: 820px; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 72px 1fr; gap: 0 12px; padding: 30px 0; border-top: 1px solid var(--rule); }
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps > li::before { content: counter(step, decimal-leading-zero); font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--gold-text); line-height: 1.1; }
.steps .head h3 { margin: 0; }
.steps p { margin: .7em 0 0; }

/* Metodo in sintesi, in home */
.flow { list-style: none; counter-reset: f; margin: 0 0 32px; padding: 0; display: grid; gap: 34px 36px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li { counter-increment: f; border-top: 1px solid var(--rule); padding-top: 22px; position: relative; }
.flow li::before { content: ""; position: absolute; left: 0; top: -2px; width: 40px; height: 3px; background: var(--gold); }
.flow-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.flow-top::after { content: counter(f, decimal-leading-zero); font-family: var(--serif); font-size: 1.5rem; color: var(--gold-text); }
.flow h3 { margin-bottom: .35em; }
.flow p { margin: 0; font-size: .9688rem; color: #3d4760; }

/* Blocco con icona a lato */
.split { display: grid; gap: 22px 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .split { grid-template-columns: 64px 1fr; } }
.section.dark .prose { color: #b9c2d8; }

/* Persone */
.people { display: grid; gap: 36px 56px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .people { grid-template-columns: 1fr 1fr; } }
.person { padding-top: 22px; border-top: 1px solid var(--rule); position: relative; }
.person::before { content: ""; position: absolute; left: 0; top: -2px; width: 40px; height: 3px; background: var(--gold); }
.person .head { margin-bottom: 6px; }
.person .role { color: var(--muted); margin-bottom: 1em; font-size: .9375rem; }

/* Dati societari e contatti */
.facts { margin: 0; max-width: 780px; }
.facts .row { display: grid; gap: 2px 32px; padding: 14px 0; border-top: 1px solid var(--rule); }
.facts .row:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 640px) { .facts .row { grid-template-columns: 230px 1fr; } }
.facts dt { color: var(--muted); display: flex; gap: 10px; align-items: center; font-size: .9375rem; }
.facts dd { margin: 0; font-weight: 600; }

.address { font-style: normal; }

/* Percorsi di fine pagina */
.routes { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 840px) { .routes { grid-template-columns: repeat(3, 1fr); } }
.routes a.more { font-weight: 600; }

/* Piè di pagina */
.site-footer { background: var(--navy-deep); color: #aab4cc; padding: 64px 0 28px; font-size: .9375rem; border-top: 4px solid; border-image: linear-gradient(90deg, var(--it-green) 33.34%, var(--it-white) 33.34% 66.67%, var(--it-red) 66.67%) 1; }
.site-footer a { color: var(--white); text-decoration-color: rgba(255,255,255,.3); }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
.site-footer .brand { color: var(--white); margin-bottom: 18px; }
.site-footer .brand:hover { color: var(--white); }
.site-footer .brand-text i { color: var(--gold-light); }
.foot-title { font: 600 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .875rem; }
.legal p { margin: 0; }

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero { padding: 56px 0 60px; }
  .brand-mark { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn::after, .card { transition: none; }
}

/* Due siti in evidenza, appoggiati al bordo inferiore della testata */
.sites { position: relative; z-index: 2; padding-bottom: 8px; }
.sites .cards { margin-top: -72px; }
.card.site { border-top: 3px solid var(--gold); box-shadow: 0 30px 44px -28px rgba(10,21,48,.55); padding-top: 30px; }
.card.site .eyebrow { margin: 0 0 8px; }
.card.site h3 { font-size: 1.6rem; margin-bottom: .4em; }
.card.site p { font-size: 1rem; }
.card.site .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 640px) { .hero { padding-bottom: 104px; } .sites .cards { margin-top: -56px; } }

/* Testi legali */
.doc { max-width: 70ch; }
.doc h2 { font-size: 1.35rem; margin: 2.2em 0 .5em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; margin: 1.4em 0 .4em; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: .3em; }

/* servizi.network: logo nelle pagine interne */
.cards.one { grid-template-columns: 1fr; }
.sites .cards.one { max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.netlink { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.netlink img, .netnote > img { flex: none; width: 44px; height: 44px; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 4px; }
.netnote { display: flex; gap: 20px; align-items: flex-start; }
.netnote > div > h2 { margin-top: 0; }
.netnote.small { gap: 14px; align-items: center; margin-top: 14px; font-size: .9375rem; color: var(--muted); }
.netnote.small img { width: 40px; height: 40px; }
@media (max-width: 520px) { .netnote:not(.small) { flex-direction: column; } }
