/* **********************
**** ALL CSS SETUP ******
********************** */

/* ZERO SETUP */
*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* IMPOSTA I VALORI DI DEFAULT */
 :root{
/* colori */
  --myRed:#E3311D;
  --myBlack:#050507;
  --myBrownDark:#362E2D;
  --lighGrey: #f9f9f9f8;
  --myGreyLight:#d0d1d0;
  --myGreyDark: #7C8685;
  --myGreen: #039464;
/* bordi sfumati */
  --borderShadow: 0 0 10px rgba(0, 0, 0, 0.3);
  --boxShadows: -5px -5px 5px rgba(255, 255, 255, 0.2),
  5px 5px 5px rgba(0, 0, 0, 0.2),
  inset -5px -5px 5px rgba(255, 255, 255, 0.2),
  inset 5px 5px 5px rgba(0, 0, 0, 0.2);
 }
 /* Pre setting Colour */
 .myRed{
    color: var(--myRed);
 }
 .myBlack{
    color: var(--myBlack);
 }
 .myBrownDark{
    color: var(--myBrownDark);
 }
 .myGreyLight{
    color: var(--myGreyLight);
 }
 .myGreyDark{
    color: var(--myGreyDark);
 }
 .myGreen{
    color: var(--myGreen);
 }
 
 /* IMPOSTA LA PAGINA */
html,
body {
     height: 100%;
     margin: 0;
     color:var(--myBlack);
}

 /* GESTISCI IL BODY */
body {
      margin: 0;
      font-family:'Courier New', Courier, monospace;
      color: var(--myGrey);
}
/* img responsive */
img.responsive {
   max-width: 100%;
   height: auto;
   border-radius: 10px;
   margin-top: 40px;
   margin-bottom: 40px;
   box-shadow: var(--boxShadows);
   border-style: inset;
  }

  .hidden {
    display: none;
}
/* link a */
a {
    text-decoration: none;
    color: var(--myRed);
}

/* SETTA IL P */
p {
    font-family: 'roboto';
    text-align: left;
    padding-bottom: 0.7rem;
    letter-spacing: 1.39px;
    line-height: 1.69;
    text-align: justify;
    margin-bottom: 10px;
}
/* H1 */
h1 {
    font-family: 'gruppo';
    font-size: 2.5rem;
    color: var(--myBrownDark);
}
   
/* H2 */
h2 {
    font-family: 'gruppo';
    font-size: 2rem;
    padding-bottom: 2.5rem;
    color: var(--myBrownDark);
}

/* H3 */
h3 {
    font-family: 'roboto';
    font-size: 2rem;
}

/* H4 */
h4 {
    font-family: 'gruppo';
    font-size: 1.9rem;
    margin-bottom: 20px;
}

/* H5 */
h5 {
    font-family: 'roboto';
    font-size: 1.11rem;
    padding-bottom: 10px;
}
/* H6 */
h6 {
    font-family: 'roboto';
    font-size: .95rem;
    padding-bottom: 10px;
    font-weight: 300;
}
.top{
    background: var(--myRed);
    height: 30px;
    margin-bottom: 30px;
}
.darkLine{
    background: var(--myBrownDark);
    height: 18px;
    margin-top: 20px;
}
article{
    padding: 40px;
}
/* center */
.center{
    text-align: center;
}
.left{
    text-align: left;
}
.up{
    margin: 20px 0;
}
.uppercase{
    text-transform: uppercase;
}
     
/* bold */
.myBold{
    font-weight: 500;
}
/* ridimensiona font */
.small {
    font-size: 78%;
}
/* ridimensiona font */
.smallB {
    font-size: 1.64rem;
}

.larger {
    font-size: 150%; /* Aumenta la dimensione del font del 150% rispetto al testo normale */
}
/* menu UL */
ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
/* setta la base dei menu LI */
li {
    margin-bottom: 20px;
}
.listL {
    margin-top: -20px;
}

.cerchioRed, .cerchioGreen {
    width: 20px; 
    height: 20px; 
    border-radius: 50%; 
    display: block; 
    top: 50%; 
    left: 50%; 
    transform: translate(0, 50%);
    margin: 0 auto;
}
.cerchioRed {
    background-color: var(--myRed);
}
.cerchioGreen {
    background-color: var(--myGreen);
}

.container {
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; 
    margin: 0 auto;
    margin-bottom: 50px;
}

.box {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    flex: 1 0 20%;
    height: auto;
    margin: 10px;
    background-color: var(--lightGrey);
    padding: 20px;
    border: 2px solid var(--myRed);
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: var(--borderShadow);
    text-align: center;
}

.box p {
    text-align: left !important;
    width: 100%; /* Ensures the paragraph takes the full width */
}
.spaceBotton{
    margin-bottom: 30px;
}

.boxLink {
    max-width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-around; /* Modificato per gestire lo spazio intorno agli elementi */
    align-items: center; /* Centra il contenuto orizzontalmente */
    flex: 1 0 20%; /* Per avere 4 box per riga su desktop */
    height: auto;
    margin: 10px;
    background-color: #f0f0f0;
    padding: 10px;
    border: 2px solid var(--myRed);
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: var(--borderShadow);
    font-size: 22px;
    text-align: center;
    font-family: 'roboto';
    cursor: pointer;
    color: var(--myBrownDark);
    text-transform: uppercase;
}

.del {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.button {
    width: 100%; 
    height: 66px;
    border: 2px solid var(--myBrownDark);
    padding: 5px 20px;
    text-align: center;
    font-family: 'roboto';
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 20px;
    border-radius: 10px;
    color: #362E2D;
    text-transform: uppercase;
    display: flex; /* Aggiungi questa proprietà */
    justify-content: center; /* Aggiungi questa proprietà */
    align-items: center; /* Aggiungi questa proprietà */
}

.buttonSmall {
    width: 96%; 
    height: auto;
    padding: 3px 10px;
    text-align: center;
    font-family: 'roboto';
    font-size: 16px;
    cursor: pointer;
    margin: 15px 5px;
    border-radius: 10px;
    font-weight: 500;
    text-transform: uppercase;
    background: var(--myGreen);
    box-shadow: -15px -15px 15px rgba(255, 255, 255, 0.2),
    15px 15px 15px rgba(29, 27, 27, 0.1),
    inset -5px -5px 5px rgba(255, 255, 255, 0.2),
    inset 5px 5px 5px rgba(0, 0, 0, 0.1);
    color: white !important;
}
.buttonSmall a { 
    color: #d0d1d0 !important;
}

.buttonText {
    padding: 14px 20px; 
    text-transform: capitalize;
}

.button:hover {
    background-color: white;
    border-color: var(--myRed);
    color: var(--myRed);
}

.b1{
    background-color: var(--myRed);
}
.b2{
    background-color: var(--myBrownDark);
}

main{
    max-width: 1400px;
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 50px 4px;
    margin: 0 auto;
}
footer p {
    text-align: center;
    font-size: 0.8rem;
}
footer h5 {
    text-align: center;
    font-size: 1rem;
}

footer {
    margin-top: 0;
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--myRed);
    text-align: center;
    padding: 20px;
    color:whitesmoke;
    font-weight: 200;
}

.noSpace {
    margin-top: -50px !important;
}

/* Media query per schermi con larghezza inferiore a 500px */
@media (max-width: 500px) {
    p {
        text-align: left; /* Allinea il testo a sinistra su schermi piccoli */
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
}