/* TreeEnd Design · editorial v2.0; scoped to this component only */
.te-design{--td-pink:#e542a8;--td-ink:#eaf1ee;position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 14% 6%,#35433a,#15221f 56%,#0b1515);border:1px solid #ffffff30;border-radius:25px;padding:clamp(15px,2.5vw,32px);color:var(--td-ink);box-shadow:0 16px 52px #0003}
.te-design *{box-sizing:border-box}.te-design-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;margin-bottom:24px}
.te-design-eyebrow{font-size:10px!important;letter-spacing:.21em;text-transform:uppercase;opacity:.8;font-weight:600}
.te-design-heading h2{color:var(--td-ink);font-size:clamp(24px,3.6vw,43px);font-weight:640;letter-spacing:.04em;margin:4px 0 5px;line-height:1.12}
.te-design-heading p{color:#b9c8c5;font-size:13px;line-height:1.45;margin:0}.te-design-brand-logo{display:block;width:auto;max-width:min(26%,180px);max-height:90px;object-fit:contain}
.te-design-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(11px,2.4vw,26px)}
.te-design-column{min-width:0}.te-design-column-head{display:flex;justify-content:space-between;align-items:center;gap:9px;min-height:26px;margin-bottom:10px}
.te-design-column-head h3{font-size:clamp(11px,1.3vw,15px);font-weight:700;letter-spacing:.08em;color:#fff;margin:0}.te-design-column-head span{font-size:10px;color:#9fb3ad;white-space:nowrap}
.te-design-stage{height:clamp(240px,31vw,440px);position:relative;display:flex;align-items:center;justify-content:center;perspective:850px;overflow:hidden;border-radius:19px;background:linear-gradient(140deg,#315448,#0c1e1d);box-shadow:inset 0 0 0 1px #ffffff26,0 8px 26px #0005}
.te-design-stage::after{position:absolute;content:"";inset:0;background:linear-gradient(180deg,transparent 48%,#030a0b80);pointer-events:none}
.te-design-card{position:absolute;z-index:2;inset:0;border:0;background:none;padding:0;width:100%;height:100%;color:#fff;text-align:left;cursor:pointer;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;animation:td-in .75s cubic-bezier(.2,.8,.2,1) both}
.te-design-column[data-sector="immobili"] .te-design-card{--td-start:-16%}.te-design-column[data-sector="oggetti"] .te-design-card{--td-start:16%}.te-design-card.from-left{--td-start:-16%}.te-design-card.from-right{--td-start:16%}
@keyframes td-in{from{opacity:.15;transform:translateX(var(--td-start)) scale(.84)}to{opacity:1;transform:translateX(0) scale(1)}}
.te-design-card>img{position:absolute;width:100%;height:100%;inset:0;object-fit:cover;filter:saturate(.95);transition:transform 20s linear}.te-design-card:hover>img{transform:scale(1.09)}
.te-design-caption{position:relative;z-index:3;background:linear-gradient(transparent,#000b 45%,#000e);padding:54px 17px 20px;width:100%;display:grid;gap:4px}.te-design-caption small{font-size:10px;letter-spacing:.11em;text-transform:uppercase;color:#ecf3ee}.te-design-caption strong{font-size:clamp(17px,2.4vw,26px);line-height:1.12}.te-design-caption em{font-style:normal;opacity:.85;font-size:12px}
.te-design-card:focus-visible{outline:3px solid var(--td-pink);outline-offset:-5px}.te-design-abstract{width:100%;height:100%;display:grid;place-items:center;font-size:clamp(100px,17vw,220px);color:#c1d0c13d;font-weight:200}
.te-design-side{position:absolute;top:17%;bottom:20%;width:24%;filter:brightness(.55) blur(1px);opacity:.6;transform:scale(.75);pointer-events:none;border-radius:12px;overflow:hidden}.te-design-side img{height:100%;width:100%;object-fit:cover}.te-design-side.is-left{left:-10%}.te-design-side.is-right{right:-10%}
.te-design-placeholder{display:grid;gap:8px;justify-items:center;text-align:center;padding:20px}.te-design-placeholder-mark{font-size:66px;color:#a8c1b0}.te-design-placeholder strong{font-size:17px}.te-design-placeholder small{font-size:12px;color:#b5c8bd}
.te-design-controls{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px 0 0}.te-design-controls button{width:36px;height:36px;border:1px solid #cfe0d050;border-radius:50%;background:transparent;color:#fff;font-size:20px;cursor:pointer;transition:background .18s,transform .18s}.te-design-controls button:hover{background:var(--td-pink);transform:scale(1.05)}.te-design-counter{font-size:12px;letter-spacing:.05em;color:#c0d1c9;min-width:55px;text-align:center}
.te-design-dialog{width:min(1080px,94vw);max-width:94vw;max-height:91vh;overflow:auto;border:none;border-radius:22px;padding:clamp(16px,3vw,36px);background:#f8faf8;color:#20332c;box-shadow:0 30px 90px #0009}.te-design-dialog::backdrop{background:#07110fe0}.te-design-close{position:sticky;top:0;float:right;z-index:20;border:0;border-radius:50%;width:42px;height:42px;background:#dfe7e1;color:#24362c;font-size:28px;cursor:pointer}
.te-design-detail-hero{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:22px;padding:10px 0 22px}.te-design-detail-hero>img{width:100%;max-height:340px;object-fit:cover;border-radius:14px}.te-design-detail-hero h2{margin:8px 0;color:#19332a;font-size:clamp(25px,3vw,40px)}.te-design-description{line-height:1.7}.te-design-opportunity{background:#eaf1eb;padding:18px;border-radius:12px;margin:22px 0}.te-design-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px;margin:26px 0}.te-design-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}.te-design-more,.te-design-contact{display:inline-block;padding:12px 19px;border:0;border-radius:9px;background:#1e4c3c;color:#fff!important;text-decoration:none;cursor:pointer;margin:8px 8px 8px 0}
@media(max-width:680px){.te-design-columns{grid-template-columns:1fr}.te-design-stage{height:320px}.te-design-heading{align-items:flex-start}.te-design-detail-hero{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.te-design-card,.te-design-card>img{animation:none!important;transition:none!important}}
