@import url("https://fonts.googleapis.com/css?family=Roboto|Anton|Cabin|Fjalla+One|Kalam&display=swap");

/* GLOBAL CSS VARIABLES */
:root {
  --opacity: 0.9;

  /* Basic styling 
#243533 Verde scuro testo
#649592 Verde scuro logo
#A5DFDD Verde chiaro logo 
#FBC900 Giallo logo
#88CDF1 Azzurro chiaro
#4DB1E7 Azzurro
pn: 1-5 light stnd; 6-10 light palette
pn: 11-15 medium stnd; 16-20 medium palette;
pn: 21-25 dark stnd; 26-30 dark palette;
pn: 31-35 strong stnd; 36-40 strong palette#1;
pn: 41-45 strong stnd#2; 46-50 strong palette#1;
*/

  --c1: #fff;
  --c2: #fefefe;
  --c3: #fdfdfd;
  --c4: #fcfcfc;
  --c5: #fbfbfb;
  --c6: #66cc33; /* Verde chiaro logo */
  --c7: #f3fd6e; /* giallo chiaro highight */
  --c8: #f8f5c1; /* giallo chiaro gradient */
  --c9: #f4f27c; /* giallo chiaro gradient */
  --c10: #88cdf1; /* Azzurro */

  --c11: #eee;
  --c12: #ececec;
  --c13: #e9e9e9;
  --c14: #e6e6e6;
  --c15: #e3e3e3;
  --c16: #fbc900; /* Giallo logo */
  --c17: #33cc33;
  --c18: #006633;
  --c19: #66cc33; /* Verde chiaro logo */
  --c20: #006633;

  --c21: #000;
  --c22: #111;
  --c23: #222;
  --c24: #333;
  --c25: #444;
  --c26: #006633; /* Verde scuro logo */
  --c27: #003300; /* Verde scuro testo */
  --c28: #243533;
  --c29: #243533;
  --c30: #09326b;

  --c31: #f00;
  --c32: #ff0;
  --c33: #0f0;
  --c34: #0ff;
  --c35: #00f;
  --c36: #600;
  --c37: #;
  --c38: #;
  --c39: #;
  --c40: #;

  --c41: #f0f;
  --c42: #ff4000;
  --c43: #ff8000;
  --c44: #00ff80;
  --c45: #0080ff;
  --c46: #88cdf1; /* Azzurro chiaro */
  --c47: #4db1e7; /* Azzurro */
  --c48: #4db1e7;
  --c49: #4db1e7;
  --c50: #4db1e7;

  --color: var(--c30);
  --bgcolor: var(--c1);
  --bgcolor: linear-gradient(to bottom right, var(--c2), var(--c11));

  --boxshadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);

  --a-color: #600;
  --a-link-color: #033;
  --a-link-border: solid 1px #033;
  --a-visited-color: #066;
  --a-hover-color: #fff;
  --a-hover-bgcolor: #399;
  --a-hover-bgimage: linear-gradient(rgb(0, 153, 153), rgb(0, 51, 51));
  --a-hover-text-decoration-color: #0ff;

  --button-color: var(--c21);
  --button-bgcolor: var(--c43);
  --button-border: solid 2px var(--c42);
  --button-boxshadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);

  --panel-bgcolor: lightyellow;
}

/* Basic styling */
body,
html {
  padding: 0;
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
}

p {
  color: var(--c30);
  text-align: justify;
}

header {
  background-color: var(--c1);
  color: var(--c1);
  text-align: center;
  padding: 10px 10px;
}

footer {
  background-color: var(--c30);
  background: linear-gradient(to bottom, var(--c47), var(--c30));
  color: var(--c1);
  text-align: center;
  padding: 10px 10px;
}

header h1,
h2,
h3 {
  color: var(--c30);
  text-align: center;
  margin-top: 0.5em;
}

footer h1,
h2,
h3 {
  color: var(--c2);
  text-align: center;
}

main {
  margin: 0;
  padding: 0;
  background-image: url("/img/interface/fernando-meloni-3i4NcEKAKVg-unsplash.jpg");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-attachment: fixed;
  padding: 0.125rem;
  text-align: center;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0
  ); /* Adjust the RGBA value to set the color and transparency */
  pointer-events: none; /* Ensures that the overlay does not interfere with any other interactions */
}

h1,
h2,
h3 {
  color: var(--color);
  text-align: left;
  margin-top: 0px;
  margin-bottom: 8px;
}

a {
  border: solid 1px transparent;
  color: var(--a-color);
  padding: 5px 10px; /* Padding for better touch area */
}

