//* =========================
   A3D57 - STILE GENERALE
   ========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;

    color: #111;

    background: #fff;

    overflow-x: hidden;
}


/* =========================
   HEADER
   ========================= */

.home-header {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 24px 4%;

    border-bottom: 1px solid #e5e5e5;

    background: #fff;

    position: relative;

    z-index: 100;
}


/* LOGO ALTO SINISTRA */

.home-logo {
    display: block;

    flex-shrink: 0;
}

.home-logo img {
    display: block;

    width: 185px;

    max-width: 100%;

    height: auto;
}


/* =========================
   MENU PRINCIPALE
   ========================= */

.home-nav {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-wrap: nowrap;

    gap: 24px;

    margin-left: auto;
}

.home-nav > a,
.dropdown-button {
    display: block;

    margin: 0;

    padding: 10px 0;

    border: none;

    background: transparent;

    color: #111;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 12px;

    font-weight: 400;

    letter-spacing: 1px;

    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;
}

.home-nav > a:hover,
.dropdown-button:hover {
    opacity: 0.55;
}


/* =========================
   MENU A TENDINA
   ========================= */

.dropdown {
    position: relative;

    display: block;

    flex-shrink: 0;
}

.dropdown-menu {
    display: none;

    position: absolute;

    top: 100%;

    left: 0;

    min-width: 235px;

    margin: 0;

    padding: 5px 0;

    background: #fff;

    border-top: 2px solid #244c40;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);

    z-index: 200;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;

    padding: 12px 18px;

    color: #111;

    font-size: 13px;

    line-height: 1.4;

    text-decoration: none;

    white-space: nowrap;

    border-bottom: 1px solid #eee;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}


/* =========================
   CONTATTI
   ========================= */

.contact-menu {
    left: auto;

    right: 0;

    width: 300px;

    padding: 22px;
}

.contact-menu strong {
    display: block;

    margin-bottom: 14px;

    font-size: 15px;

    font-weight: 500;
}

.contact-menu p {
    margin: 0 0 12px 0;

    font-size: 13px;

    line-height: 1.6;

    color: #444;
}

.contact-menu a {
    display: block;

    padding: 0;

    border: none;

    color: #111;

    text-decoration: none;
}

.contact-menu a:hover {
    color: #244c40;

    background: transparent;
}


/* =========================
   HERO
   ========================= */

.hero {
    min-height: 60vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 70px 30px;

    border-bottom: 1px solid #eee;
}

.hero-content {
    width: 100%;

    max-width: 950px;

    margin: 0 auto;

    text-align: center;
}


/* LOGO CENTRALE */

.hero-logo {
    display: block;

    width: 600px;

    max-width: 80vw;

    height: auto;

    margin: 0 auto 28px auto;
}

.hero-subtitle {
    margin: 0;

    font-size: 17px;

    line-height: 1.7;

    letter-spacing: 1px;

    color: #444;
}

.hero-line {
    width: 80px;

    height: 3px;

    margin: 30px auto 0 auto;

    background: #244c40;
}


/* =========================
   SEZIONI
   ========================= */

.home-section {
    max-width: 1200px;

    margin: 0 auto;

    padding: 80px 30px;
}

.home-section h2 {
    margin: 0 0 32px;

    font-size: 34px;

    font-weight: 400;

    letter-spacing: 0.4px;
}

.home-section h3 {
    font-weight: 400;
}

.home-section > p {
    max-width: 900px;

    font-size: 17px;

    line-height: 1.8;

    color: #444;
}


/* =========================
   CARDS
   ========================= */

.home-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;

    margin-top: 45px;
}

.home-card {
    border-top: 1px solid #222;

    padding-top: 20px;
}

.home-card h3 {
    margin: 0 0 12px;

    font-size: 20px;

    font-weight: 400;
}

.home-card p {
    margin: 0 0 18px;

    font-size: 15px;

    line-height: 1.7;

    color: #555;
}

.home-card a {
    font-size: 12px;

    letter-spacing: 0.8px;

    color: #111;

    text-decoration: none;
}

.home-card a:hover {
    text-decoration: underline;
}


/* =========================
   TESTI INTERNI
   ========================= */

.profile-text,
.service-text,
.media-text,
.content {
    max-width: 930px;

    font-size: 16px;

    line-height: 1.8;

    color: #444;
}

.profile-text p,
.service-text p,
.media-text p,
.content p {
    margin: 0 0 22px;
}

.profile-text h3,
.service-text h3,
.media-text h3,
.content h3 {
    margin-top: 42px;

    margin-bottom: 15px;

    font-size: 22px;

    font-weight: 400;

    color: #111;
}

.profile-text ul,
.service-text ul,
.media-text ul,
.content ul {
    margin: 0;

    padding-left: 20px;

    line-height: 1.8;
}

.profile-text li,
.service-text li,
.media-text li,
.content li {
    margin-bottom: 5px;
}

.profile-text a,
.service-text a,
.media-text a,
.content a {
    color: #111;

    text-decoration: none;
}

.profile-text a:hover,
.service-text a:hover,
.media-text a:hover,
.content a:hover {
    text-decoration: underline;
}


