:root {
    --accent: #22c55e;
    --accent-dark: #16853c;
    --ink: #101713;
    --muted: #5d6760;
    --surface: #fff;
    --line: #dfe7e1;
    --shadow: 0 18px 42px rgb(18 33 26 / 10%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; margin: 0; min-width: 320px; color: var(--ink); font-family: Inter, "Helvetica Neue", Arial, sans-serif; background: #f2f4f2; }
.allineamento { width: 260px; flex: 0 0 auto; }
main { flex: 1; min-width: 0; padding: 28px; }
.pagina { max-width: 1440px; margin: 0 auto; overflow: hidden; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }

.automation-banner { position: relative; min-height: 620px; isolation: isolate; overflow: hidden; background: #e9eee9; }
.slider-container, .slide { min-height: 620px; }
.slide { position: absolute; inset: 0; display: grid; opacity: 0; pointer-events: none; transition: opacity 1.35s ease-in-out; }
.slide.active { opacity: 1; pointer-events: auto; }
.hero-content { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); align-items: center; min-height: 620px; padding: 72px clamp(32px, 7vw, 105px); }
.hero-text { position: relative; z-index: 2; max-width: 600px; }
.section-tag { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-dark); font-size: .74rem; font-weight: 800; letter-spacing: .12em; }
.tag-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.hero-text h1 { margin: 18px 0 0; max-width: 620px; color: var(--ink); font-size: clamp(3rem, 5vw, 5rem); font-weight: 650; line-height: .98; letter-spacing: -.065em; }
.hero-text h1 span { color: var(--accent-dark); }
.title-line { width: 58px; height: 4px; margin: 30px 0 22px; background: var(--accent); border-radius: 2px; }
.hero-subtitle { margin: 0; max-width: 520px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.7; }
.hero-image { position: absolute; inset: 0; z-index: -1; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1); transition: transform 8s ease-out; }
.slide.active .hero-image img { transform: scale(1.06) translateX(-1.2%); }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #f9fbf9 3%, rgb(249 251 249 / 94%) 31%, rgb(249 251 249 / 42%) 53%, transparent 76%), linear-gradient(0deg, rgb(8 20 13 / 18%), transparent 38%); }

.slider-dots { position: absolute; z-index: 3; top: 32px; right: 34px; display: flex; gap: 9px; }
.slider-dots .dot { width: 9px; height: 9px; padding: 0; border: 1px solid rgb(255 255 255 / 72%); border-radius: 999px; background: rgb(255 255 255 / 42%); box-shadow: 0 1px 8px rgb(0 0 0 / 12%); cursor: pointer; transition: width .25s, background .25s; }
.slider-dots .dot.active { width: 30px; border-color: rgb(34 197 94 / 95%); background: rgb(34 197 94 / 88%); box-shadow: 0 1px 10px rgb(34 197 94 / 38%); }
.slider-dots .dot:focus-visible, .card:focus-visible, .mission-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.topics-toggle { display: none; }
.card-container { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: -20px clamp(24px, 6vw, 80px) 0; }
.card { display: grid; grid-template-columns: 50px 1fr; gap: 17px; min-height: 164px; padding: 24px; color: inherit; text-decoration: none; background: rgb(255 255 255 / 96%); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 28px rgb(18 33 26 / 7%); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-6px); border-color: rgb(34 197 94 / 50%); box-shadow: var(--shadow); }
.card-icon img { width: 46px; height: 46px; object-fit: contain; }
.card-content { display: flex; flex-direction: column; }
.card h2 { margin: 0 0 9px; font-size: 1rem; line-height: 1.25; }
.card p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.45; }
.card-arrow { margin-top: auto; padding-top: 8px; color: var(--accent-dark); font-size: 1.4rem; transition: transform .25s; }
.card:hover .card-arrow { transform: translateX(6px); }

