/* Styles for the André Ventura 2026 landing page */

:root {
    --primary-dark: #1e202b;
    --deep-blue: #284274;
    --highlight-blue: #0548d5;
    --dark-red: #84312a;
    --neutral-gray: #c4c6cd;
    --off-white: #fdfdfd;
    --flag-green: #008c45;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Open Sans", system-ui, -apple-system, sans-serif;
    color: var(--primary-dark);
    background: var(--off-white);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    margin-top: 26px;
    margin-bottom: 26px;
}

/* Hero and navigation */
.hero {
    position: relative;
    min-height: 100vh; /* ocupa a altura inteira do ecrã */
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(30,32,43,0.85) 10%, rgba(30,32,43,0.25) 60%, rgba(30,32,43,0.75));
    z-index: 1;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__candidate {
    position: absolute;
    right: 6%;
    bottom: 0;
    width: min(32vw, 420px);
    filter: saturate(1.1);
    object-fit: contain;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2.5rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    flex: 1; /* faz o conteúdo ocupar a altura completa do hero */
    row-gap: clamp(1.25rem, 3vw, 2rem);
    margin: 0 auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5;
    gap: 1rem;
    padding: 0.5rem 0;
}

.nav__logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    line-height: 1;
}

.nav__logo-img {
    height: clamp(72px, 14vw, 160px);
    width: auto;
}

.nav__logo-line {
    padding: 0.45rem 0.8rem;
    color: #fff;
    border-radius: 6px 6px 0 0;
    font-size: 0.9rem;
}

.nav__logo-line--green {
    background: var(--flag-green);
    border-radius: 8px 8px 0 0;
}

.nav__logo-line--red {
    background: var(--dark-red);
    border-radius: 0 0 8px 8px;
    margin-top: 2px;
}

