:root {
    /* colori di sistema */
  --color-primary: #9ACD32;
  --color-textbutton: #fff;
  --color-secondary: #ff9500;
  --color-accent: #00d084;
  --color-background: #f5f5f5;
  --color-text: #333333;
  /* Famiglie tipografiche */
  --font-primary: 'Oxanium', sans-serif;
  --font-secondary: 'tenby-eight', serif;
  /* Pesi */
  --font-weight-regular: 400;
  --font-weight-bold: 700;

}

/* Stile per l'header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px; /* puoi modificarlo a piacere */
  background-color: #000;
}

/* Stile per l'header */
.header_loghi {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
}

.loghidivisioni{
    width: 150px;
    margin: 0px 20px;
}

/* Logo */
.logo_header img {
  height: 40px; /* o la dimensione che preferisci */
}

/* Lingue */
.lang-switcher {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.lang-switcher li a {
  text-decoration: none;
  color: var(--color-primary); /* o colore del tuo layout */
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
}


.primaryBtn{
    background-color: var(--color-primary);
    color: var(--color-textbutton);
    padding: 15px 30px;
    border: none;
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    font-size: 1em;
    text-decoration: none;
}
.primarySecondary{
    background-color: var(--color-textbutton);
    color: var(--color-text);
    padding: 15px 30px;
    border: none;
    font-family: var(--font-secondary);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    font-size: 1em;
    text-decoration: none;
}
.mt-5{
    margin-top:2em;
}
.text-center{
    text-align: center;
}
h1 {
    font-family: "tenby-eight", sans-serif;
    font-weight: 700;
    font-style: normal;
}

h2 {
    font-family: "tenby-eight", sans-serif;
    font-weight: 700;
    font-style: normal;
}


.oxanium-<uniquifier> {
    font-family: "Oxanium", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
}

p {
    font-family: "Oxanium", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    font-size: 16px;
}

ul, li {
    font-family: "Oxanium", sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    font-size: 24px;
}

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

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

.logo_header {
    font-size: 18px;
    width: 160px;

}

.pb-5 {
    padding-bottom: 5em;
}

.pt-10 {
    padding-top: 13em;
}

.logo_hero_cover {
    width: 500px;
}

/* Hero Section */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero {
    background: linear-gradient(-45deg, #000000, #000, #303030, #000, #000);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    height: 100vh;
    color: white;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: start;
      overflow: hidden;
      margin: 0 auto;
}

.hero h1 {
    color: var(--color-primary);
    font-size: 6vh;
    font-style: normal;
    font-weight: 700;
    line-height: 55px;
    /* 68.75% */
}

.hero-overlay {
    /*position: absolute;
    top: 0;
    left: 0;*/
    width: 80%;
    height: 100%;
    background-image: url('../img/FRESE_COMPOSIZIONE_def.png');
    /* cambia con il tuo file */
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    align-items: center;
    opacity: 1;
    z-index: 2;
}
.separator{
    background-image: url('../img/separazione.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
}

.separator_section{
    height: 500px;
    background-color: #000;
}

/* MoteCh Section */
.motech-section {
    padding: 5% 5% 0% 0%;
    background: #000;
    display: grid;
    grid-template-columns: 3fr 7fr;
    align-items: center;
}

.motech-logo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hexagon {
    width: 50%;
}

.evotech_horizontal_p {
    display: flex;
    gap: 2rem;
    /* spazio tra i paragrafi, puoi modificarlo */
}

.motech-content h2 {
    font-size: 50px;
    line-height: normal;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.organigramma_section {
    background: #000;
}

.organigramma {
    width: 50%;
    margin: 0 auto;
    padding: 100px 0px;
}

.subline {
    font-size: 24px;
}

.motech-content p {
    flex: 1;
    /* paragrafi della stessa larghezza */
    margin: 0;
    /* rimuove margini verticali che altrimenti causano spaziature */
}

.brand-logos {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.brand-logo {
    color:var(--color-primary);
    font-size: 18px;
    font-weight: bold;
}

/* Custom Section */
.custom-section {
    background: linear-gradient(135deg, #9ACD32, #7CB342);
    padding: 100px 0px 150px 0px;
    color: #000000;
}

.custom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.products_section{
    max-width: 1920px;
    margin: 0 auto;
}
.products_content{
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: -130px;
}

.cus_product, .tommasin_product{
    width: 1080px;
    max-width: 100%;
}

.custom-text h2 {
    font-size: 75px;
}

.custom-text_2 b, ul {
    font-size: 23px;
}


/* The Group Section */
.group-section {
    background: #fff;
    color: #000;
    padding: 100px 50px;
}

.group-content {
    max-width: 1200px;
    margin: 0 auto;
}

.group-content h2 {
    font-size: 75px;
    color:var(--color-primary);
    margin-bottom: 50px;
}

.group-companies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.tommasin_logo {
    width: 50%;
}

.cus_logo {
    width: 50%;
}

.headline_company {
    font-size: 23px;
    text-transform: uppercase;
}

.company {
    border-radius: 10px;
}

.company h3 {
    color:var(--color-primary);
    font-size: 24px;
    margin-bottom: 15px;
}

.custom_grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items:start;
}

.company p {
    color: #000;
    line-height: 1.6;
    margin-bottom: 15px;
}

.company-image {
    max-width: 100%;
    margin-top: 40px;
}

.border_radius{
    border-top-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* Contact Section */
.contact-section {
    background: #000;
    padding: 100px 50px;
    text-align: center;
}

.contact-logo {
    width: 30%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5%;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.footerLogo {
    height: 50px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    color:var(--color-primary);
    margin-bottom: 5px;
    font-size: 14px;
    text-align: start;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    background: #222;
    border: 1px solid #444;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background:var(--color-primary);
    color: #000;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background:var(--color-primary);
}

.footer-brands {
    display: flex;
    justify-content: center;
    gap: 10%;
    margin-top: 10%;
}

.footer-brand {
    text-align: left;
}

.footer-brand h4 {
    color:var(--color-primary);
    margin-bottom: 10px;
}

.footer-brand p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
    padding-top: 20px;
}

.btn-container{
    display: flex;
    margin-right: 10%;
}
.leftSpace{
    padding-left: 20px;
}

.bottomBar {
    background:var(--color-primary);
    padding: 1% 0%;
}

a {
    color:var(--color-primary);
    font-weight: var(--font-weight-bold);
}
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

.text-right{
    text-align: right;
}

.btnCenter{
    text-align: right;
    align-items: center;
}

.company_profile{
    width: 100%;
    background-color: var(--color-primary);
    padding: 20px 0px 20px 0px;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    align-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    .img-responsive {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .group-content h2 {
    font-size: 35px;
    color:var(--color-primary);
    margin-bottom: 50px;
    }
    .custom-text h2{
    font-size: 35px;
    }

    .hero h1 {
        font-size: 32px;
        text-align: center;
    }

    .hero-products {
        flex-wrap: wrap;
        gap: 15px;
    }

    .btn-container{
    display: block;
    margin-right: 10%;
    }

    .topSpace{
        padding-top: 50px;
    }
    .leftSpace{
        padding-left: 0px;
    }

    .motech-section,
    .custom-content,
    .group-companies {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .evotech_horizontal_p{
        display: block;
    }
    .motech-content h2{
        font-size:35px;
    }

    .contact-form {
        grid-template-columns: 1fr;
        display: block;
        text-align: left;
        margin-bottom:50%;
    }

    .contact-logo{
        width: 60%;
    }
    .products_content {
    display: grid;
    grid-template-columns: auto;
    margin-top: -40px;
    justify-content: center;
    }

    /* Target del container del form, adatta il selettore */
    form .form-group,
    form .input-group,
    form input,
    form select,
    form textarea,
    form button {
        width: 100% !important;
        display: block;
        margin-bottom: 1em;
        box-sizing: border-box;
    }

    /* Se stai usando flex layout per i gruppi di input + label */
    form .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-brands {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .custom-products {
        grid-template-columns: repeat(3, 1fr);
    }
    .contact-section{
        padding:50px 25px;
    }
    .group-section{
        padding:50px 25px;
    }
    .custom-section{
        padding:50px 25px;
    }
    .motech-content{
        padding:50px 25px;
    }
    .organigramma_section{
        padding:50px 25px;
    }
    .organigramma{
        width: 100%;
        padding: 50px 0px;
    }
    .hexagon{
        width: 20%;
    }
    .logo_hero_cover{
        width:250px;
    }
    .hero-overlay{
        height: 30vh;
    }
    .hero{
        height: 80vh;
    }
    .company_profile{
        display: block;
        padding: 50px 0px;
    }
    .space-top{
        margin-top: 30px;
        text-align: center;
    }
    .header_loghi{
        display: none;
    }
}