.editorial-section { padding: 60px clamp(28px, 7vw, 100px) 30px; }
.editorial-heading { max-width: 820px; margin: 64px 0 0; }
.editorial-kicker { color: var(--accent-dark); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.editorial-heading h2 { margin: 16px 0 20px; font-size: clamp(2.5rem, 4.8vw, 4.6rem); font-weight: 650; line-height: 1.02; letter-spacing: -.06em; }
.editorial-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.editorial-grid { display: block; overflow: hidden; }
.editorial-article { display: none; scroll-margin-top: 35px; padding: clamp(30px, 4vw, 52px); border: 1px solid rgb(34 197 94 / 22%); border-radius: 18px; background: #fff; box-shadow: 0 18px 46px rgb(34 197 94 / 17%); }
.editorial-article.active { display: block; animation: articleSlideIn 1.05s cubic-bezier(.22, .61, .36, 1) both; }
.article-number { display: block; margin-bottom: 42px; color: var(--accent-dark); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.editorial-article h2 { margin: 0 0 22px; font-size: clamp(1.7rem, 2.5vw, 2.35rem); letter-spacing: -.035em; }
.editorial-article p { color: var(--muted); line-height: 1.78; }
.editorial-article p:nth-of-type(n+5) { display: none; }
.article-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--ink); font-size: .82rem; font-weight: 800; text-decoration: none; }
.article-link span { color: var(--accent-dark); font-size: 1.2rem; transition: transform .2s; }
.article-link:hover span { transform: translateX(5px); }

.mission-section { padding: 110px clamp(28px, 7vw, 100px) 90px; margin-top: 90px; background: #f1f5f1; }
.mission-content { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(42px, 7vw, 110px); max-width: 1180px; margin: auto; }
.mission-text h2 { margin: 18px 0; font-size: clamp(2.4rem, 4.2vw, 4rem); line-height: 1.04; letter-spacing: -.055em; }
.mission-text p { max-width: 510px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.mission-button { display: inline-flex; gap: 16px; align-items: center; margin-top: 16px; padding: 12px 0; color: var(--ink); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-decoration: none; border-bottom: 2px solid var(--accent); }
.mission-button span { color: var(--accent-dark); font-size: 1.5rem; transition: transform .25s; }
.mission-button:hover span { transform: translateX(7px); }
.mission-image { overflow: hidden; border-radius: 18px; box-shadow: 20px 20px 0 rgb(34 197 94 / 15%); }
.mission-image img { display: block; width: 100%; height: 410px; object-fit: cover; }

@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes articleSlideIn { from { opacity: 0; transform: translateX(-72px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 1180px) { .allineamento { width: auto; } .card-container { grid-template-columns: repeat(2, 1fr); margin-top: -20px; } }
@media (max-width: 760px) {
    main { padding: 12px; }
    .pagina { border-radius: 14px; }
    .automation-banner, .slider-container, .slide, .hero-content { min-height: 600px; }
    .hero-content { display: flex; align-items: flex-start; padding: 72px 28px; }
    .hero-image::after { background: linear-gradient(90deg, rgb(249 251 249 / 96%), rgb(249 251 249 / 62%) 70%, rgb(249 251 249 / 30%)); }
    .hero-text h1 { font-size: clamp(2.85rem, 13vw, 4.4rem); }
    body:not(.login-page) .slider-dots { top: 22px; right: 24px; bottom: auto; left: auto; }
    .topics-toggle { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; width: calc(100% - 40px); margin: -20px 20px 0; padding: 17px 18px; color: var(--ink); text-align: left; border: 1px solid rgb(34 197 94 / 26%); border-radius: 16px; background: rgb(255 255 255 / 97%); box-shadow: 0 12px 30px rgb(34 197 94 / 14%); cursor: pointer; }
    .topics-toggle-label { display: grid; gap: 3px; font-size: 1rem; font-weight: 750; }
    .topics-toggle-label small { color: var(--accent-dark); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
    .topics-toggle-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; font-size: 1.35rem; font-weight: 400; border-radius: 50%; background: var(--accent-dark); transition: transform .35s ease, background .35s ease; }
    .topics-toggle[aria-expanded="true"] .topics-toggle-icon { transform: rotate(45deg); background: var(--accent); }
    body:not(.login-page) .card-container { position: relative; inset: auto; display: grid; grid-template-columns: 1fr; max-height: 0; margin: 0 20px; gap: 10px; overflow: hidden; opacity: 0; transform: translateY(-12px); transition: max-height .65s ease, opacity .4s ease, transform .55s ease, padding .55s ease; }
    body:not(.login-page) .card-container.menu-open { max-height: 560px; padding-top: 12px; opacity: 1; transform: translateY(0); }
    .card { min-height: 92px; padding: 17px 18px; border-radius: 14px; }
    .editorial-section { padding: 28px 24px 10px; }
    .editorial-heading { margin: 48px 0 0; }
    .editorial-grid { grid-template-columns: 1fr; }
    .article-number { margin-bottom: 26px; }
    .mission-section { margin-top: 48px; padding: 75px 28px; }
    .mission-content { grid-template-columns: 1fr; }
    .mission-image { order: -1; }
    .mission-image img { height: 265px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