a:hover,
a:focus {
  border: solid 1px var(--c21);
  border-radius: 5px;
  color: var(--c21); /* White text on hover/focus */
  background-color: var(--c16);
  background: linear-gradient(
    90deg,
    var(--c18) 0%,
    var(--c1) 50%,
    var(--c31) 100%
  );
  padding: 5px 10px; /* Padding for better touch area */
}

section {
  border-top: solid 0px;
  border-color: var(--c13);
  margin-bottom: 0.5em;
  margin-top: 0.5em;
}

fieldset {
  border: 2px solid var(--c13); /* Color for the border */
  background-color: var(--c2); /* Background color */
  background: var(--bgcolor);
  border-radius: 5px;
  color: var(--color);
  margin-top: 1em;
  padding: 10px;
}

legend {
  background-color: var(--c18); /* Background color */
  background: linear-gradient(to bottom right, var(--c17), var(--c18));
  color: #fff; /* Text color for the legend */
  border: dotted 1px var(--c15);
  border-radius: 5px;
  font-size: 1.2em; /* Slightly larger text for emphasis */
  padding: 0.5em; /* Padding inside the legend, right and left */
  text-align: left;
}

.language-selector {
  background-color: var(--c6);
  background: linear-gradient(to bottom, var(--c46), var(--c47));
  border: solid 1px var(--c28);
  border-radius: 5px;
}

.language-selector ul {
  list-style-type: none;
  margin: 0;
  padding: 0.25em;
}

.language-selector li {
  display: inline-block; /* Display the languages in a row */
  margin-right: 0.125em; /* Space between the items */
  margin-bottom: 0em; /* Space between the items */
  padding: 5px 10px; /* Padding for better touch area */
}

.language-selector a {
  text-decoration: none;
  border: solid 1px transparent;
  color: var(--c21); /* Dark grey color for the text */
  font-weight: bold;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
  margin: 0.25em;
  padding: 5px 10px; /* Padding for better touch area */
  border-radius: 5px; /* Rounded corners for the hover effect */
}

.language-selector a:hover,
.language-selector a:focus {
  border: solid 1px var(--c1);
  border-radius: 5px;
  color: var(--c30); /* White text on hover/focus */
  background-color: var(--c46);
  background: linear-gradient(to bottom, var(--c1), var(--c46));
  padding: 5px 10px; /* Padding for better touch area */
}

.one {
  background-color: var(--c2);
  background: linear-gradient(to bottom right, var(--c2), var(--c46));
  border: px solid var(--c47);
  border-radius: 5px;
  text-align: justify;
  padding: 5px;
}

.two {
  background-color: var(--c1);
  background: linear-gradient(to bottom right, var(--c1), var(--c46));
  border: 2px solid var(--c47);
  border-radius: 5px;
  text-align: justify;
  padding: 3px;
}

.warning {
  background-color: var(--c8);
  background: linear-gradient(to bottom right, var(--c8), var(--c32));
  border: 2px solid var(--c42);
  border-radius: 5px;
  text-align: justify;
  padding: 5px;
}

.highlight {
  background: linear-gradient(to bottom right, var(--c46), var(--c47));
  border: 2px solid var(--c47);
  position: relative;
  z-index: 1;
  border-radius: 5px;
  text-align: justify;
  padding: 3px;
}

.flex-container {
  /* background-color: yellow; */
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
  align-items: flex-start;
  justify-content: space-around;
}

.flex-item {
  /*background-color: red;
  border: 2px solid black;*/
  flex: 1 1 100%;
  min-width: 160px;
  max-width: 720px;
  margin: 5px;
  padding: 5px;
}

.grid-container {
  /*display: grid;*/
  grid-template-columns: repeat(auto-fill, minmax(720px, 1fr));
  gap: 10px;
  padding: 10px;
}
.PdfDoc {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #000;
}

.PdfDoc img {
  margin-right: 10px;
}