/* =========================
   PORTFOLIO
   ========================= */

.portfolio-section {
    background: #f6f6f4;
}

.portfolio-inner {
    max-width: 1200px;

    margin: auto;

    padding: 80px 30px;
}

.portfolio-inner h2 {
    margin-top: 0;

    font-size: 34px;

    font-weight: 400;
}


/* =========================
   IMMAGINI
   ========================= */

img {
    max-width: 100%;

    height: auto;
}


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

.home-footer {
    display: flex;

    justify-content: space-between;

    gap: 30px;

    padding: 40px 5%;

    border-top: 1px solid #ddd;

    font-size: 12px;

    line-height: 1.7;

    color: #555;
}

.home-footer a {
    color: inherit;

    text-decoration: none;
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 1200px) {

    .home-nav {
        gap: 14px;
    }

    .home-nav > a,
    .dropdown-button {
        font-size: 11px;
    }

    .home-logo img {
        width: 165px;
    }
}


/* =========================
   TABLET PICCOLO
   ========================= */

@media (max-width: 950px) {

    .home-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 18px;
    }

    .home-nav {
        width: 100%;

        justify-content: flex-start;

        flex-wrap: wrap;

        gap: 8px 18px;
    }

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

    .hero {
        min-height: 52vh;

        padding: 55px 25px;
    }

    .home-footer {
        flex-direction: column;
    }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 600px) {

    body {
        font-size: 16px;

        line-height: 1.6;
    }


    /* HEADER */

    .home-header {
        padding: 20px 22px;

        flex-direction: column;

        align-items: flex-start;

        gap: 15px;
    }

    .home-logo img {
        width: 150px;
    }


    /* MENU MOBILE */

    .home-nav {
        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        justify-content: flex-start;

        flex-wrap: nowrap;

        gap: 0;

        margin: 0;
    }

    .home-nav > a,
    .dropdown-button {
        width: 100%;

        padding: 9px 0;

        font-size: 11px;

        letter-spacing: 0.7px;

        text-align: left;

        white-space: normal;
    }

    .dropdown {
        width: 100%;
    }


    /* DROPDOWN SEMPRE VISIBILI SU MOBILE */

    .dropdown-menu {
        display: block;

        position: static;

        width: 100%;

        min-width: 0;

        margin: 0;

        padding: 0 0 6px 15px;

        border-top: none;

        box-shadow: none;

        background: transparent;
    }

    .dropdown-menu a {
        display: block;

        width: 100%;

        padding: 7px 0;

        font-size: 12px;

        line-height: 1.4;

        white-space: normal;

        border-bottom: none;
    }

    .dropdown-menu a:hover {
        background: transparent;
    }


    /* CONTATTI MOBILE */

    .contact-menu {
        width: 100%;

        padding: 8px 0 8px 15px;
    }

    .contact-menu strong {
        font-size: 13px;
    }

    .contact-menu p {
        font-size: 12px;
    }


    /* HERO */

    .hero {
        min-height: auto;

        padding: 55px 22px;
    }

    .hero-content {
        width: 100%;

        max-width: 100%;
    }

    .hero-logo {
        width: 220px;

        max-width: 80vw;

        margin-left: auto;

        margin-right: auto;
    }

    .hero-subtitle {
        font-size: 14px;

        line-height: 1.6;

        letter-spacing: 0.7px;
    }

    .hero-line {
        margin-top: 25px;
    }


    /* SEZIONI */

    .home-section,
    .portfolio-inner {
        width: 100%;

        max-width: 100%;

        margin: 0;

        padding: 55px 22px;
    }

    .home-section h2,
    .portfolio-inner h2 {
        margin-bottom: 28px;

        font-size: 29px;

        text-align: left;
    }

    .home-section h3 {
        text-align: left;
    }


    /* TESTI */

    .profile-text,
    .service-text,
    .media-text,
    .content {
        width: 100%;

        max-width: 100%;

        margin-left: 0;

        margin-right: 0;

        padding: 0;

        font-size: 16px;

        line-height: 1.7;

        text-align: left;
    }

    .profile-text p,
    .service-text p,
    .media-text p,
    .content p {
        margin: 0 0 20px;

        text-align: left;
    }


    /* LISTE */

    .profile-text ul,
    .service-text ul,
    .media-text ul,
    .content ul,
    .home-section ul {
        width: 100%;

        margin-left: 0;

        margin-right: 0;

        padding-left: 20px;

        text-align: left;
    }

    .profile-text li,
    .service-text li,
    .media-text li,
    .content li,
    .home-section li {
        text-align: left;
    }


    /* CARDS */

    .home-grid {
        grid-template-columns: 1fr;

        gap: 30px;

        margin-top: 35px;
    }


    /* LINK LUNGHI */

    .home-section a,
    .profile-text a,
    .service-text a,
    .media-text a {
        overflow-wrap: anywhere;
    }


    /* FOOTER */

    .home-footer {
        flex-direction: column;

        gap: 18px;

        padding: 35px 22px;

        text-align: left;
    }
}