.nav__logo-sub {
    color: #ffd85c;
    margin-top: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.nav__list {
    display: flex;
    gap: clamp(0.85rem, 1.6vw, 1.6rem);
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: clamp(0.9rem, 0.2vw + 0.9rem, 1.05rem);
}

.nav__list a {
    color: #fff;
    letter-spacing: 0.04em;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.nav__list a:hover {
    opacity: 1;
}

.scroll-top {
    position: fixed;
    right: clamp(0.75rem, 2vw, 1.5rem);
    bottom: clamp(0.75rem, 2vw, 1.5rem);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 20;
}

.scroll-top img {
    width: 60%;
    height: auto;
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav__toggle {
    display: none;
    background: transparent;
    border: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.4rem;
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
}

/* bloco do texto do slider */
.hero__slider {
    position: relative;
    width: 100%;                          /* ocupa toda a largura do .container */
    max-width: none;                      /* remove o limite dos 800px */
    margin-top: auto;
    margin-bottom: 1.2rem;
    margin-left: 0;
    margin-right: 0;
    padding: 0 clamp(0.5rem, 4vw, 2.5rem); /* margem interior para o texto respirar */
}

.hero__slides {
    position: relative;
    min-height: clamp(180px, 30vw, 260px);
    padding-bottom: clamp(72px, 12vw, 120px);
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero__slide--active {
    position: relative;
    opacity: 1;
}

.hero__eyebrow {
    font-size: clamp(1.6rem, 2vw + 1rem, 2.6rem);
    margin: 0 0 0.5rem;
    font-weight: 400;
}

.hero__eyebrow em {
    font-style: italic;
}

.hero__quote {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.1rem, 3vw + 1rem, 3.8rem);
    margin: 0;
    font-weight: 800;
    line-height: 1.2;
    margin-top: -10px;
}

/* dots e setas */
.hero__dots {
    display: flex;
    gap: 8px;
    margin-top: 0;
}

.hero__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    background: url("../img/bola_out.png") center/contain no-repeat;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.hero__dot--active {
    background-image: url("../img/bola_in.png");
    transform: scale(1.05);
}

.hero__controls {
    position: absolute;
    left: clamp(1.5rem, 5vw, 3.75rem);
    right: clamp(1.5rem, 5vw, 3.75rem);
    bottom: clamp(0.5rem, 2vw, 1.2rem);
    display: flex;
    align-items: center;
    justify-content: center; /* centra os dots mesmo com as setas fora do fluxo */
    padding: 0.2rem 0;
}

.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(30px, 5vw, 44px);
    height: clamp(46px, 8vw, 60px);
    padding: 0;
    border: none;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hero__arrow:hover {
    transform: translateY(-50%) scale(1.04);
}

.hero__arrow-icon {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}

.hero__arrow--prev { left: 0; }
.hero__arrow--next { right: 0; }

/* Duo banner */
.duo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: clamp(180px, 18vw, 260px);
}

.duo__item {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
    text-transform: lowercase;
}

.duo__item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--duo-bg, linear-gradient(180deg, rgba(0,140,69,0.35), rgba(255,223,0,0.25)), url("https://picsum.photos/900/400?image=1040"));
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.duo__item:hover::before {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.duo__label {
    position: relative;
    z-index: 1;
    text-align: center;
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.duo__item--apoios {
    background-position: center bottom;   /* centro exato */
}

/* Manifesto */

.manifesto-visual {
    width: 100%;
}

.manifesto-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.manifesto-visual--mobile {
    display: none;
}

.manifesto-visual--mobile img + img {
    margin-top: 12px;
}

.manifesto-visual--desktop {
    display: block;
}

.img_titulo_manifesto {
    width: 100%;
    max-width: 956px;
    margin-top: 100px;
}

.manifesto__text {
    margin: 0;
    color: var(--primary-dark);
    line-height: 1.6;
    font-size: 20px;
    margin-right: 300px;
}

.manifesto__text--narrow {
    max-width: 460px;
}

.manifest_texto_1 {
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
    margin-bottom: 200px;
    font-size: 24px;
    line-height: 1.6;
    color: var(--primary-dark);
    font-weight: 600;
}

.manifest_texto_2 {
    width: 100%;
    max-width: 1200px;
    margin-top: 20px;
    
    font-size: 24px;
    line-height: 1.6;
    color: var(--primary-dark);
    font-weight: 600;
}

.container_manifesto {
    
    margin: 0 auto;
}

.manifesto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    
    align-items: center;
}

.manifesto__left {
    position: relative;
}

.manifesto__badge {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    letter-spacing: 0.04em;
}

.manifesto__badge-top {
    display: block;
    font-size: 0.9rem;
}

.manifesto__badge-name {
    display: block;
    font-size: 1.6rem;
}

.manifesto__badge-name--accent {
    color: var(--dark-red);
}

.manifesto__figure {
    position: relative;
    
}

.manifesto__flag {
    position: absolute;
    inset: auto;
    bottom: 18%;
    left: -10%;
    width: 130%;
    height: 70px;
    transform: skew(-15deg);
    display: grid;
    grid-template-columns: 1.4fr 0.5fr 1.4fr;
    z-index: 0;
}

.manifesto__flag-segment--green { background: var(--flag-green); }
.manifesto__flag-segment--white { background: #fff; }
.manifesto__flag-segment--red { background: var(--dark-red); }

.manifesto__photo {
    
    position: relative;
    z-index: 1;
    width: 100%;
    object-fit: cover;
}

.manifesto__right {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.manifesto__headline {
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2rem, 2vw + 1.2rem, 3rem);
    color: var(--deep-blue);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.01em;
}

.manifesto__headline-strong {
    color: var(--highlight-blue);
    font-size: clamp(2.4rem, 2vw + 1.6rem, 3.6rem);
}

.manifesto__signature-block {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.img_assinatura {
    width: 100%;
    max-width: 400px;
}

.manifesto__signature {
    font-family: "Montserrat", sans-serif;
    color: var(--highlight-blue);
    font-size: 1.6rem;
    font-style: italic;
    letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
    .manifesto-visual--desktop {
        display: none;
    }

    .manifesto-visual--mobile {
        display: block;
    }
}

/* Manifesto desktop, imagem grande a atravessar o texto */
@media (min-width: 992px) {
    .manifesto {
        align-items: center;
        position: relative;
    }

    .manifesto__left {
        overflow: visible;
    }

    .manifesto__figure {
        position: relative;
        
        
        z-index: 1;
    }

    .manifesto__photo {
        width: 200%;
        max-width: none;
        object-fit: contain;
        margin-left: 0px;
    }

    .manifesto__right {
        position: relative;
        z-index: 2; /* assegura que o texto fica por cima onde for preciso */
    }
}

.manifesto--bg {
    position: relative;

    background-image: url("/static/campanha/img/img_av_fundo.png");
    background-repeat: no-repeat;

    /* alinha exatamente como no cartaz */
    background-position: left bottom;

    /* mostra a imagem inteira e mantém proporção */
    background-size: contain;

    /* altura mínima para caber a imagem toda, testa estes valores */
    min-height: 750px;

    /* remove a altura fixa que estava a cortar */
    height: auto;
}

/* garante que o conteúdo fica por cima do fundo */
.manifesto__left,
.manifesto__right {
    position: relative;
    z-index: 1;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(90deg, #141824, #16306c, #24438e);
    color: #fff;
    padding: clamp(3rem, 6vw, 5rem) 0;
    text-align: center;
}

.newsletter__kicker {
    margin: 0;
    font-size: clamp(0.95rem, 1vw + 0.6rem, 1.35rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.9;
}

.newsletter__kicker span {
    font-weight: 700;
}

.newsletter__title {
    margin: 0.6rem 0 1.2rem;
    font-size: clamp(2rem, 3vw + 1rem, 3.4rem);
    font-family: "Montserrat", sans-serif;
}

.container_newsletter {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 1.5rem);
}

.newsletter__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.newsletter__slider {
    position: relative;
    width: min(560px, 90vw);
    height: 26px;
}

.newsletter__track,
.newsletter__fill {
    position: absolute;
    inset: 0;
    border-radius: 50px;
}

.newsletter__track {
    background: rgba(255,255,255,0.18);
}

.newsletter__fill {
    background: linear-gradient(90deg, #4b608f, var(--deep-blue));
    width: 85%;
}

.newsletter__handle {
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: var(--deep-blue);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
}

.newsletter__slider:hover .newsletter__handle {
    transform: translateY(-50%) scale(1.05);
}

.newsletter__form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1.4rem;
}

.newsletter__form input {
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: #fff;
    flex: 1 1 260px;
    min-width: 0;
    max-width: 520px;
}

.newsletter__form input::placeholder {
    color: rgba(255,255,255,0.75);
}

.newsletter__submit {
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: var(--primary-dark);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 110px;
    margin-left: -50px;
}

.newsletter__submit-icon {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.newsletter__submit:hover {
    background: #f4f7ff;
    color: var(--deep-blue);
    transform: translateY(-1px);
}

.newsletter__notice {
    margin: 0.6rem auto 0;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.12);
    color: #fff;
    max-width: 560px;
    text-align: center;
    font-size: 0.95rem;
}

.newsletter__notice--success {
    background: rgba(255,255,255,0.18);
}

/* Modal de apoio */
.supporter-modal[hidden] {
    display: none;
}

.supporter-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

body.is-modal-open {
    overflow: hidden;
}

.supporter-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.supporter-modal__overlay {
    position: absolute;
    inset: 0;
}

.supporter-modal__dialog {
    position: relative;
    background: #fff;
    color: var(--primary-dark);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 16px;
    width: min(560px, 92vw);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.supporter-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--primary-dark);
}

.supporter-modal__title {
    margin: 0 0 0.35rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1.4rem;
}

.supporter-modal__subtitle {
    margin: 0 0 1rem;
    color: rgba(30,32,43,0.72);
    font-size: 0.95rem;
}

.supporter-form__errors {
    margin: 0 0 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #fff3f0;
    color: #7a1e16;
    border: 1px solid #f2c5bd;
    font-size: 0.95rem;
}

.supporter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.supporter-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
}

.supporter-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.95rem;
}

.supporter-form__group input {
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(30,32,43,0.18);
    background: rgba(0,0,0,0.02);
    font-size: 1rem;
    color: var(--primary-dark);
}

.supporter-form__group input:focus {
    outline: none;
    border-color: var(--highlight-blue);
    box-shadow: 0 0 0 2px rgba(5,72,213,0.15);
}

.supporter-form__group.has-error input {
    border-color: #c0392b;
}

.supporter-form__error {
    color: #c0392b;
    font-size: 0.8rem;
}

.supporter-form__submit {
    align-self: flex-end;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #24438e, #16306c);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.supporter-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(22, 48, 108, 0.2);
}

@media (max-width: 640px) {
    .supporter-form__grid {
        grid-template-columns: 1fr;
    }
}

.supporter-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(90deg, #24438e, #16306c);
    color: #fff;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

.supporter-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 640px) {
    .supporter-toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        text-align: center;
    }
}

/* Modal de privacidade */
.privacy-modal[hidden] {
    display: none;
}

.privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 998;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.privacy-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.privacy-modal__overlay {
    position: absolute;
    inset: 0;
}

.privacy-modal__dialog {
    position: relative;
    background: #fff;
    color: var(--primary-dark);
    padding: clamp(1.4rem, 3vw, 2rem);
    border-radius: 16px;
    width: min(720px, 94vw);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.privacy-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--primary-dark);
}

