/* EticaSi 2026 — pagine interne, override di specificita' sul portale, movimento ridotto. */

/* ------------------------------------------------------------ hero interne */
.e-phero { position: relative; isolation: isolate; overflow: hidden; padding: 150px 0 120px; background: linear-gradient(135deg, var(--e-blue) 0%, var(--e-navy) 100%); }
.e-phero .e-orb--a { width: min(46vw, 460px); top: -30%; right: -8%; }
.e-phero-inner { position: relative; z-index: 2; }
.e-wave { position: absolute; z-index: 1; left: 0; bottom: -1px; width: 100%; height: 56px; fill: #f3f9fd; }

.e-story { padding: 70px 0 30px; }
.e-story-grid { display: grid; gap: 28px; }
.e-prose p { margin: 0 0 18px; font: 500 1.08rem/1.85 var(--e-sans); color: var(--e-muted); }
@media (min-width: 900px) { .e-story-grid { grid-template-columns: 1fr 1.1fr; gap: 70px; } }

.e-places { padding: 30px 0 40px; }
.e-places-grid { display: grid; gap: 18px; }
.e-place { padding: 34px; border-radius: var(--e-r); background: #fff; box-shadow: 0 12px 34px rgba(7, 50, 90, 0.08); }
.e-place--orange { background: var(--e-orange-d); }
.e-place-tag { display: inline-block; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--e-sky); font: 700 0.72rem/1 var(--e-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--e-blue); }
.e-place--orange .e-place-tag { background: rgba(255, 255, 255, 0.22); color: #fff; }
.e-place h3 { margin: 0 0 10px; font: 800 1.6rem/1.15 var(--e-sans); color: var(--e-navy); }
.e-place--orange h3 { color: #fff; }
.e-place p { margin: 0; font: 500 1rem/1.7 var(--e-sans); color: var(--e-muted); }
.e-place--orange p { color: #fff; }
@media (min-width: 800px) { .e-places-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* servizi: due colonne con fisarmonica */
.e-svc { padding: 70px 0; }
.e-svc-grid { display: grid; gap: 22px; }
.e-svc-col { padding: 30px 24px; border-radius: var(--e-r); background: #fff; box-shadow: 0 12px 34px rgba(7, 50, 90, 0.08); }
.e-svc-col--orange { background: var(--e-orange-d); }
.e-svc-col--orange .e-h2 { color: #fff; }
.e-svc-col--orange .e-kicker { background: rgba(255, 255, 255, 0.22); color: #fff; }
.e-acc { display: grid; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.e-acc details { border-radius: 18px; background: var(--e-sky); overflow: hidden; }
.e-svc-col--orange .e-acc details { background: rgba(255, 255, 255, 0.95); }
.e-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; list-style: none; cursor: pointer; font: 800 1.05rem/1.3 var(--e-sans); color: var(--e-navy); }
.e-acc summary::-webkit-details-marker { display: none; }
.e-acc summary i { position: relative; width: 22px; height: 22px; flex: 0 0 auto; }
.e-acc summary i::before, .e-acc summary i::after { content: ""; position: absolute; top: 10px; left: 3px; width: 16px; height: 2px; border-radius: 2px; background: var(--e-orange); transition: transform 0.4s var(--e-ease); }
.e-acc summary i::after { transform: rotate(90deg); }
.e-acc details[open] summary i::after { transform: rotate(0); }
.e-acc details p { margin: 0; padding: 0 20px 20px; font: 500 0.98rem/1.7 var(--e-sans); color: var(--e-muted); animation: e-drop 0.5s var(--e-ease); }
@keyframes e-drop { from { opacity: 0; transform: translateY(-8px); } }
.e-checks { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.e-checks li { display: flex; align-items: flex-start; gap: 10px; font: 600 0.98rem/1.5 var(--e-sans); color: var(--e-navy); }
.e-checks .e-ico { margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--e-orange); color: #fff; width: 22px; height: 22px; }
.e-svc--solo { padding-top: 20px; }
@media (min-width: 720px) { .e-checks--grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .e-svc-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .e-svc-col { padding: 44px; } }

/* vendi: percorso */
.e-steps { padding: 70px 0; }
.e-steps-grid { display: grid; gap: 34px; }
.e-path { --p: 0; position: relative; display: grid; gap: 18px; margin: 0; padding: 0 0 0 28px; list-style: none; }
.e-path::before, .e-path::after { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--e-line); }
.e-path::after { background: var(--e-orange); transform-origin: top; transform: scaleY(var(--p)); }
.e-path li { position: relative; display: flex; gap: 18px; padding: 22px 22px 22px 40px; border-radius: var(--e-r); background: #fff; box-shadow: 0 12px 34px rgba(7, 50, 90, 0.08); }
.e-path-n { position: absolute; left: -29px; top: 20px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--e-orange-d); font: 800 1.1rem/1 var(--e-sans); color: #fff; z-index: 2; box-shadow: 0 0 0 6px #f3f9fd; }
.e-path h3 { margin: 0 0 6px; font: 800 1.2rem/1.2 var(--e-sans); color: var(--e-navy); }
.e-path p { margin: 0; font: 500 0.98rem/1.6 var(--e-sans); color: var(--e-muted); }
@media (min-width: 960px) { .e-steps-grid { grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: start; } .e-steps-side { position: sticky; top: 120px; } }

/* contatti */
.e-contact { padding: 60px 0 90px; }
.e-contact-grid { display: grid; gap: 22px; }
.e-ccards { display: grid; gap: 14px; align-content: start; }
.e-ccard { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--e-r); background: #fff; box-shadow: 0 12px 34px rgba(7, 50, 90, 0.08); text-decoration: none; transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform 0.4s var(--e-ease), box-shadow 0.4s; }
.e-ccard:hover { box-shadow: 0 22px 50px rgba(7, 50, 90, 0.18); }
.e-ccard--orange { background: var(--e-orange-d); }
.e-ccard-ico { width: 30px; height: 30px; margin-bottom: 8px; fill: none; stroke: var(--e-orange); stroke-width: 1.8; color: var(--e-orange); }
.e-ccard-ico use { color: var(--e-orange); }
.e-ccard--orange .e-ccard-ico { stroke: #fff; color: #fff; }
.e-ccard span { font: 700 0.72rem/1 var(--e-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--e-blue); }
.e-ccard strong { font: 800 1.15rem/1.3 var(--e-sans); color: var(--e-navy); word-break: break-word; }
.e-ccard--orange span, .e-ccard--orange strong { color: #fff; }
.e-office { padding: 34px; border-radius: var(--e-r); background: linear-gradient(145deg, var(--e-blue), var(--e-navy)); }
.e-office address { display: flex; gap: 12px; margin: 0 0 24px; font: 600 1.15rem/1.6 var(--e-sans); font-style: normal; color: #fff; }
.e-office-vat { margin: 22px 0 0; font: 500 0.85rem/1 var(--e-sans); color: #8cc8f0; }
@media (min-width: 900px) { .e-contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 28px; } .e-ccards { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ specificita': il portale impone colori con !important */
html:not(#_):not(#_) body[data-e-page] main.page { padding: 0 !important; margin: 0 !important; background: #f3f9fd !important; }
html:not(#_):not(#_) body[data-e-page] main.page > .container { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
body[data-e-page] .agency-minisite-breadcrumb { display: none; }

html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] :is(.e-display, .e-h2--light, .e-cta h2, .e-footer-big, .e-office h2, .e-flip-face h3, .e-menu-nav a, .e-brand-text b, .e-nav a, .e-team .e-h2, .e-place--orange h3, .e-svc-col--orange .e-h2, .e-tile--big .e-num, .e-tile--orange .e-num, .e-tile--big .e-num b, .e-tile--orange .e-num b, .e-ccard--orange strong, .e-ccard--orange span) { color: #fff !important; }
html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] :is(.e-lead, .e-flip-face p, .e-flip-face li, .e-flip-hint, .e-tile--big p, .e-tile--orange p, .e-place--orange p, .e-office address, .e-office address span, .e-names li, .e-footer a, .e-footer-bottom span, .e-marquee-track span, .e-menu-foot a) { color: #fff !important; }
html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] :is(.e-kicker) { color: var(--e-orange-d) !important; }
html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] :is(.e-kicker--light, .e-team .e-kicker, .e-svc-col--orange .e-kicker, .e-place--orange .e-place-tag, .e-flip-tag) { color: #fff !important; }
html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] :is(.e-h2, .e-card h3, .e-listing-body h3, .e-place h3, .e-path h3, .e-acc summary, .e-ccard strong, .e-checks li, .e-quotes p, .e-field input, .e-field select, .e-seg span) { color: var(--e-navy); }
html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] :is(.e-copy, .e-card p, .e-prose p, .e-place:not(.e-place--orange) p, .e-path p, .e-acc details p, .e-listing-city) { color: var(--e-muted) !important; }
html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] :is(.e-num, .e-listing-price, .e-quotes cite, .e-field > span, .e-ccard span, .e-link) { color: var(--e-blue) !important; }
html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] :is(.e-card-n) { color: var(--e-orange-d) !important; }
html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] .e-footer h3 { color: #ff9a4d !important; }
html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] :is(.e-link--light, .e-btn--orange, .e-btn--blue, .e-btn--ghost, .e-btn span, .e-seg input:checked + span, .e-listing-badge, .e-path-n, .e-dock a, .e-dock a span) { color: #fff !important; }
html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] :is(.e-call, .e-call span) { color: var(--e-navy) !important; }
html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] .e-brand-text i { color: #8cc8f0 !important; }
html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] :is(.e-names small, .e-office-vat, .e-menu-foot) { color: #8cc8f0 !important; }
html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] .e-team .e-copy { color: #b7dcf4 !important; }
html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] .e-footer p { color: #cfe6f6 !important; }
html:not(#_):not(#_) body[data-ms-layout="eticasi2026"] footer.e-footer { background: var(--e-navy) !important; background-image: none !important; border: 0 !important; box-shadow: none !important; }
body[data-ms-layout="eticasi2026"] .btn-primary, body[data-ms-layout="eticasi2026"] .btn.btn-primary { background: var(--e-blue); border-color: var(--e-blue); }

.e-team .e-kicker { background: rgba(255, 255, 255, 0.14); }

/* ------------------------------------------------------------ movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  body[data-ms-layout="eticasi2026"] *, body[data-ms-layout="eticasi2026"] *::before, body[data-ms-layout="eticasi2026"] *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important;
    transition-duration: 0.001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
  }
  .e-js [data-reveal], .e-js [data-split] .e-w > span { opacity: 1 !important; transform: none !important; }
  .e-card, .e-method-side { position: static; }
}
@media print { .e-header, .e-menu, .e-dock, .e-marquee, .e-orb { display: none !important; } }
