/*
Theme Name: AVANTI PSI NETTUNO
Theme URI: https://www.avantipsinettuno.it
Author: AVANTI PSI NETTUNO
Description: Tema originale AVANTI PSI NETTUNO, navigazione e archivio di atti consiliari. La pubblicazione AI/social richiede integrazioni esterne.
Version: 1.5.0
Requires at least: 6.0
Text Domain: avanti-psi-nettuno
*/
:root{--red:#ed1024;--deep:#a90924;--ink:#15202b;--green:#168642;--muted:#65727d;--line:#e8edf0;--soft:#f7f8fa}*{box-sizing:border-box}body{margin:0;color:var(--ink);font:15px/1.58 system-ui,-apple-system,'Segoe UI',Arial,sans-serif;background:#fff}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input,textarea{font:inherit}button{cursor:pointer}.wrap{max-width:1240px;padding:0 23px;margin:auto}.smallhead{background:#ae001c;color:white;font-size:11px;letter-spacing:.09em}.smallhead .wrap{padding-block:7px;display:flex;justify-content:space-between;gap:12px}.head{display:flex;align-items:center;gap:14px;min-height:99px}.brand{display:flex;align-items:center;gap:13px;min-width:0}.brand img.psi{width:68px;height:68px;object-fit:contain}.brand img.avanti{width:118px;height:67px;object-fit:contain}.brand-divider{height:52px;border-left:1px solid #d7dce2}.brand-name{border-left:1px solid #d7dce2;padding-left:17px;white-space:nowrap}.brand-name b{display:block;color:var(--red);font-weight:900;font-size:20px;line-height:1.15}.brand-name small{display:block;font-weight:600;color:#313b45;font-size:12px}nav{margin-left:auto;display:flex;align-items:center;gap:14px;flex-wrap:wrap}nav a{font-size:12px;font-weight:700;white-space:nowrap}nav a:hover,nav a:focus{color:var(--red)}.toggle{display:none;background:white;border:1px solid var(--line);border-radius:7px;padding:9px 13px;margin-left:auto}.hero{color:white;background:linear-gradient(110deg,#97021a 0%,#cf0928 56%,#f11831 100%);position:relative;overflow:hidden}.hero:before{content:'';position:absolute;width:92%;height:120%;left:-33%;top:-50%;transform:rotate(-13deg);background:#8c001c66}.hero .wrap{position:relative;min-height:420px;display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:25px}.hero h1{font-size:clamp(49px,6vw,87px);line-height:.95;letter-spacing:-.055em;margin:15px 0 12px;font-weight:950}.hero h2{font-size:clamp(21px,2.5vw,33px);line-height:1.12;margin:0 0 22px}.hero p{font-size:18px;max-width:560px}.eyebrow{text-transform:uppercase;letter-spacing:.22em;font-size:11px;font-weight:750}.hero-art{width:100%;max-width:380px;justify-self:center;filter:drop-shadow(0 20px 20px #69021f50)}.hero-art img{width:100%;max-height:265px;object-fit:contain;background:#fff;border-radius:30px;padding:30px}.accent{height:7px;background:linear-gradient(90deg,#e6112b 0 45%,white 45% 75%,#188544 75%)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--red);color:#fff;border:1px solid var(--red);border-radius:7px;padding:11px 16px;font-weight:800;font-size:13px}.btn:hover{background:#bb041e}.btn-outline{background:transparent;border-color:white;color:white}.btn-outline:hover{background:#fff2}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-top:22px}.feature,.card,.paper,.dash-card{border:1px solid var(--line);border-radius:9px;background:white;box-shadow:0 5px 19px #1111}.feature{display:flex;gap:15px;padding:18px;min-height:105px;border-bottom:4px solid var(--red)}.feature:nth-child(even){border-bottom-color:var(--green)}.feature .symbol{font-size:28px;color:var(--red)}.feature b{display:block;font-size:14px}.feature p{font-size:12px;color:var(--muted);margin:3px 0}.section{padding:45px 0}.soft{background:var(--soft)}.section-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.section-title h2{font-size:26px;margin:0;line-height:1.2}.section-title h2:after{content:'';display:block;background:var(--red);width:44px;height:3px;margin-top:12px}.section-title a{color:var(--red);font-weight:750;font-size:13px}.columns{display:grid;grid-template-columns:1.7fr 1fr;gap:25px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.card{overflow:hidden;display:flex;flex-direction:column}.cover{height:135px;background:linear-gradient(128deg,#a50024,#ee2542);display:grid;place-items:center;color:white;font-size:53px}.card-body{padding:16px;flex:1}.card h3{font-size:17px;line-height:1.28;margin:8px 0}.card p,.paper p{font-size:13px;color:var(--muted)}.card small,.meta{font-size:11px;color:#ac0c24;font-weight:700;text-transform:uppercase;letter-spacing:.045em}.read{color:var(--red);font-size:13px;font-weight:800}.paper{padding:22px}.paper h3{margin:0 0 10px}.mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.dash-card{padding:15px}.dash-card strong{display:block;font-size:13px}.dash-card p{font-size:12px;margin:4px 0;color:var(--muted)}.notice{border-left:4px solid #cf1430;background:#fff5f6;padding:13px 17px;margin:19px 0;font-size:13px;color:#79313d}.pagehero{background:linear-gradient(125deg,#af0c28,#e21830);color:white;padding:49px 0}.pagehero h1{font-size:39px;margin:0}.pagehero p{max-width:730px}.listing{display:grid;gap:15px}.item{padding:22px;border:1px solid var(--line);border-radius:9px;background:white}.item h2{margin:5px 0;font-size:22px}.item p{color:var(--muted)}.content-body{max-width:790px;margin:auto;padding:45px 23px}.content-body p{line-height:1.8}.tag{font-size:11px;padding:5px 9px;background:#eef6f0;color:#236838;border-radius:99px;font-weight:700}.footer{background:#9c061d;color:#fff;padding:37px 0 20px}.footer-grid{display:grid;grid-template-columns:2fr 1fr;gap:20px}.footer p,.footer a{color:#f9cfd4;font-size:13px}.footer a{display:block;margin:6px 0}.bottom{font-size:11px;border-top:1px solid #ffffff40;margin-top:24px;padding-top:14px}.searchbox{padding:10px;border:1px solid #ccd3dc;max-width:100%;border-radius:7px}.archive-list .item{margin-bottom:12px}.sr-only{position:absolute;left:-10000px}@media(max-width:1100px){.head{flex-wrap:wrap;padding-block:14px}.toggle{display:block}nav{display:none;flex-basis:100%;margin:0;padding:12px;border:1px solid var(--line)}nav.open{display:flex;flex-direction:column;align-items:flex-start}.columns{grid-template-columns:1fr}}@media(max-width:700px){.brand img.psi{width:48px;height:48px}.brand img.avanti{width:80px;height:48px}.brand-name b{font-size:16px}.brand-name small{font-size:10px}.brand-divider{height:35px}.brand-name{padding-left:8px}.head{gap:6px}.hero .wrap{grid-template-columns:1fr;padding-block:35px;min-height:auto}.hero-art{display:none}.features,.cards,.mini-grid,.footer-grid{grid-template-columns:1fr}.section{padding:30px 0}.smallhead{font-size:9px}}
/* 1.2: panorama personalizzabile senza codice */
.hero .wrap{max-width:1320px;grid-template-columns:minmax(0,1.08fr) minmax(0,0.92fr)}
.hero-art.hero-photo{max-width:none;width:100%;height:345px;align-self:stretch;display:flex;align-items:stretch;position:relative;overflow:hidden;filter:none;border-radius:0;box-shadow:-15px 0 60px #79001a44}
.hero-art.hero-photo img{background:none;padding:0;border-radius:0;max-height:none;width:100%;height:100%;object-fit:cover;object-position:center}
.hero-photo:after{content:"";position:absolute;inset:auto 0 0 0;height:55%;background:linear-gradient(transparent, #7a0a229c);pointer-events:none}
.hero-photo-caption{position:absolute;bottom:24px;right:23px;color:#fff;font-weight:800;font-style:italic;font-size:clamp(17px,2vw,27px);text-align:right;max-width:280px;line-height:1.25;z-index:1;text-shadow:0 2px 6px #0008}
.hero-image-hint{font-size:11px;color:#ffe6e9;text-align:center;padding:8px 0}
@media(max-width:700px){.hero .wrap{grid-template-columns:1fr}.hero-art.hero-photo{display:flex;height:230px;margin-top:12px}.hero-photo-caption{font-size:17px}.hero-art.hero-logo{display:none}}


/* 1.3: fusione foto-contesto nella hero */
.hero{background:linear-gradient(112deg,#8f001d 0%,#c80828 48%,#f11831 100%)}
.hero:after{content:"";position:absolute;right:34%;top:-8%;width:260px;height:120%;background:linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.86) 16%, rgba(22,134,66,.72) 30%, rgba(237,16,36,.45) 52%, rgba(237,16,36,0) 82%);transform:skewX(-18deg);filter:blur(2px);opacity:.85;pointer-events:none;z-index:0}
.hero .wrap > *{position:relative;z-index:1}
.hero .wrap{gap:0}
.hero .wrap > div:first-child{padding:50px 34px 50px 0}
.hero-art.hero-photo{height:390px;box-shadow:none;position:relative;isolation:isolate}
.hero-art.hero-photo::before{content:"";position:absolute;inset:0;z-index:1;background: linear-gradient(90deg, rgba(143,0,29,1) 0%, rgba(143,0,29,.97) 7%, rgba(143,0,29,.92) 13%, rgba(143,0,29,.78) 21%, rgba(143,0,29,.48) 30%, rgba(143,0,29,.16) 39%, rgba(143,0,29,0) 50%), linear-gradient(0deg, rgba(143,0,29,.16), rgba(143,0,29,.16));
 pointer-events:none}
.hero-art.hero-photo::after{content:"";position:absolute;left:-36px;top:-6%;width:110px;height:112%;z-index:2;background:linear-gradient(180deg, rgba(255,255,255,.96) 0 33%, rgba(22,134,66,.92) 33% 66%, rgba(237,16,36,.88) 66% 100%);transform:skewX(-16deg);box-shadow:0 0 20px rgba(255,255,255,.15);opacity:.88;pointer-events:none}
.hero-art.hero-photo img{filter:saturate(1.02) contrast(1.02) brightness(.93)}
.hero-photo-caption{bottom:26px;right:26px;background:rgba(0,0,0,.08);backdrop-filter:blur(1px);padding:12px 14px;border-radius:10px;max-width:320px}
.hero-art.hero-logo{max-width:420px}
.hero-art.hero-logo img{box-shadow:0 20px 40px rgba(80,0,15,.25)}
@media(max-width:980px){.hero:after{right:27%;width:180px}.hero-art.hero-photo{height:330px}.hero-art.hero-photo::after{left:-26px;width:85px}}
@media(max-width:700px){.hero:after{display:none}.hero .wrap > div:first-child{padding:0}.hero-art.hero-photo{height:245px;margin-top:18px;border-radius:14px;overflow:hidden}.hero-art.hero-photo::after{left:-16px;width:58px}.hero-art.hero-photo::before{background:linear-gradient(180deg, rgba(143,0,29,.28), rgba(143,0,29,.28)),linear-gradient(0deg, rgba(0,0,0,.18), rgba(0,0,0,.18))}}

/* Coordinamento homepage v1.4 — priorità anche sul CSS aggiuntivo v1.3 */
body .smallhead{display:none}body .wrap{width:90%;max-width:1500px;padding-inline:0}body .head{padding-block:12px;min-height:90px}body .hero{background:linear-gradient(125deg,#950017,#d60022 65%,#f61933);overflow:hidden}body .hero:after{display:none}body .hero:before{inset:0;width:100%;height:100%;transform:none;background:repeating-linear-gradient(145deg,transparent 0 150px,#ffffff09 150px 230px,transparent 230px 380px)}body .hero .wrap{display:block;min-height:350px;padding-block:38px}body .hero .wrap>div:first-child{width:58%;position:relative;z-index:3;padding:0}body .hero h1{font-size:clamp(34px,4.2vw,72px);letter-spacing:-.035em;line-height:1.02;margin:16px 0 8px}body .hero h2{font-size:clamp(20px,2.1vw,34px)}body .hero p{max-width:540px}body .hero-art.hero-photo{display:block;position:absolute;inset:0 -6% 0 auto;width:62%;max-width:none;height:100%;margin:0;clip-path:polygon(31% 0,100% 0,100% 100%,0 100%);filter:none;border-radius:0}body .hero-art.hero-photo img{width:100%;height:100%;object-fit:cover;mask-image:none;-webkit-mask-image:none;opacity:1}body .hero-art.hero-photo:before{display:none}body .hero-art.hero-photo:after{inset:0;width:100%;height:100%;transform:none;background:linear-gradient(100deg,#a0002244,transparent 50%),linear-gradient(0deg,#071b3655,transparent 65%)}body .hero-photo-caption{z-index:2;right:6%;bottom:28px;font:italic 25px Georgia,serif;max-width:280px;text-align:right;text-shadow:0 2px 6px #0008}body .features{grid-template-columns:repeat(6,minmax(0,1fr));margin-top:12px;gap:12px}body .feature{position:relative;padding:18px 12px 28px;gap:10px;min-height:112px}body .feature:after{content:'→';position:absolute;right:12px;bottom:7px;background:#fff0f2;border-radius:50%;width:23px;text-align:center;color:#a50024}body .feature b{font-size:13px}body .feature p{font-size:12px}body .columns{grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr)}body .section{padding-block:24px}body .cover{height:140px;min-height:140px;flex:0 0 140px;position:relative;overflow:hidden;display:block}body .cover img{display:block;width:100%;height:100%!important;object-fit:cover}body .card-body{position:relative;background:white}body .redazione-link{display:block;margin-top:10px;color:#e60022;font-weight:700;font-size:13px}body .secretariat{border:1px solid #f2dfe3;border-radius:12px;background:linear-gradient(#fff0f3,#fff);padding:12px}body .secretariat .paper{background:transparent!important;border:0;box-shadow:none;padding:8px 10px}body .secretariat .mini-grid{margin-top:12px}body .dash-card a{display:block;color:#e50020;font-weight:700;font-size:12px;margin-top:10px}body .secretariat .notice{font-size:11px;border:0;background:transparent;margin:10px 0 0;padding:5px}body .footer{background:linear-gradient(120deg,#910019,#d80024)}body .footer a{color:white}body .footer .bottom{font-size:11px}body a:focus-visible,body button:focus-visible{outline:3px solid #007a3d;outline-offset:4px}
@media(min-width:1101px){body .toggle{display:none}body #mainnav{display:flex}}
@media(max-width:1100px){body .features{grid-template-columns:repeat(3,minmax(0,1fr))}body .columns{grid-template-columns:1fr}body .hero h1{font-size:44px}}
@media(max-width:700px){body .brand{width:100%;min-width:0}body .brand-name,body .brand-name b,body .brand-name small{white-space:normal;min-width:0}body .brand img{flex-shrink:0}body .hero .wrap{padding:30px 0 250px;min-height:0}body .hero .wrap>div:first-child{width:100%}body .hero h1{font-size:38px}body .hero h2{font-size:21px}body .hero p{font-size:16px}body .hero-art.hero-photo{inset:auto -6% 0;width:112%;height:225px;clip-path:polygon(0 10%,100% 0,100% 100%,0 100%)}body .hero-photo-caption{font-size:20px;bottom:18px}body .features{grid-template-columns:repeat(2,minmax(0,1fr))}body .cards{grid-template-columns:1fr}body .mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body .footer-grid{grid-template-columns:1fr}body .feature{padding:14px 10px 28px}body .cover{height:190px;min-height:190px;flex-basis:190px}}

body #mainnav{gap:12px}body #mainnav a{font-size:12px}body .skip-link{position:absolute;left:10px;top:-100px;z-index:99999;background:#fff;color:#a00020;padding:12px}body .skip-link:focus{top:10px}body .content-body{width:90%;padding-inline:0}body .content-body a{color:#b50022;text-decoration:underline}
