
/* ==========================================
   ABA PUBBLICITÀ - STILI PRINCIPALI
   ========================================== */

:root {
    --aba-navy: #071D3B;
    --aba-cyan: #00BDF2;
    --aba-magenta: #E60091;
    --aba-yellow: #FFD500;
    --aba-orange: #FF8500;
    --aba-white: #FFFFFF;
    --aba-text: #333333;
    --aba-muted: #6B7280;
    --aba-light: #F4F6F8;
    --aba-border: #E2E8F0;

    --container: 1200px;
    --radius: 14px;
    --shadow: 0 12px 35px rgba(7,29,59,.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--aba-text);
    background: var(--aba-white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding: 90px 0;
}

.section-dark {
    color: var(--aba-white);
    background: var(--aba-navy);
}

.section-light {
    background: var(--aba-light);
}

.section-title {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 800;
}

.section-description {
    max-width: 720px;
    margin: 0 0 40px;
    color: var(--aba-muted);
    font-size: 17px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.btn-primary {
    color: var(--aba-navy);
    background: var(--aba-yellow);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    color: var(--aba-white);
    border: 1px solid rgba(255,255,255,.55);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255,255,255,.1);
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 850px) {
    .section {
        padding: 65px 0;
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   ABA PUBBLICITÀ - HOMEPAGE
   ========================================== */

/* HEADER */

.site-header {
    position: relative;
    z-index: 10;
    background: var(--aba-navy);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.header-inner {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand img {
    width: 190px;
    max-height: 75px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--aba-white);
    font-size: 14px;
    font-weight: 600;
}

.main-nav a {
    transition: color .2s ease;
}

.main-nav a:hover {
    color: var(--aba-cyan);
}

.header-cta {
    white-space: nowrap;
}

/* HERO */

.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--aba-cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero h1 {
    margin: 0 0 24px;
    color: var(--aba-white);
    font-size: clamp(48px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--aba-yellow);
}

.hero-content > p {
    max-width: 590px;
    margin-bottom: 30px;
    color: rgba(255,255,255,.78);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-note {
    margin-top: 35px;
    color: rgba(255,255,255,.55);
    font-size: 13px;
}

.hero-visual {
    position: relative;
    display: grid;
    min-height: 330px;
    place-items: center;
}

.hero-logo {
    display: grid;
    width: min(100%, 440px);
    min-height: 240px;
    padding: 35px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    background: rgba(255,255,255,.07);
    box-shadow: 0 30px 80px rgba(0,0,0,.2);
}

.hero-logo img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.color-bars {
    display: flex;
    position: absolute;
    right: 5%;
    bottom: 0;
    gap: 8px;
}

.color-bars span {
    width: 45px;
    height: 7px;
    border-radius: 10px;
}

.color-bars span:nth-child(1) { background: var(--aba-cyan); }
.color-bars span:nth-child(2) { background: var(--aba-magenta); }
.color-bars span:nth-child(3) { background: var(--aba-yellow); }
.color-bars span:nth-child(4) { background: var(--aba-orange); }

/* SERVIZI */

.service-card {
    position: relative;
    min-height: 220px;
    padding: 30px;
    border: 1px solid var(--aba-border);
    border-radius: var(--radius);
    background: var(--aba-white);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(7,29,59,.14);
}

.service-card h3 {
    margin: 25px 0 12px;
    color: var(--aba-navy);
    font-size: 21px;
}

.service-card p {
    margin: 0;
    color: var(--aba-muted);
}

.service-number {
    color: var(--aba-cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* AZIENDA */

.company-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 65px;
}

.company-grid p {
    color: var(--aba-muted);
    font-size: 17px;
}

/* PORTFOLIO */

.portfolio-intro {
    padding: 45px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    background: rgba(255,255,255,.06);
}

.portfolio-intro p {
    margin: 0;
    color: rgba(255,255,255,.8);
}

/* PREVENTIVI */

.quote-section {
    text-align: center;
}

.quote-content {
    max-width: 750px;
}

.quote-content > p {
    margin: 0 auto 30px;
    color: rgba(255,255,255,.75);
    font-size: 18px;
}

/* FOOTER */

.site-footer {
    padding: 45px 0;
    color: rgba(255,255,255,.7);
    background: #041328;
    text-align: center;
    font-size: 14px;
}

.site-footer p {
    margin: 7px 0;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 20px 0;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-grid {
        gap: 30px;
    }
}

@media (max-width: 760px) {
    .hero {
        padding: 65px 0;
    }

    .hero-grid,
    .company-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 250px;
    }

    .hero-logo {
        min-height: 190px;
    }

    .header-cta {
        display: none;
    }

    .main-nav {
        gap: 15px;
        font-size: 13px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .portfolio-intro {
        padding: 25px;
    }
}

/* ==========================================
   ABA PUBBLICITÀ - NUOVA IDENTITÀ GRAFICA
   ========================================== */

.aba-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #071d3b;
}

.aba-hero-inner {
    min-height: 640px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 40px;
    padding-top: 75px;
    padding-bottom: 75px;
}

.aba-kicker {
    display: inline-block;
    margin-bottom: 20px;
    color: #00bdf2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.aba-hero h1 {
    margin: 0 0 25px;
    color: #fff;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 1.02;
    letter-spacing: -3px;
}

.aba-hero h1 span,
.aba-section-heading h2 span,
.aba-manifesto h2 span,
.aba-food h2 span,
.aba-contact h2 span {
    color: #00bdf2;
}

.aba-hero-text {
    max-width: 540px;
    color: #d4dfeb;
    font-size: 18px;
    line-height: 1.7;
}

.aba-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
    margin-top: 32px;
}

.aba-text-link {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.aba-text-link span {
    color: #ffd500;
    font-size: 20px;
}

.aba-hero-proof {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 45px;
    color: #aebed0;
    font-size: 13px;
}

.aba-hero-proof span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffd500;
}

/* COMPOSIZIONE HERO */

.aba-hero-art {
    position: relative;
    display: grid;
    min-height: 440px;
    place-items: center;
}

.aba-art-circle {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00bdf2, #e60091);
    opacity: .9;
    filter: blur(1px);
}

.aba-art-frame {
    position: relative;
    z-index: 1;
    width: min(100%, 410px);
    padding: 25px;
    border: 1px solid rgba(255,255,255,.5);
    background: #071d3b;
    box-shadow: 20px 25px 0 #ffd500;
    transform: rotate(-5deg);
}

.aba-art-top,
.aba-art-bottom {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.aba-art-letters {
    padding: 30px 0;
    color: #fff;
    font-size: clamp(90px, 13vw, 155px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -12px;
    text-align: center;
}

.aba-art-bottom {
    padding-top: 16px;
    border-top: 2px solid #00bdf2;
}

.aba-art-tag {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 35px;
    padding: 15px 20px;
    color: #071d3b;
    background: #e60091;
    font-size: 14px;
    font-weight: 900;
    transform: rotate(7deg);
}

.aba-art-line {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 100px;
    height: 100px;
    border: 3px solid #00bdf2;
    transform: rotate(30deg);
}

.aba-hero-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 17px max(20px, calc((100% - 1200px)/2));
    color: #071d3b;
    background: #ffd500;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
}

/* TITOLI SEZIONI */

.aba-section-heading {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: end;
    gap: 45px;
    margin-bottom: 55px;
}

.aba-section-heading h2 {
    margin: 0;
    color: #071d3b;
    font-size: clamp(36px, 4vw, 55px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.aba-section-heading p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}

/* CARDS SERVIZI */

.aba-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.aba-service-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 22px;
    border-radius: 12px;
    background: #f2f5f8;
    transition: transform .25s ease, box-shadow .25s ease;
}

.aba-service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(7,29,59,.15);
}

.aba-card-number {
    display: block;
    color: #071d3b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.aba-card-art {
    position: relative;
    display: grid;
    height: 185px;
    margin: 15px 0;
    overflow: hidden;
    place-items: center;
}

.service-cyan .aba-card-art { background: #00bdf2; }
.service-magenta .aba-card-art { background: #e60091; }
.service-yellow .aba-card-art { background: #ffd500; }
.service-orange .aba-card-art { background: #ff8500; }
.service-blue .aba-card-art { background: #087cb5; }
.service-dark .aba-card-art { background: #071d3b; }

.aba-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.aba-card-bottom h3 {
    margin: 12px 0 5px;
    color: #071d3b;
    font-size: 19px;
    line-height: 1.2;
}

.aba-card-arrow {
    color: #e60091;
    font-size: 26px;
    font-weight: 800;
}

.aba-service-card > p {
    margin: 8px 0 5px;
    color: #586577;
    font-size: 13px;
    line-height: 1.6;
}

/* ILLUSTRAZIONI SERVIZI */

.art-sign-panel {
    padding: 25px 35px;
    border: 8px solid #071d3b;
    color: #fff;
    background: #071d3b;
    box-shadow: 12px 12px 0 rgba(255,255,255,.5);
    font-size: 26px;
    font-weight: 900;
}

.art-sign-light {
    position: absolute;
    top: 22px;
    right: 25px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffd500;
    box-shadow: 0 0 20px #fff;
}

.art-vehicle-body {
    position: relative;
    width: 75%;
    height: 90px;
    border: 5px solid #071d3b;
    border-radius: 20px 40px 8px 8px;
    background: #fff;
    transform: skewX(-8deg);
}

.art-vehicle-body::after {
    content: "ABA";
    position: absolute;
    top: 25px;
    left: 35px;
    color: #e60091;
    font-size: 32px;
    font-weight: 900;
}

.art-vehicle-wheel {
    position: absolute;
    bottom: 30px;
    width: 35px;
    height: 35px;
    border: 6px solid #071d3b;
    border-radius: 50%;
    background: #fff;
}

.wheel-one { left: 22%; }
.wheel-two { right: 20%; }

.art-print-sheet {
    position: absolute;
    width: 105px;
    height: 135px;
    border: 5px solid #fff;
    background: #071d3b;
}

.sheet-one {
    transform: rotate(-14deg) translate(-30px, 5px);
}

.sheet-two {
    background: #e60091;
    transform: rotate(8deg) translate(5px, -5px);
}

.sheet-three {
    background: #00bdf2;
    transform: rotate(20deg) translate(40px, 8px);
}

.art-shirt-shape {
    display: grid;
    width: 135px;
    height: 140px;
    place-items: center;
    clip-path: polygon(25% 0, 42% 12%, 58% 12%, 75% 0, 100% 20%, 85% 48%, 75% 42%, 75% 100%, 25% 100%, 25% 42%, 15% 48%, 0 20%);
    color: #fff;
    background: #071d3b;
    font-size: 27px;
    font-weight: 900;
}

.sticker {
    position: absolute;
    display: grid;
    width: 75px;
    height: 75px;
    place-items: center;
    border: 5px solid #fff;
    border-radius: 20px;
    color: #071d3b;
    background: #ffd500;
    font-size: 42px;
    font-weight: 900;
}

.sticker-a { transform: rotate(-20deg) translate(-65px, 5px); }
.sticker-b { color: #fff; background: #e60091; transform: rotate(12deg); }
.sticker-c { background: #fff; transform: rotate(22deg) translate(65px, 5px); }

.art-banner-shape {
    padding: 15px;
    border: 3px solid #ffd500;
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.05;
    transform: rotate(-8deg);
}

/* MANIFESTO */

.aba-manifesto {
    padding: 100px 0;
    color: #fff;
    background: #071d3b;
}

.aba-manifesto-inner {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
    gap: 70px;
}

.aba-manifesto-mark {
    color: #fff;
    font-size: clamp(100px, 17vw, 220px);
    font-weight: 900;
    letter-spacing: -15px;
}

.aba-manifesto-mark span {
    color: #e60091;
}

.aba-manifesto h2,
.aba-food h2,
.aba-contact h2 {
    margin: 0 0 25px;
    font-size: clamp(40px, 5vw, 65px);
    line-height: 1.05;
    letter-spacing: -2px;
}

.aba-manifesto p,
.aba-food-copy p,
.aba-contact p {
    max-width: 550px;
    margin-bottom: 30px;
    color: #c5d2e0;
    font-size: 17px;
    line-height: 1.8;
}

/* PORTFOLIO */

.aba-portfolio-empty {
    display: grid;
    min-height: 300px;
    padding: 40px;
    place-content: center;
    text-align: center;
    background: #f2f5f8;
    border: 1px dashed #aebdcc;
    border-radius: 14px;
}

.aba-portfolio-symbol {
    color: #e60091;
    font-size: 65px;
    font-weight: 300;
}

.aba-portfolio-empty h3 {
    margin: 5px 0;
    color: #071d3b;
    font-size: 25px;
}

.aba-portfolio-empty p {
    color: #64748b;
}

/* RISTORAZIONE */

.aba-food {
    overflow: hidden;
    padding: 100px 0;
    color: #fff;
    background: #e60091;
}

.aba-food-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.aba-food-art {
    position: relative;
    min-height: 370px;
}

.food-card {
    position: absolute;
    display: grid;
    place-items: center;
    width: 190px;
    height: 245px;
    padding: 20px;
    color: #071d3b;
    background: #fff;
    box-shadow: 15px 20px 40px rgba(0,0,0,.2);
    font-size: 32px;
    font-weight: 900;
    text-align: center;
}

.food-card-one {
    top: 15px;
    left: 15px;
    transform: rotate(-12deg);
}

.food-card-two {
    top: 55px;
    left: 150px;
    color: #fff;
    background: #071d3b;
    transform: rotate(9deg);
}

.food-card-three {
    top: 150px;
    left: 90px;
    width: 120px;
    height: 120px;
    border: 9px solid #ffd500;
    border-radius: 50%;
    color: #071d3b;
    background: #00bdf2;
}

.aba-food h2 span {
    color: #ffd500;
}

.aba-food-copy p {
    color: rgba(255,255,255,.9);
}

/* CONTATTI */

.aba-contact {
    color: #fff;
    background: #071d3b;
    text-align: center;
}

.aba-contact-inner {
    max-width: 850px;
}

.aba-contact h2 span {
    color: #ffd500;
}

.aba-contact p {
    margin: 0 auto 30px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .aba-hero-inner {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }

    .aba-hero-art {
        min-height: 360px;
    }

    .aba-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aba-manifesto-inner,
    .aba-food-inner {
        grid-template-columns: 1fr;
    }

    .aba-manifesto-mark {
        font-size: 120px;
    }

    .aba-section-heading {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 560px) {
    .aba-hero-inner {
        min-height: auto;
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .aba-hero h1 {
        font-size: 46px;
        letter-spacing: -2px;
    }

    .aba-hero-text {
        font-size: 16px;
    }

    .aba-hero-art {
        min-height: 300px;
    }

    .aba-art-circle {
        width: 250px;
        height: 250px;
    }

    .aba-art-frame {
        width: 85%;
    }

    .aba-art-letters {
        font-size: 95px;
    }

    .aba-hero-bottom {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 9px;
    }

    .aba-service-grid {
        grid-template-columns: 1fr;
    }

    .aba-section-heading h2,
    .aba-manifesto h2,
    .aba-food h2,
    .aba-contact h2 {
        font-size: 38px;
    }

    .aba-food-art {
        min-height: 300px;
        transform: scale(.85);
        transform-origin: left center;
    }

    .aba-manifesto,
    .aba-food {
        padding: 70px 0;
    }
}
    
/* ==========================================
   ABA - ANIMAZIONI HOMEPAGE
   ========================================== */

/* Entrata iniziale della hero */

.aba-js .aba-hero-copy {
    animation: abaHeroEnter .9s ease both;
}

.aba-js .aba-hero-art {
    animation: abaHeroEnter 1.1s .15s ease both;
}

.aba-js .aba-art-circle {
    animation: abaCircleFloat 7s ease-in-out infinite;
}

.aba-js .aba-art-frame {
    animation: abaFrameFloat 6s ease-in-out infinite;
}

.aba-js .aba-art-tag {
    animation: abaTagFloat 4s ease-in-out infinite;
}

.aba-js .aba-art-line {
    animation: abaLineFloat 8s ease-in-out infinite;
}

/* Comparsa delle sezioni */

.aba-reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity .7s ease,
        transform .7s ease;
}

.aba-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Comparsa progressiva delle schede */

.aba-service-card:nth-child(2) {
    transition-delay: .08s;
}

.aba-service-card:nth-child(3) {
    transition-delay: .16s;
}

.aba-service-card:nth-child(4) {
    transition-delay: .08s;
}

.aba-service-card:nth-child(5) {
    transition-delay: .16s;
}

/* Movimento delle illustrazioni */

.aba-service-card:hover .art-sign-panel {
    transform: scale(1.06);
}

.art-sign-panel {
    transition: transform .35s ease;
}

.aba-service-card:hover .art-sign-light {
    box-shadow: 0 0 28px #fff;
}

.art-sign-light {
    transition: box-shadow .3s ease;
}

.aba-service-card:hover .art-vehicle-body {
    transform: skewX(-8deg) translateX(7px);
}

.art-vehicle-body {
    transition: transform .4s ease;
}

.aba-service-card:hover .art-print-sheet {
    transform: rotate(0deg) translate(0, 0);
}

.art-print-sheet {
    transition: transform .4s ease;
}

.aba-service-card:hover .art-shirt-shape {
    transform: translateY(-7px) rotate(-3deg);
}

.art-shirt-shape {
    transition: transform .4s ease;
}

.aba-service-card:hover .sticker-a {
    transform: rotate(-30deg) translate(-75px, 0);
}

.aba-service-card:hover .sticker-c {
    transform: rotate(30deg) translate(75px, 0);
}

.sticker {
    transition: transform .4s ease;
}

.aba-service-card:hover .art-banner-shape {
    transform: rotate(0deg) scale(1.06);
}

.art-banner-shape {
    transition: transform .4s ease;
}

/* Movimento dei materiali per la ristorazione */

.aba-food-art .food-card-one {
    animation: abaFoodOne 6s ease-in-out infinite;
}

.aba-food-art .food-card-two {
    animation: abaFoodTwo 7s ease-in-out infinite;
}

.aba-food-art .food-card-three {
    animation: abaFoodThree 5s ease-in-out infinite;
}

/* Animazioni */

@keyframes abaHeroEnter {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes abaCircleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.04);
    }
}

@keyframes abaFrameFloat {
    0%, 100% {
        transform: rotate(-5deg) translateY(0);
    }
    50% {
        transform: rotate(-3deg) translateY(-9px);
    }
}

@keyframes abaTagFloat {
    0%, 100% {
        transform: rotate(7deg) translateY(0);
    }
    50% {
        transform: rotate(10deg) translateY(-8px);
    }
}

@keyframes abaLineFloat {
    0%, 100% {
        transform: rotate(30deg) translateY(0);
    }
    50% {
        transform: rotate(40deg) translateY(-12px);
    }
}

@keyframes abaFoodOne {
    0%, 100% { transform: rotate(-12deg) translateY(0); }
    50% { transform: rotate(-9deg) translateY(-9px); }
}

@keyframes abaFoodTwo {
    0%, 100% { transform: rotate(9deg) translateY(0); }
    50% { transform: rotate(6deg) translateY(-12px); }
}

@keyframes abaFoodThree {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Accessibilità: riduzione delle animazioni */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .aba-reveal {
        opacity: 1;
        transform: none;
    }

}

/* ==========================================
   ABA PUBBLICITÀ - ANIMAZIONE HERO
   ========================================== */

@keyframes abaHeroEnter {
    from {
        opacity: 0;
        transform: translateY(45px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes abaCircleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-18px) scale(1.05);
    }
}

@keyframes abaFrameFloat {
    0%, 100% {
        transform: rotate(-5deg) translateY(0);
    }
    50% {
        transform: rotate(-2deg) translateY(-12px);
    }
}

@keyframes abaTagFloat {
    0%, 100% {
        transform: rotate(7deg) translateY(0);
    }
    50% {
        transform: rotate(11deg) translateY(-10px);
    }
}

.aba-hero-copy {
    animation: abaHeroEnter 1s ease both;
}

.aba-hero-art {
    animation: abaHeroEnter 1.2s .2s ease both;
}

.aba-art-circle {
    animation: abaCircleFloat 6s ease-in-out infinite;
}

.aba-art-frame {
    animation: abaFrameFloat 5s ease-in-out infinite;
}

.aba-art-tag {
    animation: abaTagFloat 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .aba-hero-copy,
    .aba-hero-art,
    .aba-art-circle,
    .aba-art-frame,
    .aba-art-tag {
        animation: none !important;
    }
}

/* ABA PUBBLICITÀ - ATTIVAZIONE ANIMAZIONI HERO */

.aba-hero-copy {
    animation: abaHeroEnter 1s ease both;
}

.aba-hero-art {
    animation: abaHeroEnter 1.2s .2s ease both;
}

.aba-art-circle {
    animation: abaCircleFloat 6s ease-in-out infinite;
}

.aba-art-frame {
    animation: abaFrameFloat 5s ease-in-out infinite;
}

.aba-art-tag {
    animation: abaTagFloat 4s ease-in-out infinite;
}

.aba-art-line {
    animation: abaLineFloat 7s ease-in-out infinite;
}

/* ABA PUBBLICITÀ - ANIMAZIONI HERO */

@keyframes abaCircleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-22px) scale(1.06);
    }
}

@keyframes abaFrameFloat {
    0%, 100% {
        transform: rotate(-5deg) translateY(0);
    }
    50% {
        transform: rotate(-2deg) translateY(-14px);
    }
}

@keyframes abaTagFloat {
    0%, 100% {
        transform: rotate(7deg) translateY(0);
    }
    50% {
        transform: rotate(11deg) translateY(-12px);
    }
}

@keyframes abaHeroEnter {
    from {
        opacity: 0;
        translate: 0 35px;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

.aba-hero-copy {
    animation: abaHeroEnter 1s ease both;
}

.aba-hero-art {
    animation: abaHeroEnter 1.2s .2s ease both;
}

.aba-art-circle {
    animation: abaCircleFloat 6s ease-in-out infinite;
}

.aba-art-frame {
    animation: abaFrameFloat 5s ease-in-out infinite;
}

.aba-art-tag {
    animation: abaTagFloat 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .aba-hero-copy,
    .aba-hero-art,
    .aba-art-circle,
    .aba-art-frame,
    .aba-art-tag {
        animation: none !important;
    }
}

/* ==========================================
   ABA PUBBLICITÀ - GALLERIA PORTFOLIO
   Aggiunta non invasiva - 15 novembre 2026
   ========================================== */

.aba-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.aba-portfolio-item {
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f5f8;
    box-shadow: 0 10px 30px rgba(7,29,59,.10);
    transition: transform .3s ease, box-shadow .3s ease;
}

.aba-portfolio-item:hover,
.aba-portfolio-item:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(7,29,59,.18);
}

.aba-portfolio-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8eef3;
}

.aba-portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: none;
}

.aba-portfolio-item:hover .aba-portfolio-image img {
    transform: none;
}

.aba-portfolio-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
}

.aba-portfolio-category {
    display: block;
    margin-bottom: 5px;
    color: #087cb5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.aba-portfolio-info h3 {
    margin: 0;
    color: var(--aba-navy);
    font-size: 18px;
    line-height: 1.3;
}

.aba-portfolio-open {
    flex: 0 0 auto;
    color: var(--aba-magenta);
    font-size: 25px;
    font-weight: 700;
}

.aba-portfolio-note {
    margin: 24px 0 0;
    color: var(--aba-muted);
    font-size: 14px;
}

@media (max-width: 900px) {
    .aba-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .aba-portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aba-portfolio-item,
    .aba-portfolio-image img {
        transition: none;
    }
}

/* ABA Pubblicità — collage fotografico della hero */
.aba-hero-collage {
    position: relative;
    min-width: 0;
    height: 455px;
    isolation: isolate;
}
.aba-hero-collage::before {
    content: "";
    position: absolute;
    inset: 12% 12%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,189,242,.35), rgba(230,0,145,.16) 60%, transparent 73%);
}
.aba-collage-photo {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 9px;
    background: #183452;
    box-shadow: 0 20px 40px rgba(0,0,0,.28);
    transition: transform .35s ease, box-shadow .35s ease;
}
.aba-collage-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.aba-collage-photo-1 {
    top: 1%; left: 3%; width: 70%; height: 55%; z-index: 2;
    transform: rotate(-5deg);
}
.aba-collage-photo-2 {
    top: 27%; right: 0; width: 59%; height: 49%; z-index: 3;
    border-color: #ffd500;
    transform: rotate(7deg);
}
.aba-collage-photo-3 {
    bottom: 1%; left: 8%; width: 55%; height: 40%; z-index: 4;
    border-color: #00bdf2;
    transform: rotate(-4deg);
}
.aba-collage-photo-1:hover { transform: rotate(-2deg) scale(1.035); }
.aba-collage-photo-2:hover { transform: rotate(3deg) scale(1.035); }
.aba-collage-photo-3:hover { transform: rotate(-1deg) scale(1.035); }
.aba-collage-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 9px 13px;
    color: #071d3b;
    background: #ffd500;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}
.aba-collage-caption span { color: #e60091; }
.aba-manifesto-logo { display: flex; align-items: center; justify-content: center; }
.aba-manifesto-logo img { width: min(100%, 360px); height: auto; object-fit: contain; }
@media (max-width: 900px) {
    .aba-hero-collage { width: min(100%, 550px); margin: 0 auto; }
}
@media (max-width: 560px) {
    .aba-hero-collage { height: 315px; }
    .aba-collage-photo { border-width: 3px; }
    .aba-collage-caption { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .aba-collage-photo { transition: none; }
}

/* =========================================================
   ABA PUBBLICITÀ - PENNELLI SVG / SCROLL E VISIBILITÀ
   Mantiene 6 pennellate, intervallo 0,55s, durata 2,35s.
   ========================================================= */
.aba-brush-section{padding:80px 0 88px;background:#fff;overflow:hidden}
.aba-brush-heading{max-width:760px;margin-bottom:30px}
.aba-brush-heading h2{margin:0 0 10px;color:#071d3b;font-size:clamp(32px,4vw,54px);line-height:1.12;letter-spacing:-1.5px}
.aba-brush-heading p{color:#64748b;margin:0;font-size:17px}
.aba-brush-stage{position:relative;isolation:isolate;padding:20px 10px 40px;overflow:visible}
.aba-brush-row{--aba-brush-duration:2.35s;position:relative;display:block;height:44.5px;margin-bottom:1px;outline-offset:2px}
.aba-brush-track{position:absolute;left:8%;right:6%;top:31px;height:47px}
.aba-brush-paint{position:absolute;inset:0;display:block;color:var(--aba-paint);clip-path:inset(0 0 0 0)}
.aba-brush-paint svg{position:absolute;inset:0;display:block;width:100%;height:100%}
.aba-brush-label{position:absolute;inset:0;display:flex;align-items:center;padding-left:clamp(12px,4vw,42px);color:#071d3b;font-size:clamp(14px,2.6vw,24px);font-weight:900;line-height:1.1;white-space:nowrap;letter-spacing:.01em}
/* Il pennello resta SOPRA la pennellata; nessun lazy-loading o clipping. */
.aba-brush-image{position:absolute;top:0;left:94%;z-index:20;display:block;width:clamp(100px,14vw,145px);height:auto;max-width:none;transform:translate(-50%,-30%);filter:drop-shadow(2px 4px 3px rgba(0,0,0,.2));pointer-events:none;opacity:1;visibility:visible}
.aba-brush-row:hover .aba-brush-paint{filter:brightness(1.04)}
/* Stato iniziale: se JavaScript è assente, il contenuto rimane leggibile. */
.aba-brush-ready:not(.aba-brush-playing) .aba-brush-paint{clip-path:inset(0 100% 0 0)}
.aba-brush-ready:not(.aba-brush-playing) .aba-brush-image{left:8%;opacity:0}
.aba-brush-ready.aba-brush-playing .aba-brush-paint{animation:abaBrushPaint var(--aba-brush-duration) cubic-bezier(.18,.55,.38,1) var(--aba-brush-delay) both}
.aba-brush-ready.aba-brush-playing .aba-brush-image{animation:abaBrushTravel var(--aba-brush-duration) cubic-bezier(.18,.55,.38,1) var(--aba-brush-delay) both}
@keyframes abaBrushPaint{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes abaBrushTravel{0%{left:8%;opacity:1}100%{left:94%;opacity:1}}
@media(max-width:650px){
 .aba-brush-section{padding:62px 0 65px}
 .aba-brush-stage{padding:14px 0 35px}
 .aba-brush-row{height:36px}
 .aba-brush-track{left:13%;right:3%;top:25px;height:37px}
 .aba-brush-image{width:105px;left:97%;transform:translate(-48%,-30%)}
 .aba-brush-label{font-size:clamp(11px,3.3vw,15px);padding-left:13px}
 .aba-brush-ready:not(.aba-brush-playing) .aba-brush-image{left:13%}
 .aba-brush-ready.aba-brush-playing .aba-brush-image{animation-name:abaBrushTravelMobile}
 @keyframes abaBrushTravelMobile{0%{left:13%;opacity:1}100%{left:97%;opacity:1}}
}
@media(prefers-reduced-motion:reduce){
 .aba-brush-paint{clip-path:none!important;animation:none!important}
 .aba-brush-image{left:94%;opacity:1!important;animation:none!important}
}

/* ABA Pubblicità — correzione area cliccabile dei pennelli.
   Le righe si sovrappongono verticalmente: il contenitore non
   intercetta i clic, mentre pennellata e pennello rimangono attivi. */
/* Area cliccabile indipendente per ogni categoria */
.aba-brush-row {
    pointer-events: none;
}

.aba-brush-track {
    pointer-events: auto;
}

/* Il pennello non intercetta i clic delle altre categorie */
.aba-brush-image {
    pointer-events: none;
}

/* Area cliccabile dedicata al pennello */
.aba-brush-row::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(100px, 14vw, 145px);
    height: 44.5px;
    z-index: 21;
    pointer-events: auto;
}

@media (max-width: 650px) {
    .aba-brush-row::after {
        width: 105px;
        height: 36px;
    }
}

/* ABA Pubblicita - evidenza link privacy nel modulo preventivi */
.aba-contact a[href$="/privacy"],
.aba-contact a[href*="/privacy?"] {
    color: var(--aba-yellow);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    font-weight: 700;
}
.aba-contact a[href$="/privacy"]:hover,
.aba-contact a[href*="/privacy?"]:hover {
    color: #fff;
}
.aba-contact a[href$="/privacy"]:focus-visible,
.aba-contact a[href*="/privacy?"]:focus-visible {
    outline: 2px solid var(--aba-yellow);
    outline-offset: 3px;
}

/* ABA Pubblicità — fotografie intere nella galleria del dettaglio progetto.
   Selettori limitati alla pagina dettaglio: non alterano la homepage. */
#portfolio-dettaglio .aba-portfolio-image img {
    object-fit: contain;
    transform: none;
}
#portfolio-dettaglio .aba-portfolio-item:hover .aba-portfolio-image img,
#portfolio-dettaglio .aba-portfolio-item:focus-visible .aba-portfolio-image img {
    transform: none;
}
