/*
Theme Name: Cocca Impianti
Version: 0.10.0
Description: Anteprima WordPress del concept approvato.
Text Domain: cocca-impianti
*/
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/font-1.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/font-2.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/font-3.ttf) format('truetype');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/font-4.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/font-5.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/font-6.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/font-7.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/font-8.ttf) format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/font-9.ttf) format('truetype');
}


:root{--red:#d9232e;--ink:#25272a}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;font-family:'DM Sans',Arial,sans-serif;color:var(--ink)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}a:focus-visible,button:focus-visible{outline:3px solid #f35c65;outline-offset:4px}.demo{padding:9px 5%;background:var(--ink);color:white;font-size:9px;letter-spacing:1.5px;display:flex;justify-content:space-between}.demo span{color:#bbb}header{padding:0 5%;height:96px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:#fff;z-index:10;border-bottom:1px solid #eee}.brand{font-size:23px;font-weight:800;letter-spacing:1px}.brand b{color:var(--red);font-weight:500}.brand small{display:block;font-size:7px;letter-spacing:1.2px;color:#777;margin-top:4px}nav{display:flex;align-items:center;gap:28px;font-size:12px}.outline{padding:15px 18px;border:1px solid #ddd}#menu{display:none}.hero{height:670px;position:relative;overflow:hidden;color:white}.hero>img{width:100%;height:100%;object-fit:cover;object-position:center 60%}.shade{position:absolute;inset:0;background:linear-gradient(90deg,#11171cdf,#11171c22),linear-gradient(0deg,#0005,transparent)}.hero-copy{position:absolute;top:68px;left:8%}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700}.hero .eyebrow:before{content:'';display:inline-block;width:25px;height:2px;background:var(--red);vertical-align:middle;margin-right:10px}h1,h2,h3{font-family:Manrope,Arial,sans-serif}h1{font-size:clamp(42px,4.8vw,70px);letter-spacing:-2.5px;line-height:1.12;font-weight:500;margin:25px 0}h1 em{font-style:normal;color:#ff5961}.hero-copy>p:not(.eyebrow){font-size:16px;line-height:1.8;color:#ddd}.button{display:inline-block;background:var(--red);border:0;color:white;padding:17px 24px;font-size:12px;margin-top:20px}.button:hover{background:#b61a24}.hero-bottom{position:absolute;bottom:26px;left:8%;right:7%;display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px}.hero-bottom span:nth-child(2){color:#ddd;letter-spacing:0}.wrap{padding:85px 8%}.red{color:var(--red)}h2{font-size:36px;line-height:1.3;letter-spacing:-1.2px;font-weight:500;margin:20px 0}h2 span{color:#8c8c8c}.heading{display:flex;align-items:center;justify-content:space-between;gap:40px;margin-bottom:30px}.heading>p{max-width:330px;font-size:13px;line-height:1.9;color:#777}.services{display:grid;grid-template-columns:repeat(3,1fr);border-left:1px solid #ddd;border-top:1px solid #ddd}.service{position:relative;padding:30px;border-right:1px solid #ddd;border-bottom:1px solid #ddd;min-height:220px}.service:hover{background:#f7f7f7}.service .number{float:right;font-size:10px;color:#999}.icon{font-size:29px;color:var(--red)}.service h3{font-size:17px;margin:18px 0 10px}.service p{font-size:12px;line-height:1.8;color:#777}.service a{position:absolute;inset:0}.smart{display:grid;grid-template-columns:1fr 1fr;background:var(--ink);color:white}.smart>.photo{position:relative;min-height:470px}.smart>.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.smart>.photo small{position:absolute;bottom:20px;left:20px;background:#2229;padding:7px;font-size:8px;letter-spacing:1px}.smart-copy{padding:60px 12%}.smart-copy .eyebrow,.contact .eyebrow{color:#ff646c}.smart-copy h2{font-size:33px}.smart-copy>p:not(.eyebrow){font-size:13px;line-height:1.9;color:#bbb}.text-link{display:inline-block;font-size:12px;padding:14px 0;border-bottom:1px solid var(--red)}.tags{font-size:8px;letter-spacing:1px;margin-top:35px;border-top:1px solid #ffffff25;padding-top:22px;color:#bbb}.history{display:grid;grid-template-columns:1fr 1fr;gap:80px}.history>div>p:not(.eyebrow){max-width:320px;color:#777;line-height:1.9;font-size:13px}.timeline article{display:flex;gap:30px;padding:24px 0;border-bottom:1px solid #ddd}.timeline strong{font-size:31px;font-weight:500;color:var(--red)}.timeline h3{font-size:15px;margin:3px 0 10px}.timeline p{font-size:12px;line-height:1.8;color:#777;margin:0}.projects{background:#f4f4f2}.filters{display:flex;gap:9px;margin:10px 0 25px;flex-wrap:wrap}.filters button{background:transparent;border:1px solid #ccc;padding:10px 15px;font-size:11px}.filters .active{background:var(--ink);color:white;border-color:var(--ink)}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.project{background:white;border:0;padding:0 0 15px;text-align:left;color:var(--ink)}.project img{width:100%;height:250px;object-fit:cover}.project small{display:block;padding:18px 18px 0;font-size:8px;letter-spacing:.5px;color:#777}.project h3{font-size:17px;font-weight:500;padding:0 18px}.project[hidden]{display:none}.contact{background:var(--ink);color:white;display:grid;grid-template-columns:1fr 1fr;gap:90px}.contact h2{font-size:39px}.contact>div>p:not(.eyebrow){color:#bbb;line-height:1.8;font-size:14px}.contact-note{margin-top:45px;border-top:1px solid #ffffff25;padding-top:25px;font-size:12px;max-width:300px}.contact-note p{color:#bbb;line-height:1.8}form{background:#fff;color:var(--ink);padding:32px}form h3{font-size:22px;margin:0 0 10px}.note{font-size:11px;color:#777;line-height:1.6}label{display:block;font-size:11px;margin-top:18px}input,select,textarea{width:100%;display:block;border:0;border-bottom:1px solid #ccc;background:white;border-radius:0;padding:11px 0;font-size:12px;color:var(--ink)}textarea{resize:vertical}form .button{width:100%;text-align:left}#status{font-size:12px;line-height:1.7;color:#a21b25}footer.wrap{padding-top:30px;padding-bottom:30px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:9px;color:#777}footer .brand{font-size:17px;color:var(--ink)}dialog{border:0;padding:24px;max-width:min(850px,90vw)}dialog::backdrop{background:#000c}dialog img{width:100%;max-height:65vh;object-fit:contain}dialog p{font-size:12px}#close{display:block;margin-left:auto;font-size:28px;background:white;border:0}@media(max-width:900px){nav{gap:15px;font-size:11px}.brand{font-size:19px}.wrap{padding:60px 6%}.history,.contact{gap:40px}h2{font-size:30px}.smart-copy{padding:40px 9%}.smart-copy h2{font-size:28px}.project img{height:210px}footer.wrap{flex-wrap:wrap}}@media(max-width:650px){header{height:78px;padding:0 6%}#menu{display:block;background:white;border:1px solid #ddd;padding:10px;font-size:11px}nav{display:none;position:absolute;top:78px;left:0;right:0;background:white;padding:25px;flex-direction:column;align-items:stretch;font-size:14px;gap:24px}nav.open{display:flex}.demo span{display:none}.hero{height:640px}.hero-copy{top:65px;left:7%}h1{font-size:43px;letter-spacing:-1.7px}.hero>img{object-position:65% center}.shade{background:linear-gradient(90deg,#11171cde,#11171c55)}.hero-bottom{left:7%;right:7%;font-size:8px;gap:15px}.hero-bottom a{display:none}.wrap{padding:50px 7%}.heading{display:block}h2{font-size:29px}.heading>p{max-width:none}.services{grid-template-columns:1fr 1fr}.service{padding:23px 17px;min-height:240px}.service h3{font-size:15px}.smart,.history,.contact{grid-template-columns:1fr}.smart>.photo{min-height:310px}.smart-copy{padding:40px 7%}.history{gap:15px}.gallery{grid-template-columns:1fr}.project img{height:270px}.contact{gap:25px}.contact h2{font-size:32px}form{padding:24px}footer p{width:100%;margin:0}html{scroll-padding-top:78px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Original Cocca Impianti brand assets, kept on a white background. */
.brand-header{display:flex;align-items:center;flex-shrink:0;line-height:0}
.brand-header .logo-full{display:block;width:250px;height:auto}
.brand-header .logo-mobile{display:none}
.brand-footer{display:block;line-height:0;flex-shrink:0}
.brand-footer img{display:block;width:220px;height:auto}
@media(min-width:651px) and (max-width:1000px){.brand-header .logo-full{width:210px}header nav{gap:14px}header .outline{padding:12px 10px}}
@media(max-width:650px){.brand-header .logo-full{display:none}.brand-header .logo-mobile{display:block;width:60px;height:60px;object-fit:contain}.brand-footer img{width:210px}footer.wrap{align-items:center}}
address.contact-note{font-style:normal}
.contact-note a{display:inline-block;line-height:2;text-decoration:underline;text-underline-offset:3px}
footer.wrap{flex-wrap:wrap;align-items:center}
.footer-details{font-style:normal;font-size:12px;line-height:1.8;display:flex;flex-direction:column}
.footer-details a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:650px){.footer-details{width:100%;padding:16px 0;border-top:1px solid #ddd}}

body.admin-bar header{top:32px}@media(max-width:782px){body.admin-bar header{top:46px}}.wp-page{max-width:1000px;margin:auto;padding:60px 24px;line-height:1.8}
.cocca-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}button:disabled{opacity:.6;cursor:not-allowed}form .note a{text-decoration:underline}.hero-copy{right:7%}
.services{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:650px){.services{grid-template-columns:repeat(2,minmax(0,1fr))}.service h3{overflow-wrap:anywhere}}
@media(max-width:400px){.services{grid-template-columns:1fr}}

.wp-page h1{font-size:clamp(32px,6vw,56px);letter-spacing:-1px;overflow-wrap:anywhere}.wp-page h2{font-size:clamp(24px,4vw,30px)}.wp-page a{text-decoration:underline;text-underline-offset:3px}
.social-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid #ddd;color:var(--ink);font-size:12px;white-space:nowrap}.social-link svg{flex:none}.social-link:hover{border-color:var(--red);color:var(--red)}
@media(min-width:851px){header .nav-social{width:44px;padding:0;flex-shrink:0}header .nav-social span{display:none}}@media(min-width:651px) and (max-width:850px){header{height:78px;padding:0 6%}#menu{display:block;background:white;border:1px solid #ddd;padding:10px;font-size:11px}header nav{display:none;position:absolute;top:78px;left:0;right:0;background:white;padding:25px;flex-direction:column;align-items:stretch;font-size:14px;gap:24px}header nav.open{display:flex}}
.knx-credential{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:20px;border-top:1px solid #ffffff25;border-bottom:1px solid #ffffff25;padding:22px 0;margin:25px 0 8px}.knx-logo{background:#fff;padding:12px}.knx-logo img{display:block;width:100%;height:auto}.knx-credential h3{margin:0 0 8px;font-size:17px;font-weight:500}.knx-credential p{margin:0;font-size:12px;line-height:1.7;color:#ccc}.knx-footer{flex:none;background:white;padding:8px}.knx-footer img{display:block;width:100px;height:auto}@media(max-width:1000px){.knx-credential{grid-template-columns:120px minmax(0,1fr);gap:15px}}@media(max-width:360px){.knx-credential{grid-template-columns:1fr}.knx-logo{max-width:150px}}
.hero-knx{position:absolute;top:32px;right:7%;width:126px;background:#fff;padding:12px;z-index:1}.hero-knx img{display:block;width:100%;height:auto}@media(max-width:650px){.hero-knx{top:20px;left:7%;right:auto;width:100px;padding:9px}.hero-copy{top:108px}}