.clipped-image {
  background-image: url("/img/cou/ita/vanessa-aGgnisTwicA-unsplash.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.clipped-text {
  font-weight: extra-bold;
  background-image: url("/img/cou/fra/france-flag.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0);
  -webkit-text-stroke: 2px black;
}

.italy-flag {
  background: linear-gradient(
    90deg,
    var(--c18) 0%,
    var(--c1) 50%,
    var(--c31) 100%
  );
  padding: 5px 10px; /* Padding for better touch area */
}

.europe-flag {
  background: linear-gradient(90deg, #003399 0%, var(--c1) 50%, #ffcc00 100%);
  padding: 5px 10px; /* Padding for better touch area */
}

.overlay-text {
  font-size: 3rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white; /* Text color */
  background-color: rgba(0, 0, 0, 0.5); /* Background color with opacity */
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

/* Responsive styling */
@media (max-width: 600px) {
  header,
  footer {
    padding: 10px;
  }

  main {
    padding: 10px;
  }

  .overlay-text {
    font-size: 1rem; /* Adjust font size for tablets */
  }
}

@media print {
  body {
    font-size: 11pt;
    color: black;
  }
  header,
  footer,
  nav,
  aside {
    display: none;
  }
  #header-printable {
    display: block;
  }
  .important {
    font-weight: bold;
    color: black; /* Assicurati che tutto sia leggibile in bianco e nero */
  }
}

/* ADDED */

.bg-gradient-europe {
  background: linear-gradient(90deg, #003399 0%, var(--c1) 50%, #ffcc00 100%);
}

/* Gradienti per diversi paesi */
/*FRANCE*/
.bg-gradient-france {
  background: linear-gradient(
    90deg,
    #0914df,
    #ffffff,
    #f50420
  ); /* Blu, bianco, rosso */
}
.gradient-france-off {
  background: linear-gradient(90deg, #0914df, #ffffff, #f50420);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.link-france {
  border-color: transparent;
}

.link-france:hover,
.link-france:focus {
  background: linear-gradient(
    45deg,
    #3c3b6e,
    #ffffff,
    #b22234
  ); /* Blu, bianco, rosso */
}

/*ITALY*/
.bg-gradient-italy {
  background: linear-gradient(
    90deg,
    #009246,
    #ffffff,
    #ce2b37
  ); /* Verde, bianco, rosso */
}

.gradient-italy-off {
  background: linear-gradient(90deg, #016d35, #ffffff, #fa0212);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Aggiungere altri gradienti per ogni nazione */
.carousel {
  position: relative;
  width: 100%; /* Larghezza del carosello */
  height: auto; /* Altezza del carosello */
  max-width: 720px; /* Maximum width for larger screens */
  margin: 0 auto; /* Center the carousel */
  overflow: hidden; /* Nasconde parti dell'immagine che eccedono le dimensioni del contenitore */

  .carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
  }
}

.carousel-item {
  position: relative;
  min-width: 100%;
  box-sizing: border-box;

  max-width: 100%; /* Impedisce alle immagini di superare la larghezza del contenitore */
  max-height: 100%; /* Impedisce alle immagini di superare l'altezza del contenitore */
  object-fit: cover; /* Copre l'area del contenitore mantenendo le proporzioni dell'immagine */
}

.carousel-item img {
  width: 100%; /* Make images take up the full width of their container */
  height: auto; /* Maintain aspect ratio */
  opacity: 1; /* Ensure images have full opacity */
}

.carousel-overlay-text {
  font-size: 3rem;
  position: absolute;
  /*top: 50%;
  transform: translate(-50%, -50%);*/
  bottom: 0px;
  transform: translateX(-50%);
  left: 50%;
  color: white; /* Text color */
  background-color: rgba(0, 0, 0, 0.5); /* Background color with opacity */
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  width: 80%; /* Adjust to ensure text fits well */
}

@media (max-width: 600px) {
  .carousel-overlay-text {
    font-size: 1rem; /* Adjust font size for mobile phones */
  }
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: black;
  text-decoration: none;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
}

.carousel-control.next {
  right: 10px;
}

.carousel-control.prev {
  left: 10px;
}

/* General styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Country page specific styles 
header {
  display: flex;
  align-items: center;
  padding: 10px;
}
*/

.country-flag {
  height: auto;
  width: 100%;
  max-width: 120px;
}

.country-map {
  margin-left: 0px;
  max-width: 120px;
  width: 100%;
}

.country-description {
  padding: 20px;
}

.specializations {
  background-color: white;
  padding: 5px;
}

.specialization {
  margin: 1rem;
}

.locality {
  border-top: 2px solid gray;
  margin-top: 5px;
}

.professional-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.professional-logo {
  height: auto;
  margin-right: 10px;
  max-width: 180px;
  width: 100%;
}

.profile-link {
  margin-left: auto;
  color: blue;
  text-decoration: none;
}

.profile-link:hover {
  text-decoration: underline;
}

/* Profile page specific styles */
.profile-hero {
  display: flex;
  align-items: center;
  padding: 20px;
}

.professional-photo {
  height: auto;
  margin-right: 20px;
  max-width: 180px;
  width: 100%;
}

.profile-info {
  flex-grow: 1;
}

.professional-description {
  padding: 20px;
}
