:root{color-scheme:light;--ink:#102d42;--muted:#577084;--teal:#087f88;--line:#dce6eb;--bg:#f4f8f9}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.5}
.topline{height:6px;background:linear-gradient(90deg,#087f88 0%,#37b2ac 46%,#bcdedb 100%)}
.page{max-width:1180px;margin:auto;padding:0 44px}
.masthead{height:112px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:14px}.brand-mark{display:grid;place-items:center;width:45px;height:45px;color:#087f88}.brand-mark svg{width:40px;height:40px}.brand-name{font-weight:750;line-height:1.12;font-size:19px;letter-spacing:-.035em}
.masthead-label,.eyebrow{font-size:12px;letter-spacing:.18em;font-weight:800;color:#397587}
.intro{position:relative;overflow:hidden;min-height:275px;display:flex;align-items:center;justify-content:space-between;padding:39px 0 37px}
.eyebrow{margin:0 0 11px}h1{margin:0;font-size:clamp(37px,5vw,61px);line-height:1.08;letter-spacing:-.058em;font-weight:760}h1 em{color:#087f88;font-style:normal}.intro-copy{margin:15px 0 0;color:var(--muted);font-size:17px}
.intro-decoration{width:205px;height:205px;margin-right:40px;flex:none;position:relative;transform:rotate(-20deg)}.intro-decoration span{position:absolute;inset:0;border:1px solid #b9d3dc;border-radius:32%;transform:rotate(0deg)}.intro-decoration span:nth-child(2){transform:rotate(30deg);border-color:#9dc8cc}.intro-decoration span:nth-child(3){transform:rotate(60deg);border-color:#75b5b9}.intro-decoration:after{content:"+";position:absolute;inset:0;display:grid;place-items:center;font-size:100px;font-weight:200;color:#087f88;transform:rotate(20deg)}
.app-section{margin:0 0 34px}.section-title{display:flex;align-items:center;gap:15px;margin-bottom:17px}.section-index{font-size:13px;font-weight:800;letter-spacing:.1em;color:var(--teal)}h2{font-size:17px;margin:0;letter-spacing:-.02em;font-weight:750;white-space:nowrap}.section-rule{height:1px;flex:1;background:var(--line)}
.app-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.app-card{display:flex;align-items:center;min-height:104px;gap:17px;padding:19px 20px;border:1px solid #e0e9ec;border-radius:12px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 2px 6px rgba(16,45,66,.025);transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease}.app-card:hover{transform:translateY(-2px);border-color:#8ec6c8;box-shadow:0 9px 24px rgba(16,45,66,.09)}.app-card:focus-visible{outline:3px solid #087f88;outline-offset:3px}.icon{display:grid;place-items:center;width:52px;height:52px;flex:none;border-radius:11px}.icon svg{width:29px;height:29px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.icon-teal{background:#e3f3f2;color:#087f88}.icon-blue{background:#e8f0fa;color:#326398}.icon-violet{background:#f0edf8;color:#6d5797}.icon-gold{background:#faf2df;color:#96712b}.card-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.card-copy strong{font-size:17px;line-height:1.2;letter-spacing:-.02em}.card-copy>span{color:var(--muted);font-size:14px}.arrow{margin-left:auto;align-self:flex-start;color:#498b95;font-size:22px;line-height:1;transition:transform .17s}.app-card:hover .arrow{transform:translate(2px,-2px)}
footer{display:flex;justify-content:space-between;gap:20px;margin-top:52px;padding:23px 0 33px;border-top:1px solid var(--line);color:#617888;font-size:13px}
@media(max-width:720px){.page{padding:0 20px}.masthead{height:86px}.masthead-label{display:none}.intro{min-height:215px;padding:31px 0}.intro-decoration{display:none}.app-grid{grid-template-columns:1fr}.app-section{margin-bottom:32px}.app-card{min-height:93px}footer{margin-top:38px}}
@media(max-width:420px){.brand-name{font-size:17px}h1{font-size:39px}.section-title{gap:9px}h2{font-size:15px}.card-copy strong{font-size:16px}.app-card{padding:16px;gap:13px}.icon{width:47px;height:47px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.app-card,.arrow{transition:none}}

/* PortaleSMC: avvio compatto, sfondo salvia, caselle colorate */
:root{--ink:#233c37;--muted:#52665e;--teal:#bd303b;--line:#a9c3ae;--bg:#c5d8ca}
body{background:var(--bg);color:var(--ink)}
.topline{height:4px;background:linear-gradient(90deg,#c92733,#da6a72 55%,#9fc3ab)}
.page{max-width:1280px}
.masthead{height:96px;border-bottom-color:#9ebaa5}
.brand-logo{display:block;width:330px;height:auto;max-height:79px;object-fit:contain;object-position:left center}
.masthead-label{color:#a73640}
.intro{min-height:72px;padding:15px 0 11px}
h1{font-size:clamp(24px,2.8vw,34px);line-height:1.15;letter-spacing:-.035em}
h1 em{color:#bd303b}
.app-section{margin:0 0 17px}
.section-title{gap:10px;margin-bottom:9px}
.section-index{color:#a73640;background:#f9e8e9;border-radius:7px;padding:5px 8px;line-height:1}
.section-rule{background:#a8c2ae}
.app-grid{gap:10px}
.section-amministrazione .app-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.app-card{--card-bg:#fff;--card-accent:#ad626a;min-height:77px;gap:10px;padding:10px 12px;background:var(--card-bg);border:1px solid #d1dbd3;border-left:4px solid var(--card-accent);box-shadow:0 2px 8px rgba(32,62,46,.045)}
.app-card:hover{border-color:var(--card-accent);box-shadow:0 7px 18px rgba(32,62,46,.11)}
.app-card:focus-visible{outline-color:var(--card-accent)}
.icon{width:42px;height:42px;border-radius:9px;background:rgba(255,255,255,.68);color:var(--card-accent)}
.icon svg{width:25px;height:25px}
.card-copy{gap:2px}
.card-copy strong{font-size:15px;line-height:1.2}
.card-copy>span{font-size:12px;line-height:1.25;color:#52665e}
.arrow{font-size:18px;color:var(--card-accent)}
.section-programmazione .app-card{--card-bg:#eae7f7;--card-accent:#795cb3}
.section-amministrazione .app-card:nth-child(1){--card-bg:#fbe5ea;--card-accent:#bf536d}
.section-amministrazione .app-card:nth-child(2){--card-bg:#e5eefb;--card-accent:#4b78b6}
.section-amministrazione .app-card:nth-child(3){--card-bg:#fbefd9;--card-accent:#a57b32}
.section-amministrazione .app-card:nth-child(4){--card-bg:#e4f2e6;--card-accent:#4b916a}
.section-amministrazione .app-card:nth-child(5){--card-bg:#e9f2f8;--card-accent:#397e9d}
.section-clinica .app-card:nth-child(1){--card-bg:#f9e2e4;--card-accent:#c33e4a}
.section-clinica .app-card:nth-child(2){--card-bg:#e2f1ef;--card-accent:#408b85}
.section-comunicazione .app-card{--card-bg:#f0e8f6;--card-accent:#8864a7}
footer{margin-top:13px;padding:13px 0 20px;color:#486252;border-top-color:#9ebaa5}
@media(max-width:1100px){.section-amministrazione .app-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.section-amministrazione .app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.page{padding:0 20px}.masthead{height:80px}.brand-logo{width:min(280px,70vw);max-height:68px}.intro{min-height:64px}.app-grid,.section-amministrazione .app-grid{grid-template-columns:1fr}.app-section{margin-bottom:19px}.app-card{min-height:70px}footer{margin-top:20px}}
@media(max-width:420px){.brand-logo{width:min(245px,75vw)}h1{font-size:26px}.section-title h2{white-space:normal;line-height:1.2}}

/* Accesso al terminale: evidenza su PC e tablet. */
.section-programmazione .app-card-terminale{
  --card-bg:#ffdc62;--card-accent:#263c37;
  background:linear-gradient(120deg,#ffe99b,#ffcf40);
  border:2px solid #263c37;border-left-width:6px;
  box-shadow:0 4px 12px rgba(38,60,55,.18);
}
.app-card-terminale .icon{background:#263c37;color:#fff;width:48px;height:48px;}
.app-card-terminale .card-copy strong{font-size:18px;font-weight:850;letter-spacing:.02em;color:#182c26;}
.app-card-terminale .card-copy>span{color:#263c37;font-size:13px;font-weight:600;}
.app-card-terminale .arrow{font-size:27px;font-weight:800;color:#182c26;}
.section-programmazione .app-card-terminale:hover{background:#ffcf40;border-color:#182c26;box-shadow:0 7px 18px rgba(38,60,55,.25);}
@media(max-width:420px){.app-card-terminale .card-copy strong{font-size:16px;}}

/* SMC Telefonate: tessera di accesso ai Richiami */
.section-accoglienza .app-card-telefonate{--card-bg:#e2f3ed;--card-accent:#197b68}
