/*
Theme Name: HTiA
Description: Tema a blocchi per la piattaforma multiagente HTiA.
Version: 2.1.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: htia
*/

@font-face{font-family:"HTiA Display";src:url("assets/BarlowCondensed-Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}
:root{--htia-ink:#101f33;--htia-copy:#344454;--htia-teal:#008f83;--htia-line:#dce3e1;--htia-paper:#f8faf9;--htia-white:#fff}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--htia-paper);color:var(--htia-ink)}
::selection{background:#bce9d7;color:var(--htia-ink)}
:where(a,button):focus-visible{outline:3px solid var(--htia-teal);outline-offset:4px}
:where(a){text-underline-offset:.22em;text-decoration-thickness:.08em}
.htia-shell{width:min(1440px,calc(100% - 2 * clamp(1.1rem,4vw,4rem)));margin-inline:auto}
.htia-site-header{position:sticky;z-index:20;top:0;border-bottom:1px solid var(--htia-line);background:rgb(248 250 249 / .96);backdrop-filter:saturate(130%) blur(12px)}
.admin-bar .htia-site-header{top:32px}
.htia-site-header>.wp-block-group{min-height:76px}
.htia-brand a{display:flex;min-height:44px;align-items:center}
.htia-brand img{display:block;width:116px;height:auto}
.htia-header-nav{gap:clamp(1.1rem,3vw,2.6rem)}
.htia-header-nav a{color:var(--htia-ink);font-weight:650;text-decoration:none}
.htia-header-cta .wp-block-button__link{display:flex;min-height:44px;align-items:center;font-weight:750}
.htia-home{overflow:hidden}
.htia-hero{display:grid;grid-template-columns:minmax(310px,.72fr) minmax(0,1.28fr);min-height:clamp(520px,68vh,720px);background:var(--htia-white);border-bottom:1px solid var(--htia-line)}
.htia-hero-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(3rem,7vw,7rem) clamp(1.25rem,5vw,5.5rem)}
.htia-hero-copy h1{max-width:7ch;margin:0;font-family:"HTiA Display",sans-serif;font-size:clamp(4.3rem,8.5vw,8rem);font-weight:700;line-height:.82;letter-spacing:-.025em;text-wrap:balance}
.htia-hero-copy>p{max-width:31ch;margin:1.8rem 0 2rem;color:var(--htia-copy);font-size:clamp(1.08rem,1.55vw,1.35rem);line-height:1.5}
.htia-hero-copy .wp-block-button__link{font-weight:750}
.htia-hero-visual{position:relative;min-height:100%;margin:0;overflow:hidden;background:#dfe8e5}
.htia-hero-photo{position:absolute;inset:0;width:100%;height:100%;margin:0}
.htia-hero-photo img{width:100%;height:100%;min-height:520px;display:block;object-fit:cover;object-position:64% center}
.htia-agent-presence{position:absolute;left:clamp(1.25rem,7vw,7rem);bottom:clamp(1.5rem,8%,4rem);display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.25rem .8rem;width:min(330px,calc(100% - 2.5rem));padding:.75rem .9rem;background:rgb(255 255 255 / .96);border-radius:14px;box-shadow:0 18px 48px rgb(16 31 51 / .22)}
.htia-agent-presence>figure{grid-row:1 / span 2;margin:0}
.htia-agent-presence img{width:52px;height:52px;display:block;border-radius:50%;object-fit:cover}
.htia-agent-presence strong,.htia-agent-presence span{display:block;line-height:1.18}
.htia-agent-presence span{margin-top:.18rem;color:#486055;font-size:.82rem}
.htia-agent-presence span::before{content:"";display:inline-block;width:.55rem;height:.55rem;margin-right:.38rem;border-radius:50%;background:var(--htia-teal)}
.htia-agent-tools{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:.38rem;margin:.42rem 0 0;padding:0;list-style:none}
.htia-agent-tools li{padding:.34rem .55rem;border:1px solid var(--htia-line);border-radius:999px;color:var(--htia-ink);background:var(--htia-paper);font-size:.75rem;font-weight:700;line-height:1}
.htia-sectors{padding:clamp(4rem,8vw,7.5rem) 0 clamp(4.5rem,9vw,8rem);background:var(--htia-paper)}
.htia-sectors-heading{width:min(1220px,calc(100% - 2 * clamp(1.1rem,4vw,4rem)));margin:0 auto clamp(2.2rem,5vw,4.5rem)}
.htia-sectors-heading h2{max-width:15ch;margin:0;font-family:"HTiA Display",sans-serif;font-size:clamp(3rem,6vw,6rem);line-height:.91;letter-spacing:-.02em;text-wrap:balance}
.htia-sector-grid{display:grid;grid-template-columns:.92fr 1.16fr .92fr;align-items:end;gap:clamp(.65rem,1.4vw,1.25rem);width:min(1440px,calc(100% - 2 * clamp(1.1rem,3vw,3rem)));margin-inline:auto}
.htia-sector{position:relative;min-height:clamp(330px,39vw,530px);overflow:hidden;background:#263647}
.htia-sector:nth-child(1){min-height:clamp(310px,35vw,475px)}
.htia-sector:nth-child(3){min-height:clamp(320px,37vw,500px)}
.htia-sector>figure,.htia-sector>figure img{width:100%;height:100%;margin:0}
.htia-sector>figure{position:absolute;inset:0}
.htia-sector>figure img{display:block;object-fit:cover;transition:transform .75s cubic-bezier(.22,1,.36,1)}
.htia-sector::after{content:"";position:absolute;inset:38% 0 0;background:linear-gradient(to bottom,transparent,rgb(7 17 29 / .88));pointer-events:none}
.htia-sector:hover>figure img{transform:scale(1.025)}
.htia-sector-info{position:absolute;z-index:2;right:clamp(1rem,2vw,1.7rem);bottom:clamp(1rem,2vw,1.7rem);left:clamp(1rem,2vw,1.7rem);display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.8rem;color:#fff}
.htia-sector-info>figure{grid-row:1 / span 2;width:54px;height:54px;margin:0;border:3px solid #fff;border-radius:50%;overflow:hidden;box-shadow:0 8px 24px rgb(0 0 0 / .25)}
.htia-sector-info>figure img{width:100%;height:100%;display:block;object-fit:cover}
.htia-sector-info h3{margin:0;color:#fff;font-family:inherit;font-size:clamp(1.18rem,1.7vw,1.55rem);line-height:1.1}
.htia-sector-info p{margin:.25rem 0 0;color:#e7efec;font-size:.92rem;line-height:1.35}
.htia-site-footer{padding:2.2rem 0;border-top:1px solid var(--htia-line);background:var(--htia-paper);color:var(--htia-copy);font-size:.9rem}

@media(max-width:900px){
  .htia-header-nav{display:none!important}
  .htia-hero{grid-template-columns:1fr;min-height:auto}
  .htia-hero-copy{padding-block:clamp(3rem,12vw,5.5rem)}
  .htia-hero-copy h1{font-size:clamp(4.2rem,18vw,7rem)}
  .htia-hero-visual{min-height:60vw}
  .htia-hero-photo img{min-height:60vw;object-position:58% center}
  .htia-agent-presence{left:1.1rem;bottom:1.1rem}
  .htia-sector-grid{grid-template-columns:repeat(3,minmax(78vw,1fr));align-items:stretch;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:1rem;scrollbar-color:var(--htia-teal) var(--htia-line)}
  .htia-sector,.htia-sector:nth-child(1),.htia-sector:nth-child(3){min-height:470px;scroll-snap-align:center}
}
@media(max-width:520px){
  .admin-bar .htia-site-header{top:46px}
  .htia-site-header>.wp-block-group{min-height:66px}
  .htia-brand img{width:96px}
  .htia-header-cta .wp-block-button__link{padding:.62rem .8rem;font-size:.82rem}
  .htia-hero-copy{padding:2.75rem 1.25rem 2.9rem}
  .htia-hero-copy h1{font-size:clamp(3.9rem,19vw,5.5rem)}
  .htia-hero-visual,.htia-hero-photo img{min-height:420px}
  .htia-agent-presence{right:1rem;left:1rem;bottom:1rem;width:auto}
  .htia-agent-presence img{width:46px;height:46px}
  .htia-sectors-heading h2{font-size:clamp(3.25rem,15vw,5rem)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.htia-sector>figure img{transition:none}}

