/* Sito di esempio "Muro Maestro" – impresa edile. Stile moderno: petrolio, sabbia, corallo, Space Grotesk. */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("edilizia/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("edilizia/space-grotesk-latin-700-normal.woff2") format("woff2"); }

.de { --petrolio:#0F4C5C; --notte:#0B2D36; --sabbia:#EDE4D3; --sabbia-chiara:#F7F3EC; --corallo:#E2725B; --inchiostro:#13262B; --tenue:#5A6A6E;
	font-family: Inter, system-ui, sans-serif; color: var(--inchiostro); background: var(--sabbia-chiara); line-height: 1.6; }
.de * { box-sizing: border-box; }
.de a { color: inherit; }
.de h1, .de h2, .de h3 { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; letter-spacing: -.025em; line-height: 1.05; margin: 0; color: var(--inchiostro); }
.de h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.de h3 { font-size: 1.3rem; letter-spacing: -.01em; }
.de p { margin: .6rem 0 0; }
.de-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.de-sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.de-sec--sabbia { background: var(--sabbia); }
.de-sec--petrolio { background: var(--petrolio); color: #CFE0E3; }
.de-sec--petrolio h2, .de-sec--petrolio h3 { color: #fff; }
.de-num { font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: .95rem; color: var(--corallo); margin: 0 0 .6rem; display: flex; gap: .6rem; align-items: center; }
.de-num b { display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1.5px solid currentColor; font-size: .85rem; }
.de-lead { color: var(--tenue); font-size: 1.12rem; max-width: 38em; }
.de-sec--petrolio .de-lead { color: #A9C3C8; }
.de section[id] { scroll-margin-top: 120px; }

/* Barra + intestazione fisse */
.de-top { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.de-top .md-demo-bar { position: static; }
.de-head { background: rgb(247 243 236 / .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgb(15 76 92 / .12); }
.de-head .de-wrap { display: flex; align-items: center; gap: 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.de-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.de-brand > span { width: 40px; height: 40px; border-radius: 10px; background: var(--petrolio); display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 8px; }
.de-brand > span i { background: var(--sabbia); border-radius: 1px; }
.de-brand > span i:nth-child(2) { background: var(--corallo); }
.de-brand b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; }
.de-brand small { display: block; font-size: .75rem; color: var(--tenue); margin-top: .2rem; }
.de-nav { display: flex; gap: .2rem; }
.de-nav a { text-decoration: none; font-weight: 600; font-size: .93rem; padding: .5rem .8rem; border-radius: 8px; color: var(--inchiostro); }
.de-nav a:hover { background: var(--sabbia); }
.de-nav a.is-active { background: var(--petrolio); color: #fff; }
.de-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.02rem; text-decoration: none; padding: .85rem 1.35rem; border-radius: 10px; border: 0; cursor: pointer; }
.de-btn svg { width: 20px; height: 20px; flex: none; }
.de a.de-btn--corallo, .de button.de-btn--corallo { background: var(--corallo); color: var(--inchiostro); }
.de a.de-btn--corallo:hover { background: #E98A76; }
.de a.de-btn--petrolio { background: var(--petrolio); color: #fff; }
.de a.de-btn--petrolio:hover { background: var(--notte); }
.de a.de-btn--linea { background: transparent; color: var(--inchiostro); box-shadow: inset 0 0 0 1.5px rgb(19 38 43 / .3); }
.de a.de-btn--linea:hover { box-shadow: inset 0 0 0 1.5px var(--inchiostro); }
.de-head .de-btn { padding: .6rem 1rem; font-size: .95rem; }
.de-burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--petrolio); color: #fff; cursor: pointer; place-items: center; }
.de-burger svg { width: 22px; height: 22px; }

/* Hero a collage */
.de-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.de-hero .de-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.de-hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); }
.de-hero h1 mark { background: linear-gradient(transparent 62%, rgb(226 114 91 / .55) 62%); color: inherit; padding: 0 .05em; }
.de-hero p { font-size: 1.15rem; color: var(--tenue); max-width: 31em; }
.de-hero .de-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.de-collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: .8rem; aspect-ratio: 1 / .95; }
.de-collage img { width: 100%; height: 100% !important; object-fit: cover; display: block; border-radius: 16px; }
.de-collage img:first-child { grid-row: span 2; }
.de-collage figure { margin: 0; position: relative; }
.de-collage figure:first-child { grid-row: span 2; }
.de-collage figcaption { position: absolute; left: .7rem; top: .7rem; background: var(--inchiostro); color: #fff; font-family: "Space Grotesk", sans-serif; font-size: .8rem; font-weight: 700; padding: .25rem .6rem; border-radius: 6px; }
.de-collage figure:last-child figcaption { background: var(--corallo); color: var(--inchiostro); }
.de-strip { border-top: 1px solid rgb(15 76 92 / .15); border-bottom: 1px solid rgb(15 76 92 / .15); }
.de-strip .de-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.de-strip .de-wrap > div { padding: 1.4rem 0; }
.de-strip .de-wrap > div + div { padding-left: 1.5rem; border-left: 1px solid rgb(15 76 92 / .15); }
.de-strip b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 2rem; letter-spacing: -.03em; color: var(--petrolio); line-height: 1; }
.de-strip span { font-size: .9rem; color: var(--tenue); }

/* Servizi a pannelli */
.de-panels { display: flex; gap: .7rem; margin-top: 2.5rem; height: 420px; }
.de-panel { flex: 1; position: relative; border-radius: 18px; overflow: hidden; background: var(--notte) center / cover no-repeat; color: #fff; transition: flex .45s ease; cursor: pointer; border: 0; padding: 0; text-align: left; font: inherit; min-width: 0; }
.de-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 45 54 / .1) 30%, rgb(11 45 54 / .88) 100%); }
.de-panel > div { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; }
.de-panel h3 { color: #fff; font-size: 1.4rem; white-space: nowrap; }
.de-panel p { color: #D7E6E8; font-size: .95rem; opacity: 0; max-height: 0; transition: opacity .3s .1s, max-height .3s; overflow: hidden; }
.de-panel em { display: inline-block; margin-top: .6rem; font-style: normal; font-weight: 700; font-size: .82rem; background: var(--corallo); color: var(--inchiostro); padding: .2rem .55rem; border-radius: 6px; opacity: 0; transition: opacity .3s .15s; }
.de-panel.is-open { flex: 3.2; }
.de-panel.is-open p { opacity: 1; max-height: 8rem; }
.de-panel.is-open em { opacity: 1; }

/* Diario di cantiere */
.de-diary { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.de-diary__intro { position: sticky; top: 150px; }
.de-case { background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .15); border-radius: 16px; padding: 1.2rem 1.3rem; margin-top: 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.2rem; }
.de-case div small { display: block; color: #8FB0B6; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.de-case div b { color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; }
.de-log { list-style: none; margin: 0; padding: 0; position: relative; }
.de-log::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(to bottom, rgb(255 255 255 / .35) 0 6px, transparent 6px 12px); }
.de-log li { position: relative; padding-left: 3.4rem; padding-bottom: 2rem; }
.de-log li:last-child { padding-bottom: 0; }
.de-log li::before { content: ""; position: absolute; left: 10px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--petrolio); border: 3px solid #fff; }
.de-log li:last-child::before { background: var(--corallo); border-color: var(--corallo); }
.de-log time { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--corallo); font-size: .9rem; }
.de-log h3 { margin-top: .2rem; }
.de-log p { color: #B9CFD3; font-size: .97rem; }
.de-log img { width: 100%; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-top: .9rem; display: block; }
.de-log .de-note { display: flex; gap: .5rem; align-items: center; margin-top: .7rem; font-size: .82rem; color: #8FB0B6; }
.de-log .de-note svg { width: 16px; height: 16px; flex: none; }

/* Un solo referente */
.de-hub { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.de-orbit { position: relative; aspect-ratio: 1; max-width: 460px; margin: 0 auto; width: 100%; }
.de-orbit::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1.5px dashed rgb(15 76 92 / .35); }
.de-orbit .de-center { position: absolute; inset: 33%; border-radius: 50%; background: var(--petrolio); color: #fff; display: grid; place-items: center; text-align: center; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.05rem; line-height: 1.15; padding: .5rem; }
.de-orbit .de-center small { display: block; font-weight: 500; font-size: .75rem; color: #A9C3C8; margin-top: .25rem; }
.de-orbit span { position: absolute; transform: translate(-50%, -50%); background: #fff; border-radius: 999px; padding: .4rem .85rem; font-weight: 600; font-size: .88rem; box-shadow: 0 6px 18px -8px rgb(15 76 92 / .45); white-space: nowrap; }
.de-checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.de-checks li { display: flex; gap: .7rem; align-items: flex-start; }
.de-checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: .1rem; border-radius: 6px; background: var(--corallo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313262B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* Stima dei tempi */
.de-est { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px -30px rgb(15 76 92 / .5); margin-top: 2.5rem; }
.de-est__in { padding: clamp(1.4rem, 3vw, 2.2rem); }
.de-est__in fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
.de-est__in legend { font-weight: 700; margin-bottom: .6rem; }
.de-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.de-opts label { cursor: pointer; }
.de-opts input { position: absolute; opacity: 0; }
.de-opts span { display: inline-block; padding: .5rem .9rem; border-radius: 8px; border: 1.5px solid rgb(19 38 43 / .2); font-weight: 600; font-size: .93rem; }
.de-opts input:checked + span { background: var(--petrolio); border-color: var(--petrolio); color: #fff; }
.de-opts input:focus-visible + span { outline: 3px solid var(--corallo); outline-offset: 2px; }
.de-est__out { background: var(--notte); color: #CFE0E3; padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; justify-content: center; }
.de-est__out small { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: #8FB0B6; }
.de-est__out output { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(2.6rem, 6vw, 4rem); color: #fff; letter-spacing: -.03em; line-height: 1; margin: .4rem 0 .8rem; }
.de-est__bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: .4rem 0 .8rem; background: rgb(255 255 255 / .1); }
.de-est__bar i { display: block; height: 100%; transition: width .4s ease; }
.de-est__bar i:nth-child(1) { background: #8FB0B6; }
.de-est__bar i:nth-child(2) { background: var(--corallo); }
.de-est__bar i:nth-child(3) { background: #fff; }
.de-est__legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: #A9C3C8; }
.de-est__legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: .35rem; background: #8FB0B6; }
.de-est__legend span:nth-child(2)::before { background: var(--corallo); }
.de-est__legend span:nth-child(3)::before { background: #fff; }
.de-est__out p { font-size: .88rem; color: #8FB0B6; margin-top: 1rem; }

/* Progetti con filtri */
.de-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.de-filters button { font: inherit; font-weight: 600; font-size: .93rem; border: 1.5px solid rgb(19 38 43 / .2); background: transparent; color: var(--inchiostro); border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }
.de-filters button[aria-pressed="true"] { background: var(--inchiostro); border-color: var(--inchiostro); color: #fff; }
.de-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.8rem; }
.de-projects article { background: #fff; border-radius: 16px; overflow: hidden; }
.de-projects article[hidden] { display: none; }
.de-projects img { width: 100%; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.de-projects div { padding: 1rem 1.1rem 1.2rem; }
.de-projects small { color: var(--corallo); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.de-projects h3 { font-size: 1.15rem; margin-top: .2rem; }
.de-projects p { color: var(--tenue); font-size: .9rem; margin-top: .3rem; }

/* Recensioni e contatti */
.de-rev { margin-top: 2rem; display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; border-radius: 16px; background: var(--sabbia); padding: 1.4rem 1.6rem; }
.de-rev > span { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 3rem; color: rgb(15 76 92 / .25); line-height: 1; }
.de-rev p { margin: 0; color: var(--tenue); }
.de-rev b { color: var(--inchiostro); }
.de-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.de-contact dl { margin: 1.8rem 0 0; display: grid; gap: 1.1rem; }
.de-contact dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #8FB0B6; }
.de-contact dd { margin: .15rem 0 0; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; font-weight: 700; }
.de-contact dd small { display: block; font-family: Inter, sans-serif; font-weight: 400; font-size: .85rem; color: #A9C3C8; }
.de-form { background: var(--sabbia-chiara); color: var(--inchiostro); border-radius: 20px; padding: clamp(1.3rem, 3vw, 2rem); display: grid; gap: 1rem; }
.de .de-form h3 { color: var(--inchiostro); font-size: 1.6rem; }
.de-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.de-form input, .de-form select, .de-form textarea { font: inherit; font-weight: 400; padding: .75rem .9rem; border: 1.5px solid rgb(19 38 43 / .2); border-radius: 10px; background: #fff; color: var(--inchiostro); width: 100%; }
.de-form .de-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.de-drop { border: 2px dashed rgb(15 76 92 / .35); border-radius: 12px; padding: 1rem; text-align: center; color: var(--tenue); font-size: .9rem; background: #fff; }
.de-drop b { color: var(--petrolio); }
.de-form button:disabled { opacity: .7; cursor: not-allowed; }
.de-form .de-demo-note { font-size: .85rem; color: var(--tenue); margin: 0; text-align: center; }

/* Piede e barra mobile */
.de-foot { background: var(--notte); color: #8FB0B6; font-size: .9rem; padding: 2.2rem 0 6rem; }
.de-foot .de-wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.de-foot a { color: #fff; }
.de-mcta { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 40; display: none; align-items: center; gap: .6rem; background: var(--inchiostro); color: #fff; border-radius: 14px; padding: .5rem .5rem .5rem 1rem; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .5); }
.de-mcta span { flex: 1; font-size: .85rem; line-height: 1.25; }
.de-mcta span b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1rem; }
.de a.de-mcta__tel { width: 44px; height: 44px; border-radius: 10px; background: rgb(255 255 255 / .12); color: #fff; display: grid; place-items: center; }
.de-mcta__tel svg { width: 20px; height: 20px; }
.de-mcta .de-btn { padding: .7rem 1rem; }

/* Menu a tutto schermo su telefono */
.de-menu { position: fixed; inset: 0; z-index: 60; background: var(--notte); color: #fff; padding: 1.2rem clamp(1rem, 4vw, 2rem); display: none; flex-direction: column; }
.de-menu.is-open { display: flex; }
.de-menu header { display: flex; justify-content: space-between; align-items: center; }
.de-menu header b { font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; }
.de-menu button { width: 44px; height: 44px; border-radius: 10px; border: 0; background: rgb(255 255 255 / .12); color: #fff; font-size: 1.6rem; cursor: pointer; }
.de-menu nav { display: grid; margin-top: 2rem; }
.de-menu nav a { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 2rem; letter-spacing: -.02em; text-decoration: none; padding: .7rem 0; border-bottom: 1px solid rgb(255 255 255 / .12); display: flex; justify-content: space-between; }
.de-menu nav a::after { content: "→"; color: var(--corallo); }
.de-menu .de-btn { margin-top: auto; }

/* Elementi Manodarte dentro la demo */
.de .md-demo-bar a, .de .md-demo-end a { color: #fff; }
.de .md-demo-end h2 { font-family: Fraunces, Georgia, serif; letter-spacing: -.01em; font-weight: 600; line-height: 1.1; color: #231C16; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.de .md-demo-end h2 em { color: #A9471E; }
.de .md-demo-end p { margin: .8rem auto 0; }

@media (max-width: 980px) {
	.de-nav, .de-head .de-btn { display: none; }
	.de-burger { display: grid; }
	.de-hero .de-wrap, .de-diary, .de-hub, .de-contact, .de-est { grid-template-columns: 1fr; }
	.de-diary__intro { position: static; }
	.de-strip .de-wrap { grid-template-columns: 1fr 1fr; }
	.de-strip .de-wrap > div:nth-child(3) { padding-left: 0; border-left: 0; }
	.de-strip .de-wrap > div:nth-child(n+3) { border-top: 1px solid rgb(15 76 92 / .15); }
	.de-panels { flex-direction: column; height: auto; }
	.de-panel { min-height: 92px; flex: none; }
	.de-panel.is-open { min-height: 300px; flex: none; }
	.de-projects { grid-template-columns: 1fr 1fr; }
	.de-mcta { display: flex; }
	.de section[id] { scroll-margin-top: 110px; }
}
@media (max-width: 560px) {
	.de-projects { grid-template-columns: 1fr; }
	.de-form .de-row { grid-template-columns: 1fr; }
	.de-case { grid-template-columns: 1fr 1fr; }
	.de-orbit span { font-size: .78rem; padding: .3rem .65rem; }
	.de-strip b { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .de-panel, .de-panel p, .de-panel em, .de-est__bar i { transition: none; } }