.privacy-modal__title {
    margin: 0 0 0.6rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1.4rem;
}

.privacy-modal__content h4 {
    margin: 1rem 0 0.4rem;
    font-size: 1.05rem;
}

.privacy-modal__content h5 {
    margin: 0.6rem 0 0.3rem;
    font-size: 1rem;
}

.privacy-modal__content p,
.privacy-modal__content ul {
    margin: 0 0 0.5rem;
    line-height: 1.55;
}

.privacy-modal__content ul {
    padding-left: 1.2rem;
}

/* Press */
.press {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3.4rem);
}

.press__header {
    margin-bottom: 1.4rem;
}

.press__title {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
    margin: 0;
    color: var(--primary-dark);
}

.press__title span {
    color: var(--highlight-blue);
    font-weight: 800;
}

.press__subtitle {
    margin: 0.4rem 0 0;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: rgba(30,32,43,0.7);
}

.press__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}

.press__card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.press__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.press__image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.press__card-title {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    margin: 0.8rem 1rem 0.4rem;
    color: var(--deep-blue);
}

.press__meta {
    margin: 0 1rem 1rem;
    color: rgba(30,32,43,0.7);
    font-size: 0.82rem;
}

/* Ribbon */
.ribbon {
    background: linear-gradient(90deg, #141824, #16306c, #24438e);
    color: #fff;
    overflow: visible;
}

.ribbon__inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    flex-wrap: wrap;
}

