@font-face {
    font-family: 'Chillax';
    src: url('/public/fonts/Chillax-Regular.woff2') format('woff2'),
         url('/public/fonts/Chillax-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Chillax';
    src: url('/public/fonts/Chillax-Bold.woff2') format('woff2'),
         url('/public/fonts/Chillax-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('/public/fonts/Outfit-Regular.woff2') format('woff2'),
         url('/public/fonts/Outfit-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('/public/fonts/Outfit-Light.woff2') format('woff2'),
         url('/public/fonts/Outfit-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Outfit';
    src: url('/public/fonts/Outfit-Bold.woff2') format('woff2'),
         url('/public/fonts/Outfit-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

:root {
    --highlight-color:      #d57078;
    --primary-color:        #bd2025;
    --white-color:          #ffffff;
    --dark-color:           #141514;

    --gray-color:           #909090;
    --link-color:           #404040;
    --p-color:              #666262;

    --base-font-family:     'Outfit',  sans-serif;
    --marked-font-family:   'Chillax', sans-serif;
    --font-weight-bold:     bold;
    --font-weight-normal:   normal;
    --font-weight-light:    300;
    --font-weight-thin:     100;

    --h1-font-size:         42px;
    --h2-font-size:         35px;
    --h3-font-size:         22px;
    --h4-font-size:         24px;
    --h5-font-size:         22px;
    --h6-font-size:         22px;
    --p-font-size:          18px;
    --base-font-size:       16px;
    --menu-font-size:       18px;
	--btn-font-size:        20px;
	--botton1-font-size:    16px;

    --border-radius-large:  100%;
    --border-radius-small:  2px;
}

/*---------------------------------------
    PAGE AND TYPOGRAPHY              
-----------------------------------------*/

body {
    font-family: var(--base-font-family);
    background-color: var(--white-color);
    color: var(--dark-color);
    text-align: center; 
    min-height: 100vh;
    margin: 0;
}

.main-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    margin-top: 132px;
    margin-bottom: 66px;
}

.main-container-dashboard {
    margin-top: 132px;
    margin-bottom: 66px;
}

.spacer {
    height: 66px;
}

h1,h2,h3,h4,h5,h6,h7 {
    font-family: var(--base-font-family);
    font-weight: var(--font-weight-thin);
    text-align: center;
    line-height: normal;
}

h1 {
    color: var(--dark-color);
    font-weight: 600;
    font-size: var(--h1-font-size);
    margin-bottom: 40px;
}

h2 {
    font-family: var(--base-font-family);
    font-size: var(--h2-font-size);
    font-weight: 'normal';
    letter-spacing: -2px;
	color: var(--dark-color);
}

h3 {
	color: var(--dark-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-bold);
  letter-spacing: -1px;
  margin: 0;
}

h4 {
    font-size: var(--h4-font-size);
}

h5 {
    font-size: var(--h5-font-size);
}

h6 {
    color: var(--gray-color);
    font-size: var(--h6-font-size);
    line-height: inherit;
    margin: 0;
}

p {
    color: var(--p-color);
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-light);
    line-height: 1.5em;
}

b, 
strong {
    font-weight: var(--font-weight-bold);
    letter-spacing: 0;
}

.section {
    padding: 7rem 0;
}

/* BUTTON */

.dashboard-btn {
    border: none;
    border-radius: 45px;
    padding: 5px 20px;
    font-size: 16px;
    font-weight: var(--font-weight-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.dashboard-btn.stop {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.dashboard-btn.renew {
    background-color: var(--dark-color);
    color: var(--white-color);
}
.dashboard-btn.stop:hover {
    background-color: var(--highlight-color);
    color: var(--white-color);
}
.dashboard-btn.renew:hover {
    background-color: var(--gray-color);
    color: var(--white-color);
}
.btn {
    border: none;
    background: var(--dark-color);
    border-radius: 45px;
    padding: 15px 0px;
    color: var(--white-color);
    font-size: 16px;
    font-weight: var(--font-weight-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
    width: 200px;
}

.btn:hover {
    color: var(--gray-color);
}

.btn:focus {
    box-shadow: none;
}

.btn.bordered:hover,
.btn.bordered:focus,
.btn:hover,
.btn:focus {
    background: var(--gray-color);
    border-color: var(--dark-color);
    color: var(--white-color);
}  
  
.bordered {
    border: 1px solid var(--highlight-color);
    color: var(--gray-color);
}

 {
    background: var(--dark-color);
    color: var(--white-color);
}

/*---------------------------------------
     GENERAL               
-----------------------------------------*/

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*::before,
*::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

a {
    color: var(--link-color);
    font-weight: normal;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover, 
a:active, 
a:focus {
    color: var(--highlight-color);
    outline: none;
    text-decoration: none;
}

/* BG OVERLAY */

.bg-overlay {
    background: var(--dark-color);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

/*---------------------------------------
     MODAL              
-----------------------------------------*/

/* .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
} */

/* MODAL STYLES (Unificati) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--white-color);
    margin-bottom: 20px;
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    align-self: top;
}

.modal-form-group {
    margin-bottom: 20px;
    padding: 0 20px;
}

.modal-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.modal-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding: 0 20px 20px;
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.modal-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-option:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(189, 32, 37, 0.1);
    transform: translateY(-3px);
}

.btn-modal {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    border: none;
}

.btn-cancel {
    background-color: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background-color: #5a6268;
}

.btn-confirm {
    background-color: #dc3545;
    color: white;
}

.btn-confirm:hover {
    background-color: #bd2130;
}

.btn-submit {
    background-color: #28a745;
    color: white;
}

.btn-submit:hover {
    background-color: #218838;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

.modal-header,
.modal-body,
.modal-footer {
    border: 0;
    padding: 0px;
        
}

/*---------------------------------------
    FEATURE          
-----------------------------------------*/

.feature {
    background: var(--dark-color);
    padding: 5rem 0;
}

/*---------------------------------------
     MENU             
-----------------------------------------*/

.navbar {
    background: var(--dark-color);
    padding: 1rem;
}

.navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.navbar-brand {
    color: var(--white-color);
    font-size: var(--h3-font-size);
    font-weight: var(--font-weight-bold);
    line-height: normal;
    padding-top: 0;
}

.nav-item .nav-link {
    display: block;
    color: var(--white-color);
    font-size: var(--menu-font-size);
    font-weight: var(--font-weight-normal);
    text-transform: uppercase;
    padding: 2px 6px;
}

.nav-item .nav-link.active,
.nav-item .nav-link:hover {
    color: var(--highlight-color);
}

.navbar .social-icon li a {
    color: var(--white-color);
}

.navbar-toggler {
    border: 0;
    padding: 0;
    cursor: pointer;
    margin: 0 10px 0 0;
    width: 30px;
    height: 35px;
    outline: none;
}

.navbar-toggler:focus {
    outline: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
    transition: top 300ms 50ms ease, transform 300ms 350ms ease;
    transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
    background: var(--highlight-color);
    transition: background 10ms 300ms ease;
    display: block;
    width: 30px;
    height: 2px;
    position: relative;
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
    transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
    transition: top 300ms 350ms ease, transform 300ms 50ms ease;
    transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
    position: absolute;
    right: 0;
    left: 0;
    background: var(--highlight-color);
    width: 30px;
    height: 2px;
    content: '';
}

.navbar-toggler .navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
    top: 8px;
}

/*---------------------------------------
     HERO              
-----------------------------------------*/

.hero {
    background-image: url('/images/red_black_logo.png');
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
    vertical-align: middle;
    min-height: 100vh;
    position: relative;
}

/*---------------------------------------
     CONTACT              
-----------------------------------------*/

.webform #invio {
    height: calc(2.25rem + 20px);
}
	
.webform input,
button#submit-button {
    height: calc(2.25rem + 20px);
}

.form-control {
    border-radius: var(--border-radius-small);
    margin: 1.3rem 0;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--dark-color);
}

button#invio {
    background: var(--dark-color);
    border-color: transparent;
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

button#invio :hover {
    background: var(--dark-color);
}

.form-control invio[type=button] {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}
.contact h2 + p {
    max-width: 90%;
}

.google-map {
    border-top: 1px solid var(--white-color);
    margin-top: 2.5rem;
    padding-top: 2.5rem;
}

.google-map iframe {
    width: 100%;
}


/*---------------------------------------
     FOOTER              
-----------------------------------------*/

footer {
    border-top: 1px solid var(--white-color);
    padding: 3rem 0;
    display: flex;
    text-align: end;
    margin-left: auto;
    margin-right: 25px;
    flex-direction: column;
}


footer a {
    color: var(--p-color);
    font-weight: var(--font-weight-light);
}

footer p {
    font-size: var(--base-font-size);
}

.contact .fa,
footer .fa {
    color: var(--highlight-color);
}

/*---------------------------------------
     SOCIAL ICON              
-----------------------------------------*/

.social-icon {
    position: relative;
    padding: 0;
    margin: 5px 0 0 0;
}

.social-icon li {
    display: inline-block;
    list-style: none;
}

.social-icon li a {
    text-decoration: none;
    display: inline-block;
    color: var(--p-color);
    font-size: var(--p-font-size);
    font-weight: var(--font-weight-bold);
    margin: 5px 10px;
    text-align: center;
}

.social-icon li a:hover {
    color: var(--highlight-color);
}


/*---------------------------------------
     RESPONSIVE STYLES              
-----------------------------------------*/

@media screen and (max-width: 992px) {

    .section {
        padding: 5rem 0;
    }

    .nav-item .nav-link {
        padding: 6px;
    }

    .navbar .social-icon {
        margin-top: 22px;
    }

    .schedule-table {
        display: block;
    }
}

@media screen and (max-width: 767px) {

    h1 {
        font-size: 38px;
    }

    .about-working-hours {
        border-left: 0;
        padding: 22px 0 0 0;
    }

    .contact h2 span {
        display: block;
    }

    footer {
        text-align: center;
        margin: 0px;
    }
}

/*---------------------------------------
     LOADER CIRCLE             
-----------------------------------------*/	

.loader {
    border: 5px solid var(--white-color);
    border-radius: 50%;
    border-top: 5px solid var(--highlight-color);
    width: 40px;
    height: 40px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

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

/*---------------------------------------
     FLOATING GREETING             
-----------------------------------------*/	

#greeting-label {
    color: var(--dark-color);
    font-size: 45px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 200px;
    font-family: var(--marked-font-family);
}

#greeting {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    z-index: 1141514;
}  

/*---------------------------------------
     TABLES             
-----------------------------------------*/	


.preselectTable {
    font-family: var(--base-font-family);
    text-align: center;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    width: 80%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.preselectTable th {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 14px 16px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.preselectTable td {
    background-color: var(--white-color);
    padding: 12px 16px;
    transition: background-color 0.2s ease;
    font-size: 16px;
}

.preselectTable td:hover {
    background-color: #f9f9f9;
}

.preselectTable td,
.preselectTable th {
    border-bottom: 1px solid var(--light-gray-color, #eaeaea);
    text-align: center;
}

/* Bordi arrotondati per gli angoli */
.preselectTable thead tr:first-child th:first-child {
    border-top-left-radius: 12px;
}
.preselectTable thead tr:first-child th:last-child {
    border-top-right-radius: 12px;
}
.preselectTable tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}
.preselectTable tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Stile per riga separatore */
.preselectTable .separator td {
    background-color: var(--highlight-color);
    font-weight: bold;
    color: var(--dark-color);
}

.preselectTable thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.preselectTable select {
    width: auto;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--light-gray-color, #ddd);
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
}

.preselectTable select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

/* Effetto zebrato */
.preselectTable tbody tr:nth-child(even) td {
    background-color: var(--light-bg-color, #f8f8f8);
}
