
/* =========================================
   GRUPPO BONACCORSO - FOGLIO DI STILE
   ========================================= */

/* IMPOSTAZIONI GENERALI */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

/* HEADER E MENU */

header {
    width: 100%;
    min-height: 90px;
    padding: 12px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.logo img {
    max-width: 220px;
    max-height: 65px;
    object-fit: contain;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #e30613;
}

/* COPERTINA PRINCIPALE */

.hero {
    min-height: 1500px;
    display: flex;
    align-items: center;
    padding: 80px 10%;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.75),
            rgba(0,0,0,0.15)
        ),
        url("immagini/copertina.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 750px;
    color: white;
}

.sottotitolo {
    display: block;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero p {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 650px;
}

.btn {
    display: inline-block;
    padding: 16px 30px;
    background: #e30613;
    color: white;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #b9000b;
}

/* SEZIONE AZIENDA */

.azienda-section {
    padding: 100px 8%;
    background: #fff;
}

.azienda-content {
    max-width: 1100px;
    margin: 0 auto;
}

.azienda-content > span {
    display: block;
    color: #e30613;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.azienda-content h2 {
    color: #222;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.azienda-content p {
    color: #555;
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.azienda-content h3 {
    color: #222;
    font-size: 23px;
    margin-top: 35px;
    margin-bottom: 15px;
}

/* SEZIONE NUMERI */

.numeri-section {
    padding: 90px 8%;
    background: #f5f5f5;
}

.numeri-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 55px;
}

.numeri-header span {
    display: block;
    color: #e30613;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.numeri-header h2 {
    color: #222;
    font-size: 38px;
    margin-bottom: 15px;
}

.numeri-header p {
    color: #666;
    font-size: 17px;
}

.numeri-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.numero-card {
    background: #fff;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 4px solid #e30613;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}

.numero-card h3 {
    color: #222;
    font-size: 55px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.numero-card p {
    color: #666;
    font-size: 16px;
}

/* STORIA DEL GRUPPO BONACCORSO */

.storia-section {
    width: 100%;
    padding: 100px 8%;
    background: #fff;
}

.storia-content {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 35px 55px;
    align-items: stretch;
}

.storia-foto {
    grid-column: 1;
    grid-row: 1 / 3;
    min-height: 100%;
    overflow: hidden;
}

.storia-foto img {
    width: 100%;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
    display: block;
}

.storia-testo {
    grid-column: 2;
    grid-row: 1;
}

.storia-testo > span {
    display: block;
    color: #e30613;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.storia-testo h2 {
    color: #222;
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 25px;
}

.storia-testo p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.storia-testo h3 {
    color: #333;
    font-size: 18px;
    line-height: 1.6;
    margin-top: 25px;
}

.storia-anno {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    background: #292929;
    color: #fff;
    padding: 25px 30px;
    text-align: center;
    border-left: 5px solid #e30613;
}

.storia-anno span {
    display: block;
    color: #fff;
    font-size: 55px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 8px;
}

.storia-anno p {
    font-size: 15px;
    line-height: 1.5;
}

/* SEZIONE NEGOZI */

.negozi-section {
    padding: 100px 8%;
    background: #f5f5f5;
}

.negozi-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 55px;
}

.negozi-header span {
    display: block;
    color: #e30613;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.negozi-header h2 {
    color: #222;
    font-size: 40px;
    margin-bottom: 15px;
}

.negozi-header p {
    color: #666;
    font-size: 17px;
}

.negozi-grid {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.negozio-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-bottom: 4px solid #e30613;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.negozio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.negozio-tipo {
    display: inline-block;
    color: #e30613;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.negozio-card h3 {
    color: #222;
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.negozio-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.negozio-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.negozio-links a {
    display: inline-block;
    padding: 9px 13px;
    color: #fff;
    background: #f58220;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    transition: opacity 0.3s ease;
}

.negozio-links a:last-child {
    background: #1877f2;
}

.negozio-links a:hover {
    opacity: 0.8;
}

/* SEZIONE PERSONE */

.persone-section {
    padding: 110px 8%;
    background: #292929;
    color: #fff;
}

.persone-content {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.persone-content > span {
    display: block;
    color: #e30613;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.persone-content h2 {
    color: #fff;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 30px;
}

.persone-content p {
    color: #ddd;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.persone-content h3 {
    color: #fff;
    font-size: 22px;
    margin-top: 35px;
}

/* SEZIONE LAVORA CON NOI */

.lavora-section {
    width: 100%;
    padding: 100px 8%;
    background: #f5f5f5;
}

.lavora-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.lavora-content > span {
    display: block;
    color: #e30613;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.lavora-content h2 {
    color: #222;
    font-size: 42px;
    margin-bottom: 25px;
}

.lavora-content p {
    color: #555;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.lavora-button {
    display: inline-block;
    margin-top: 25px;
    padding: 16px 32px;
    background: #e30613;
    color: white;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.lavora-button:hover {
    background: #b9000b;
}

/* FOOTER */

.footer {
    background: #202020;
    color: #fff;
    padding: 65px 8% 0;
}

.footer-content {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-brand img {
    max-width: 180px;
    max-height: 65px;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-brand h2 {
    color: #fff;
    font-size: 23px;
    margin-bottom: 5px;
}

.footer-brand p {
    color: #ddd;
    margin-bottom: 10px;
}

.footer-brand span {
    color: #aaa;
    font-size: 13px;
}

.footer-links h3,
.footer-contact h3 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: #bbb;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact p {
    color: #bbb;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-social {
    display: inline-block;
    color: #fff;
    margin-top: 15px;
    font-size: 14px;
}

.footer-social:hover {
    color: #e30613;
}

.footer-bottom {
    max-width: 1250px;
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid #444;
    text-align: center;
}

.footer-legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 15px;
}

.footer-legal a {
    color: #bbb;
    font-size: 13px;
}

.footer-legal a:hover {
    color: #fff;
}

.footer-bottom p {
    color: #888;
    font-size: 12px;
}

/* BANNER COOKIE */

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 25px;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-top: 4px solid #e30613;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    z-index: 9999;
}

.cookie-banner-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.cookie-banner-content p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-banner-links {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.cookie-banner-links a {
    color: #e30613;
    font-size: 13px;
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-banner-buttons button {
    padding: 11px 18px;
    border: none;
    background: #e30613;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
}

.cookie-banner-buttons button:hover {
    background: #b9000b;
}

#cookie-preferences {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #ddd;
}

#cookie-preferences h3 {
    margin-bottom: 10px;
}

#cookie-preferences label {
    display: block;
    margin: 15px 0;
    font-size: 14px;
}

/* ADATTAMENTO TABLET */

@media (max-width: 1000px) {

    header {
        padding: 15px 5%;
    }

    nav {
        gap: 15px;
    }

    .hero h1 {
        font-size: 52px;
    }

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

    .storia-content {
        gap: 30px;
    }

    .storia-testo h2 {
        font-size: 32px;
    }
}

/* ADATTAMENTO SMARTPHONE */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 5%;
    }

    .logo img {
        max-width: 180px;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        min-height: 650px;
        padding: 70px 7%;
        background-position: center;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 16px;
    }

    .sottotitolo {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .azienda-section,
    .numeri-section,
    .negozi-section,
    .storia-section,
    .persone-section,
    .lavora-section {
        padding: 65px 7%;
    }

    .azienda-content h2,
    .numeri-header h2,
    .negozi-header h2,
    .persone-content h2,
    .lavora-content h2 {
        font-size: 30px;
    }

    .azienda-content p,
    .persone-content p,
    .lavora-content p {
        font-size: 15px;
    }

    .numeri-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .numero-card {
        padding: 30px 20px;
    }

    .numero-card h3 {
        font-size: 45px;
    }

    /* STORIA: FOTO, TESTO E ANNO IN VERTICALE */

    .storia-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .storia-foto {
        width: 100%;
        min-height: auto;
    }

    .storia-foto img {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: 400px;
        object-fit: cover;
    }

    .storia-testo h2 {
        font-size: 30px;
    }

    .storia-testo p {
        font-size: 15px;
    }

    .storia-anno {
        width: 100%;
        padding: 30px 20px;
    }

    .storia-anno span {
        font-size: 48px;
    }

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

    .negozio-card {
        padding: 25px;
    }

    .footer {
        padding: 50px 7% 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-legal {
        gap: 12px 20px;
    }

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 18px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-banner-buttons button {
        width: 100%;
    }
}

/* RACCONTO DEL PASSAGGIO GENERAZIONALE */
.storia-generazione {
    margin: 30px 0;
    padding: 25px 28px;
    background: #f7f7f5;
    border-left: 4px solid #e30613;
    border-radius: 0 10px 10px 0;
}

.storia-generazione > span {
    display: block;
    margin-bottom: 12px;
    color: #a80712;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.storia-generazione p {
    margin: 0;
    color: #444;
    font-size: 15px;
    line-height: 1.85;
}

/* MARGHERITA UFFICIALE CONAD */

.negozio-links a:first-child::before {
    content: "";
    display: inline-block;
    width: 19px;
    height: 19px;
    margin-right: 7px;
    vertical-align: middle;
    background-image: url("https://chisiamo.conad.it/assets/icons/loghi/insegne-conad/Conad-logo.png");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 95px auto;
}

/* ICONA FACEBOOK */

.negozio-links a:nth-child(2)::before {
    content: "f";
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 900;
    margin-right: 8px;
    vertical-align: middle;
}