.ribbon__flag {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ribbon__flag-img {
    height: clamp(72px, 12vw, 50px);
    width: auto;
    margin-top: -50px;
}

.ribbon__title {
    font-family: "Montserrat", sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
}

/* faixa que roda */
.ribbon__marquee {
    position: relative;
    flex: 1;
    overflow: hidden;
    height: 100%;
    padding: 24px 0;
}

.ribbon__track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    white-space: nowrap;
    will-change: transform;
}

/* cada apoio */
.ribbon__supporter {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Montserrat", sans-serif;
}

.ribbon__name {
    font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem);
    font-weight: 500;
}

.ribbon__role {
    font-size: clamp(0.75rem, 0.4vw + 0.7rem, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ponto branco entre apoios */
.ribbon__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
}

/* ajustes mobile básicos */
@media (max-width: 768px) {
    .ribbon__inner {
        padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 1.5rem);
        gap: 1.25rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ribbon__title {
        font-size: 1.8rem;
    }

    .ribbon__name {
        font-size: 1.1rem;
    }

    .ribbon__role {
        font-size: 0.7rem;
    }
}

/* Agenda */
.agenda {
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.agenda__header {
    margin-bottom: 1rem;
}

.agenda__title {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
    margin: 0;
    color: var(--primary-dark);
}

.agenda__title span {
    color: var(--highlight-blue);
    font-weight: 800;
}

.agenda__subtitle {
    margin: 0.3rem 0 1rem;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: rgba(30,32,43,0.8);
}

.agenda__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(6px, 1vw, 12px);
}

.agenda__cell {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    background: #131927;
    position: relative;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.agenda__cell:nth-child(3n) { background: #141A2B; }
.agenda__cell:nth-child(4n) { background: #15316D; }
.agenda__cell:nth-child(5n) { background: #24428D; }

.agenda__cell:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.agenda__tooltip {
    position: absolute;
    padding: 0.45rem 0.65rem;
    background: rgba(30,32,43,0.95);
    color: #fff;
    border-radius: 6px;
    font-size: 0.8rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 20;
}

/* Agenda cards */

.agenda__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1rem, 1.6vw, 1.6rem);
    margin-top: 1.5rem;
}

.agenda-card {
    position: relative;
    border-radius: 12px;
    padding: 1rem 1.1rem 1.2rem;
    background: #17306D;
    color: var(--primary-dark);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
    color: #fff;
}

/* alternância de cores inspirada na grelha original */
.agenda-card:nth-child(3n) { background: #22428C; }
.agenda-card:nth-child(4n) { background: #6e7696; color: #fff; }
.agenda-card:nth-child(5n) { background: #4b5678; color: #fff; }

.agenda-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
    filter: brightness(1.05);
}

/* header do card */

.agenda-card__header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    z-index: 1;
}

.agenda-card__date {
    min-width: 64px;
    padding: 0.35rem 0.55rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
}

.agenda-card__day {
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 800;
}

.agenda-card__month {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    margin-top: 0.15rem;
}

.agenda-card__meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    text-align: right;
    font-size: 0.82rem;
}

.agenda-card__time {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.agenda-card__place {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.agenda-card__place-label {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.75;
}

.agenda-card__place-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.agenda-card__place-city {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* corpo do card */

.agenda-card__body {
    position: relative;
    z-index: 1;
    margin-top: 0.25rem;
}

.agenda-card__title {
    margin: 0 0 0.3rem;
    font-family: "Montserrat", sans-serif;
    font-size: 1.05rem;
    line-height: 1.3;
}

.agenda-card__subtitle {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.92;
}

/* estado sem agenda */

.agenda__empty {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: rgba(30, 32, 43, 0.75);
}

/* responsivo */

@media (max-width: 640px) {
    .agenda-card {
        padding: 0.9rem 0.9rem 1.1rem;
    }

    .agenda-card__header {
        align-items: center;
    }

    .agenda-card__meta {
        font-size: 0.78rem;
    }

    .agenda-card__title {
        font-size: 1rem;
    }
}


/* ================= FOOTER NOVO ================= */

.footer {
    background: linear-gradient(115deg, #16306c 0%, #1c3c87 40%, #214ca8 100%);
    color: #fff;
    position: relative;
    padding: 2rem 0 2.5rem;
    overflow: visible;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 3.5rem;
    row-gap: 1.5rem;
}

.footer__badge {
    display: flex;
    align-items: flex-start;
    flex: 0 0 auto;
}

/* logo AV26 mais pequeno e menos “pendurado” para cima */
.img_footer {
    height: 120px;
    width: auto;
    margin-top: -80px;
}

/* colunas de contactos lado a lado */
.footer__columns {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
    align-items: flex-start;
}

.footer__col p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer__heading {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 0.6rem;
    color: #ffffff;
}

/* linha legal em baixo, centrada */
.footer__legal-row {
    flex: 1 1 100%;
    margin-top: 1.25rem;
    text-align: center;
}

.footer__links {
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.3rem;
    color: #ffffff;
}

.footer__links--button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* brasão centrado na altura do footer */
.footer__watermark {
    position: absolute;
    top: 14%;
    right: clamp(2rem, 8vw, 6rem);
    width: 580px;
    height: 169px;
    transform: translateY(-50%);
    background-image: url("/static/campanha/img/brasao.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.55;
    pointer-events: none;
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 992px) {
    .footer {
        padding: 2.25rem 0 2.75rem;
    }

    .footer__inner {
        padding: 0 1.5rem;
        column-gap: 2.5rem;
    }

    .img_footer {
        height: 100px;
        margin-top: -60px;
    }

    .footer__columns {
        gap: 2rem;
    }

    .footer__watermark {
        top: 50%;
        right: 2rem;
        width: 180px;
        height: 180px;
        transform: translateY(-50%);
        opacity: 0.65;
    }

    .footer__col--legal .footer__links {
        font-size: 0.82rem;
        letter-spacing: 0.12em;
    }

    .footer__col--legal p:last-child {
        font-size: 0.95rem;
    }

    .ribbon__flag-img {
        margin-top: -60px;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero {
        min-height: 100vh; /* mantém o hero a ocupar o ecrã inteiro no mobile */
    }

    .nav__list {
        position: absolute;
        top: calc(100% + 12px);
        right: clamp(1rem, 4vw, 2rem);
        width: min(70vw, 320px);
        background: rgba(30,32,43,0.95);
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 14px 30px rgba(0,0,0,0.35);
        flex-direction: column;
        gap: 0.8rem;
        display: none;
        z-index: 6;
    }

    .nav__list.is-open {
        display: flex;
    }

    .nav__toggle {
        display: inline-flex;
    }

    .hero__candidate {
        position: relative;
        width: clamp(220px, 60vw, 280px);
        margin: 0 auto;
        right: auto;
        bottom: auto;
        order: 2;
        filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
    }

    .hero__content {
        padding-top: 1rem;
    }

    .hero__slider {
        order: 3;
        max-width: none;
    }

    .duo {
        grid-template-columns: repeat(2, 1fr); /* mantém os dois cards lado a lado */
        min-height: 280px;
    }

    .manifesto {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .manifesto__badge {
        text-align: center;
    }

    .manifesto__figure {
        margin: 0 auto;
    }

    .manifesto__flag {
        left: -5%;
        width: 110%;
    }

    .manifesto__headline {
        align-items: center;
    }

    .manifesto__text--narrow {
        max-width: none;
        align-self: center;
    }

    .newsletter__inner {
        max-width: 720px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .press__grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .agenda__grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 640px) {
    .hero__quote {
        font-size: clamp(1.8rem, 5vw + 1rem, 2.4rem);
    }

    .hero__background {
        object-position: 70% center; /* privilegia o lado direito da imagem no mobile */
    }

    .ribbon {
        background: var(--deep-blue);
    }

    .ribbon__inner {
        flex-direction: row;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 0.8rem 0;
        max-width: none;
    }

    .ribbon__flag {
        padding-left: 0.75rem;
    }

    .ribbon__flag-img {
        height: 72px;
        margin-top: -42px;
    }

    .ribbon__marquee {
        flex: 0 1 auto;
        padding: 16px 0;
        display: flex;
        align-items: center;
    }

    .footer {
        padding: 2rem 0 2.5rem;
    }

    .footer__inner {
        padding: 0 1.1rem;
        align-items: flex-start;
        position: relative;
    }

    .footer__badge {
        justify-content: flex-start;
    }

    .img_footer {
        height: 90px;
        margin-top: -66px;
    }

    .footer__columns {
        flex-direction: column;
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .footer__legal-row {
        margin-top: 1rem;
    }

    .footer__watermark {
        top: -1%;
        right: 1rem;
        width: 140px;
        height: 140px;
        transform: translateY(-50%);
    opacity: 0.7;
}

.footer__col--legal .footer__links {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
}

    .footer__col--legal p:last-child {
        font-size: 0.9rem;
    }

    .newsletter__form {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        flex-wrap: nowrap;
    }

    .newsletter__form input,
    .newsletter__submit {
        width: auto;
        text-align: left;
    }

    .newsletter__inner {
        max-width: 480px;
        padding: 0 1.1rem;
    }

    .newsletter__form input {
        min-height: 46px;
        padding: 0.85rem 1rem;
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        flex: 1 1 auto;
        max-width: none;
    }

    .newsletter__submit {
        height: 50px;
        border-radius: 999px;
        font-size: 1.1rem;
        min-width: 64px;
        margin-left: -66px;
    }

    .agenda__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Galeria da campanha */
.gallery {
    padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(2rem, 5vw, 4rem);
    background: #fff;
}

.gallery__inner {
    margin: 0 auto;
}

.gallery__header {
    margin-bottom: 2rem;
}

.gallery__title {
    font-family: "Montserrat", sans-serif;
    font-size: 2.8rem;
    line-height: 1.1;
    margin: 0;
    color: #1e202b;
}

.gallery__title-strong {
    color: #284274;
    font-weight: 800;
}

.gallery__subtitle {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.55);
}

/* cartão da galeria com scroll e barra lateral */
.gallery__frame {
    margin-top: 2rem;
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
    padding: 1.5rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 1rem;
}

/* área que faz scroll vertical */
.gallery__viewport {
    height: 560px;           /* controla a altura visível */
    overflow-y: auto;
    padding-right: 0.5rem;
    scroll-behavior: smooth;
}

/* esconder scrollbar nativo */
.gallery__viewport::-webkit-scrollbar {
    width: 0;
}
.gallery__viewport {
    scrollbar-width: none;   /* Firefox */
}

/* grelha das imagens */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 0.9rem;
    grid-auto-flow: dense;   /* preenche espaços vazios automaticamente */
}

/* destaques para imitar o layout da referência */
.gallery__item--a {
    grid-column: 1 / span 2;
    grid-row: span 2;
}

.gallery__item {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery__item:hover img {
    transform: scale(1.03);
}

/* barra vertical custom ao lado */
.gallery__scroll-rail {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding-left: 0.3rem;
}

.gallery__scroll-track {
    width: 6px;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        rgba(40, 66, 116, 0.1),
        rgba(40, 66, 116, 0.4),
        rgba(40, 66, 116, 0.1)
    );
    position: relative;
    overflow: hidden;
}

.gallery__scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 6px;
    height: 52px;            /* valor inicial, o JS ajusta */
    border-radius: 999px;
    background: #192b5f;
    transform: translateY(0);
    transition: transform 0.05s linear;
}

/* responsivo */
@media (max-width: 992px) {
    .gallery__frame {
        grid-template-columns: 1fr;
    }

    .gallery__viewport {
        height: auto;
        overflow: visible;
        padding-right: 0;
    }

    .gallery__scroll-rail {
        display: none;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery__item--a,
    .gallery__item--d {
        grid-column: 1 / span 2;
        grid-row: span 1;
    }
}

@media (max-width: 640px) {
    .gallery__title {
        font-size: 2.1rem;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 210px;
    }

    .gallery__item--a,
    .gallery__item--d {
        grid-column: auto;
        grid-row: auto;
    }
}
