/* Umbria Fiere - Landing Page Styles */

/* Import Font */
@font-face {
    font-family: 'Ratio';
    src: url('../font/RatioBold.woff2') format('woff2'),
        url('../font/RatioBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ratio';
    src: url('../font/RatioRegular.woff2') format('woff2'),
        url('../font/RatioRegular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ratio';
    src: url('../font/RatioLight.woff2') format('woff2'),
        url('../font/RatioLight.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ratio';
    src: url('../font/RatioMedium.woff2') format('woff2'),
        url('../font/RatioMedium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Ratio', sans-serif;
    font-weight: 400;
    background-color: #f5f5f5;
    color: #000000;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}
main {
    overflow-x: hidden;
    position: relative;
}
/* Background Pattern */
main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background-image: url('../img/umbriafiere-pattern-2.svg');
    background-repeat: no-repeat;
    background-position: top left;
    background-size: auto 100%;
    z-index: -1;
}

main::after {
    content: '';
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 350px;
    background-image: url('../img/umbriafiere-pattern-1.svg');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: auto 100%;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0 20px;
    position: relative;
    z-index: 1;
}
.header-container{
    padding-left: 20rem;
    padding-top: 2rem;
}
/* Header / Logo */
.logo-container {
    padding: 30px 0 10px;
}

.logo-container .brand-name {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    color: #000000;
}

.logo-container img {
    max-width: 150px;
    height: auto;
}

/* Title Section */
.title-section {
    margin-bottom: 40px;
}

.title-section h1 {
    font-size: 5.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 5px;
    color: #000000;
}

.title-section h2 {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 0;
    color: #000000;
}

/* Form Section */
.form-container {
    max-width: 100%;
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    background: #f5f5f5;
    border: 2px solid #000000;
    border-radius: 0;
    color: #000000;
    font-size: 16px;
    font-family: 'Ratio', sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: #999999;
    font-weight: 400;
    font-family: 'Ratio', sans-serif;
    line-height: 18px;
}

.form-control::-webkit-input-placeholder {
    color: #999999;
    font-weight: 400;
    font-family: 'Ratio', sans-serif;
    line-height: 18px;
}

.form-control::-moz-placeholder {
    color: #999999;
    font-weight: 400;
    font-family: 'Ratio', sans-serif;
    opacity: 1;
    line-height: 18px;
}

.form-control:-ms-input-placeholder {
    color: #999999;
    font-weight: 400;
    font-family: 'Ratio', sans-serif;
    line-height: 18px;
}

.form-control::-ms-input-placeholder {
    color: #999999;
    font-weight: 400;
    font-family: 'Ratio', sans-serif;
    line-height: 18px;
}

.message-label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
    color: #000000;
    line-height: 22px;
}

.message-label .label-note {
    font-weight: 300;
}

.form-control:focus {
    outline: none;
    border-color: #7de933;
    background: #f5f5f5;
    box-shadow: none;
}

/* Remove autocomplete background */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #000000 !important;
    box-shadow: 0 0 0 30px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
    font-family: 'Ratio', sans-serif;
}

/* Privacy Checkbox */
.privacy-container {
    margin: 30px 0;
}

.privacy-text {
    font-size: 14px;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 15px;
    font-weight: 400;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-top: 3px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #7de993;
    border: 2px solid #000;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    border-radius: 0!important;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #7de993;
    border: 2px solid #000;
    appearance: none;
    background-image: url('/img/check.svg');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.checkbox-group label {
    font-size: 15px;
    color: #000000;
    cursor: pointer;
    line-height: 2;
    font-weight: 400;
}

.checkbox-group label a {
    color: #000000;
    text-decoration: underline;
    font-weight: 400;
}

.checkbox-group label a:hover {
    /* text-decoration: none; */
}

/* Submit Button */
.submit-container {
    text-align: left;
    margin-top: 30px;
}

.btn-submit {
    background-color: #7ee993;
    color: #000000;
    padding: 10px 60px;
    border: none;
    border-radius: 0;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Ratio', sans-serif;
    letter-spacing: 0;
    /* text-transform: uppercase; */
}

.btn-submit:hover {
    background-color: #7ee993de;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #7ee9934d;
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer */
.footer {
    text-align: left;
    padding: 40px 0 20px;
    font-size: 13px;
    color: #000000;
    margin-top: 60px;
    font-weight: 300;
    line-height: 1.8;
}

.footer a {
    color: #000000;
    text-decoration: none;
    font-weight: 300;
}

/* Loader Overlay */
#overlay_load {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 245, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#overlay_load.show_loader {
    display: flex;
}

.loader-08 {
    border: 8px solid rgba(126, 233, 51, 0.3);
    border-top: 8px solid #7de933;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: none;
    font-weight: 400;
}

.form-control.error {
    border-color: #dc3545;
}

/* Responsive Design */
/*MACBOOK ALE*/
@media screen 
  and (min-device-width: 1200px) 
  and (max-device-width: 1450px)  {
    .header-container {
        padding-left: 22rem;
        padding-top: 7rem;
    } 
  }
/*BIG SCREEN*/
@media screen 
  and (min-device-width: 1600px) 
  and (max-device-width: 5000px)  {

    .header-container {
        padding-left: 7rem;
        padding-top: 8rem;
    }       
    .title-section h1{
        font-size: 5.5rem;
    }
    .title-section h2{
        font-size: 2rem;
    }
}

/* Tablet Portrait (481px - 768px) */
/* MINI */
@media only screen and (min-device-width: 768px) and (max-device-width: 820px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {

    main::before {
        height: 280px;
    }

    main::after {
        height: 280px;
    }

    .header-container {
        padding-left: 20rem;
        padding-top: 5rem;
    }

    .container {
        padding: 30px 20px;
    }

    .title-section h1 {
        font-size: 3rem;
    }

    .title-section h2 {
        font-size: 1.3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-control {
        padding: 16px 20px;
        font-size: 15px;
    }

    textarea.form-control {
        min-height: 140px;
    }

    .btn-submit {
        padding: 15px 55px;
        font-size: 17px;
        width: 100%;
    }

    .footer {
        width: 60%;
        font-size: 12px;
    }
}
/* AIR */
@media only screen and (min-device-width: 820px) and (max-device-width: 1020px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
        main::before {
        height: 320px;
    }

    main::after {
        height: 320px;
    }

    .header-container {
        padding-left: 26rem;
        padding-top: 8rem;
    }

    .container {
        padding: 35px 25px;
    }

    .title-section h1 {
        font-size: 2.6rem;
    }

    .footer {
        width: 55%;
        font-size: 12px;
    }
}
/* PRO */
@media only screen 
  and (min-device-width: 1024px) 
  and (max-device-width: 1024px) 
  and (orientation: portrait) 
and (-webkit-min-device-pixel-ratio: 2) {
        main::before {
        height: 320px;
    }

    main::after {
        height: 320px;
    }

    .header-container {
        padding-left: 26rem;
        padding-top: 8rem;
    }

    .container {
        padding: 35px 25px;
    }

    .title-section h1 {
        font-size: 3.7rem;
    }

    .footer {
        width: 55%;
        font-size: 12px;
    }
}

/* Tablet Landscape*/
/* MINI */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) 
and (orientation: landscape) 
and (-webkit-min-device-pixel-ratio: 2) {
    main::before {
        height: 320px;
    }

    main::after {
        height: 320px;
    }

    .header-container {
        padding-left: 26rem;
        padding-top: 6rem;
    }

    .container {
        padding: 35px 25px;
    }

    .title-section h1 {
        font-size: 3.7rem;
    }

    .footer {
        width: 55%;
        font-size: 12px;
    }
}
/* AIR */
@media only screen 
and (min-device-width: 1100px) 
and (max-device-width: 1200px) 
and (orientation: landscape) 
and (-webkit-min-device-pixel-ratio: 2) {
    main::before {
        height: 320px;
    }

    main::after {
        height: 320px;
    }

    .header-container {
        padding-left: 26rem;
        padding-top: 8rem;
    }

    .container {
        padding: 35px 25px;
    }

    .title-section h1 {
        font-size: 4rem;
    }

    .footer {
        width: 55%;
        font-size: 12px;
    }
}
/* PRO */
@media only screen 
and (min-device-width: 1366px) 
and (max-device-width: 1366px) 
and (orientation: landscape) 
and (-webkit-min-device-pixel-ratio: 2) {
    main::before {
        height: 320px;
    }

    main::after {
        height: 320px;
    }

    .header-container {
        padding-left: 21rem;
        padding-top: 7rem;
    }

    .container {
        padding: 35px 25px;
    }

    .title-section h1 {
        font-size: 5.5rem;
    }

    .footer {
        width: 55%;
        font-size: 12px;
    }
}


/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    main::before {
        height: 250px;
    }

    main::after {
        height: 250px;
    }

    .container {
        padding: 20px 15px 0 15px;
    }

    .logo-container {
        padding: 50px 0 10px;
    }

    .logo-container .brand-name {
        font-size: 1rem;
    }

    .logo-container img {
        max-width: 120px;
    }

    .title-section h1 {
        font-size: 3rem;
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .title-section h2 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

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

    .form-control {
        padding: 15px 18px;
        font-size: 15px;
    }

    .message-label {
        font-size: 14px;
    }

    textarea.form-control {
        min-height: 120px;
    }

    .btn-submit {
        padding: 16px 50px;
        font-size: 16px;
        width: 100%;
    }

    .checkbox-group {
        font-size: 14px;
    }

    .checkbox-group label {
        font-size: 14px;
    }
}

/* Mobile Small (max-width: 480px) */
@media (max-width: 480px) {
    main::before {
        height: 180px;
    }

    main::after {
        height: 180px;
    }
    
    .logo-container {
        padding: 50px 0 10px;
    }
    
    .logo-container .brand-name {
        font-size: 1rem;
    }

    .title-section h1 {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }

    .title-section h2 {
        font-size: 1.3rem;
        line-height: 1.3rem;
    }

    .btn-submit {
        padding: 14px 40px;
        font-size: 14px;
    }

    .header-container {
        padding-left: 0;
        padding-top: 9rem;
    }

    .checkbox-group label {
        line-height: 16px;
        font-size: 13px;
    }

    .message-label {
        /* font-size: 13px; */
        line-height: 20px;
    }

    .footer{
        width: 80%;
        font-size: 11px;
        padding-bottom: 0;
    }
}
