﻿:root {
  --primary-blue: #028eb9;
  --primary-light-blue: #2cb4dd;

  --primary-text: #333;
  --primary-font-family: "American Typewriter", serif;
  --primary-font-style: italic;

  --shadow-blue: 0 2px 8px var(--primary-blue);
  --shadow-light-blue: 0 1px 1px var(--primary-blue);
  --shadow-blue-balt:
    0 0 4px rgba(0, 200, 255, 0.8), 0 0 8px rgba(0, 200, 255, 0.4);
  --shadow-wood: 0 6px 12px -4px rgba(0, 0, 0, 0.18);

  --border-blue: 2px solid var(var(--primary-blue));
  --border-light-blue: 1px solid var(--primary-blue);

  --background-wood:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.1)),
    radial-gradient(
      ellipse at 30% 50%,
      rgba(120, 80, 40, 0.06),
      transparent 60%
    ),
    radial-gradient(
      ellipse at 70% 40%,
      rgba(100, 60, 30, 0.05),
      transparent 65%
    ),
    linear-gradient(
      90deg,
      #f2d6b3 0%,
      #e8cfa8 20%,
      #f4ddb8 40%,
      #e2c395 60%,
      #f2d6b3 100%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(110, 75, 40, 0.08) 0px,
      rgba(110, 75, 40, 0.08) 1px,
      transparent 1px,
      transparent 10px
    );
  --background-blue:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0.2)
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(120, 170, 255, 0.05),
      transparent 70%
    ),
    linear-gradient(90deg, #f3f8ff 0%, #eef5ff 50%, #f3f8ff 100%),
    repeating-linear-gradient(
      90deg,
      rgba(90, 130, 200, 0.04) 0px,
      rgba(90, 130, 200, 0.04) 1px,
      transparent 1px,
      transparent 12px
    );
}

/* #region General Styles */
img {
  max-inline-size: 100%;
}

p {
  color: var(--primary-text);
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
}

.hidden-on-desktop {
  display: none;
}

.card {
  padding: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: fit-content;
  font-weight: 600;
  font-size: 2rem;
  font-style: var(--primary-font-style);
  border-radius: 8px;
  box-shadow: var(--shadow-blue);
  border: var(--border-blue);
  background: #ffffff;
}
.card a {
  text-decoration: none;
  color: var(--primary-text);
}

.card-transition {
  transition: transform 0.1s ease;
}
.card-transition:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* #endregion */

/* #region Navigation Bar & Nav Menu  */
.navbar {
  display: flex;
  position: sticky;
  top: 0;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  font-family: var(--primary-font-family);
  background: var(--background-wood);
  box-shadow: var(--shadow-wood);
  background-blend-mode: soft-light, multiply, multiply, normal, multiply;
  z-index: 20;
}

.nav-menu {
  display: flex;
  list-style: none;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  font-style: var(--primary-font-style);
  font-size: 2rem;
  font-weight: 400;
  transition: color 0.3s ease;
  color: var(--primary-text);
  text-shadow: 2px 2px 00px rgba(250, 250, 250, 0.3);
}
.nav-menu a.active {
  color: var(--primary-blue);
}
.nav-menu a:hover {
  color: var(--primary-blue);
}

.adjusted-image {
  width: 18rem;
  height: auto;
}
/* #endregion  */

/* #region Main Style */
.main {
  font-family: var(--primary-font-family);
  margin: 0 auto;
  line-height: 1.6;
}

/* #endregion  */

/* #region Footer Styles */
.footer {
  display: flex;
  bottom: 0;
  align-items: start;
  justify-content: center;
  text-align: center;
  font-size: 1.2rem;
  background: var(--background-wood);
  gap: 12rem;
  font-family: var(--primary-font-family);
  font-style: var(--primary-font-style);
}
.footer img {
  display: block;
  object-fit: fill;
}
.footer-title {
  color: var(--primary-text);
  font-size: 2rem;
  font-weight: 400;
}
.footer-container {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 1rem;
}
.footer-container p {
  color: var(--primary-text);
  margin: 0;
}
.footer-container h2 {
  color: var(--primary-text);
  margin: 0;
}
.footer-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-logo {
  width: 8rem;
  height: auto;
}
.footer-main-phrase {
  width: 14rem;
  height: auto;
}
.footer-second-phrase {
  width: 8rem;
  height: auto;
}

/* #endregion  */

/* #region Main Content Styles */
.main-content {
  padding: 4rem 0;
  margin: 0 auto;
  justify-items: center;
  max-width: 85%;
}

.main-bg {
  /* background-image: url("../images/sfondoFiloCasaSpezzato.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover; */
}

.main-title {
  margin: 0rem 0 4rem 0;
  color: var(--primary-text);
  font-size: 4rem;
  font-weight: 600;
  font-family: var(--primary-font-family);
  font-style: var(--primary-font-style);
}
/* #endregion  */

/* #region Home Section */
.home-content {
  margin: 0 0 4rem 0;
  justify-items: center;
  width: 100%;
}

.home-main-section {
  display: flex;
  width: 100%;
  justify-content: space-around;
  align-items: center;
}

.home-main-central {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.home-main-central h1 {
  margin: 0 auto;
  color: var(--primary-text);
  font-size: 3rem;
  font-style: var(--primary-font-style);
  font-family: var(--primary-font-family);
}

.home-main-central h2 {
  color: var(--primary-blue);
  font-size: 3rem;
  font-weight: 600;
  font-family: var(--primary-font-family);
  font-style: var(--primary-font-style);
  margin: 0;
}

.home-img-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
}

.home-main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 0.5rem;
  max-width: 60%;
}

.home-card {
  margin: 1.5rem 0 3rem 0;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  border: 3px solid var(--primary-light-blue);
  background-blend-mode: soft-light, multiply, multiply, normal, multiply;
  height: fit-content;
  width: fit-content;
  color: var(--primary-text);
  padding: 1.5rem 2.5rem;
  font-weight: 600;
  font-style: var(--primary-font-style);
}
.home-card p {
  font-size: 1.5rem;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.185);
}

.home-link-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}

.home-link-container a {
  text-decoration: none;
}

.home-links {
  display: flex;
  padding: 1.5rem;
  text-align: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-wood);
  border: var(--border-blue);
  box-shadow: var(--shadow-blue);
  cursor: pointer;
}

.home-content-keyword {
  color: var(--primary-blue);
}

/* #endregion  */

/* #region Professionist Styles */
.professionist-title {
  margin: 0rem 0 4rem 0;
  display: flex;
  gap: 1rem;
  font-size: 3rem;
  font-weight: 400;
  font-family: var(--primary-font-family);
  font-style: var(--primary-font-style);
}

.professionist-card-container {
  display: flex;
  margin: 0 auto;
  align-items: start;
  justify-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.professionist-card-image {
  flex: 1;
  min-width: 17.5rem;
  max-width: 20rem;
}

.professionist-card-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-light-blue);
  border: var(--border-light-blue);
}

.professionist-card-content {
  flex: 1;
}

.professionist-card-description {
  color: var(--primary-text);
  font-weight: 600;
  font-family: var(--primary-font-family);
  font-style: var(--primary-font-style);
  margin: 0;
}

.professionist-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 2rem 0;
}

.professionist-card-info div.container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.professionist-card-info div.container span.separator {
  width: 0.125rem;
  height: 1rem;
}

.professionist-card-info i {
  color: var(--primary-blue);
  font-size: 1.2rem;
}

/* #endregion */

/* #region Section Styles */
.section {
  margin-bottom: 3rem;
}

.section h1 {
  color: var(--primary-text);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section h2 {
  color: var(--primary-text);
  font-size: 2rem;
}

.section p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}
/* #endregion  */

/* #region Hero Section */
.hero {
  text-align: center;
  padding: 3rem 0;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--primary-text);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: #666;
}
/* #endregion  */

/* #region Spaces Title */
.spaces-title {
  margin: 0rem 0 4rem 0;
  color: var(--primary-text);
  font-size: 4rem;
  font-weight: 600;
  font-style: var(--primary-font-style);
  font-family: var(--primary-font-family);
}

.spaces-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4rem;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
/* #endregion  */

/* #region Card Layout - Alternating Image and Text */
.card-container {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.card-row {
  display: inline-flex;
  gap: 3rem;
}

.card-image {
  flex: 1;
  min-width: 17.5rem;
  transition: 0.3s ease-in;
}
.card-image:hover {
  transform: scale(1.1);
}

.card-image img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-light-blue);
  border: var(--border-light-blue);
  transition: 0.3s ease-in;
}

/* #endregion  */

/* #region  Contact Page Styles */
.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 8rem;
}
.contact-wrapper a {
  text-decoration: none;
}

.contact-about {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
}

.contact-card {
  display: flex;
  gap: 0.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow-wood);
  border: var(--border-light-blue);
  box-shadow: var(--shadow-light-blue);
  padding: 1rem;
  height: fit-content;
  width: fit-content;
  align-items: center;
  cursor: pointer;
  font-style: var(--primary-font-style);
  width: 100%;
  text-decoration: none;
}

.contact-card i {
  color: var(--primary-blue);
  font-size: 2rem;
}
.contact-card p {
  color: var(--primary-text);
  font-size: 1.5rem;
  line-height: 1.6;
  margin: 0 0;
}
.contact-card a {
  text-decoration: none;
}

.contact-way {
  display: flex;
  gap: 8rem;
  justify-content: center;
  align-items: stretch;
}
.contact-way h2 {
  margin: 0;
  color: var(--primary-text);
  font-size: 2.5rem;
  font-weight: 400;
  font-style: var(--primary-font-style);
  font-family: var(--primary-font-family);
}
.contact-way a {
  text-decoration: none;
}

.contact-way-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-ways-container {
  flex: 0 1 auto; /* prende solo lo spazio che gli serve */
  max-width: 60%; /* opzionale: evita che occupi tutto */
}

.contact-way-container h2 {
  line-height: normal;
}

.contact-ways {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

.col-sx {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2rem;
}

.col-dx {
  flex: 1;
  overflow: hidden; /* 🔥 blocca lo sforamento */
  border-radius: 8px;
  border: var(--border-light-blue);
  box-shadow: var(--shadow-blue);
  transition: transform 0.3s ease-in;
}
.col-dx:hover {
  transform: scale(1.01);
}

.col-dx img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* oppure contain */
  transition: transform 0.3s ease;
}
.col-dx img:hover {
  transform: scale(1.03);
}

.contact-us {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 3rem 0;
  width: 100%;
}

.contact-us-content {
  display: flex;
  gap: 2rem;
}
/* #endregion  */

/* #region Circular & Profile Images */
.profile-gallery {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 2rem;
}

.profile-section {
  text-align: center;
}

.profile-professionist {
  margin: 0rem 0 4rem 0;
  color: var(--primary-text);
  font-size: 4rem;
  font-weight: 600;
  font-style: var(--primary-font-style);
  font-family: var(--primary-font-family);
}

.profile-to-work-with {
  margin: 2rem 0;
  color: var(--primary-text);
  font-size: 4rem;
  font-weight: 400;
  font-style: italic;
  font-family: var(--primary-font-family);
}

.profile-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10rem;
  row-gap: 6rem;
  margin-top: 4rem;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.profile-card:hover {
  transform: scale(1.05);
}

.profile-image {
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.profile-image:hover {
  box-shadow: var(--shadow-blue);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  color: var(--primary-text);
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  font-style: var(--primary-font-style);
}

.profile-description {
  color: var(--primary-blue);
  font-size: 1.2rem;
  font-style: var(--primary-font-style);
}
/* #endregion  */

/* #region Individual Professional Page */
.professional-hero {
  padding: 2rem 2rem;
  text-align: center;
  background-color: var(--bg-color);
  margin-bottom: 2rem;
}

.professional-hero h1 {
  color: var(--primary-text);
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-family:
    American Typewriter,
    serif;
  font-weight: 300;
}

.professional-hero .subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-top: 1rem;
}
/* #endregion  */

/* #region HAMBURGER */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
}

/* #endregion  */

.logo {
  width: 12rem;
  height: auto;
  margin-bottom: 2rem;
}

.img-phrase-vertical {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.separator {
  width: 0.125rem;
  height: 1.5rem;
  background-color: var(--primary-blue);
}

/* #region Responsive design*/

/* Tablet 1086 */
@media (max-width: 1086px) {
  .main-content {
    padding: 2rem 0;
    text-align: center;
  }

  .main-title {
    margin: 0rem 0 0rem 0;
    font-size: 2.5rem;
  }

  .home-main-section {
    width: 90%;
    margin: 1rem 0 0 0;
  }

  .home-main-content {
    max-width: 90%;
    justify-content: center;
    text-align: center;
    margin: 0 1.5rem;
  }

  .home-card {
    margin: 0.5rem 0 1.5rem 0;
    padding: 0.8rem;
    font-weight: 600;
    font-size: 0.5rem;
    font-style: var(--primary-font-style);
    border: 0.1rem solid var(--primary-light-blue);
    box-shadow: var(--shadow-light-blue);
  }
  .home-card p {
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.185);
  }

  .card-row {
    gap: 1rem;
  }

  .card-image {
    min-width: 12.5rem;
  }

  .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
  }

  .footer-logo {
    width: 6rem;
    height: auto;
  }
  .footer-main-phrase {
    width: 10rem;
    height: auto;
  }
  .footer-second-phrase {
    width: 6rem;
    height: auto;
  }

  .footer-container {
    padding: 0rem;
    gap: 0rem;
  }
  .footer-title {
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
  }
  .footer-container p {
    font-size: 1rem;
  }
}

/* Tablet 780 */
@media (max-width: 780px) {
  .contact-way {
    flex-direction: column;
    width: 100%;
    gap: 2rem;
    margin-top: 1rem;
  }

  .contact-way-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .contact-way-container h2 {
    line-height: normal;
    font-size: 2rem;
  }

  .contact-card {
    display: flex;
    gap: 0.5rem;
    border-radius: 6px;
    padding: 0.5rem;
    box-sizing: border-box; /* assicura che padding non provochi overflow */
    max-width: 100%;
    overflow-wrap: anywhere; /* permette la rottura di parole/URL lunghe */
    word-break: break-word;
  }

  .contact-card i {
    color: var(--primary-blue);
    font-size: 1.2rem;
  }
  .contact-card p {
    color: var(--primary-text);
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .contact-card a {
    text-decoration: none;
    display: flex;
    border: 1px solid black;
  }

  .contact-us {
    width: 100%;
  }

  .contact-us h2 {
    margin: 0;
  }

  .contact-us-content {
    flex-direction: column;
    word-break: break-all;
    gap: 1rem;
  }

  .hidden-on-mobile {
    display: none;
  }

  .hidden-on-desktop {
    display: block;
  }

  .professionist-card-description {
    color: var(--primary-text);
    font-weight: 600;
    font-family: var(--primary-font-family);
    font-style: var(--primary-font-style);
    font-size: 1rem;
    margin: 0;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .card {
    padding: 1rem;
    font-size: 1.5rem;
    max-width: 80%;
  }

  .separator {
    width: 0.125rem;
    height: 1rem;
  }

  .navbar {
    padding: 0;
  }

  .menu-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }

  .menu-icon a.active {
    color: var(--primary-blue);
  }

  .menu-icon a {
    flex: 1;
    text-align: center;
    padding: 1rem 0;
    font-size: 1.5rem;
    color: var(--primary-text);
    text-shadow: 2px 2px 00px rgba(250, 250, 250, 0.3);
    transition: color 0.3s ease;
  }

  .main-content {
    padding: 1.5rem 0;
    text-align: center;
  }

  .main-title {
    font-size: 2.1rem;
  }

  .home-card p {
    font-size: 1rem;
  }

  .menu {
    display: none;
  }

  .menu li {
    margin: 20px 0;
    font-size: 24px;
  }

  .profile-to-work-with {
    margin: 2rem 0;
    color: var(--primary-text);
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    font-family: var(--primary-font-family);
  }

  .profile-gallery {
  }

  .profile-grid {
    gap: 0rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
  }

  .profile-card {
    gap: 0.5rem;
  }

  .profile-image {
    width: 100%;
    height: fit-content;
    max-height: 20rem;
  }

  .profile-name {
    font-size: 1.5rem;
  }
  .profile-description {
    font-size: 1rem;
  }

  .professionist-title {
    margin: 0rem 0 2rem 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 2.5rem;
    line-height: 1;
  }
  .professionist-title span {
    font-size: 1.2rem;
  }

  .professionist-card-container {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .professionist-card-image {
    width: 100%;
    max-width: none;
  }

  .professionist-card-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-light-blue);
    border: var(--border-light-blue);
  }

  .professionist-card-info {
    display: flex;
    flex-direction: column;
    margin: 1.5rem 0;
  }

  .professionist-card-info div.container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    word-break: break-all;
  }
  .professionist-card-info div.container span.separator {
    width: 0.012rem;
    height: 0.8rem;
  }

  .professionist-card-content {
    flex: 1;
  }

  .professionist-card-description {
    color: var(--primary-text);
    font-weight: 600;
    font-family: var(--primary-font-family);
    font-style: var(--primary-font-style);
    font-size: 1rem;
    margin: 0;
  }

  .card-row {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-way {
    flex-direction: column;
    width: 100%;
    gap: 2rem;
    margin-top: 1rem;
  }

  .contact-way-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .contact-way-container h2 {
    line-height: normal;
    font-size: 2rem;
  }

  .contact-card {
    display: flex;
    gap: 0.5rem;
    border-radius: 6px;
    padding: 0.5rem;
    box-sizing: border-box; /* assicura che padding non provochi overflow */
    max-width: 100%;
    overflow-wrap: anywhere; /* permette la rottura di parole/URL lunghe */
    word-break: break-word;
  }

  .contact-card i {
    color: var(--primary-blue);
    font-size: 1.2rem;
  }
  .contact-card p {
    color: var(--primary-text);
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 0 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .contact-card a {
    text-decoration: none;
    display: flex;
    border: 1px solid black;
  }

  .contact-us {
    width: 100%;
  }

  .contact-us h2 {
    margin: 0;
  }

  .contact-us-content {
    flex-direction: column;
    word-break: break-all;
    gap: 1rem;
  }

  .hidden-on-mobile {
    display: none;
  }

  .hidden-on-desktop {
    display: block;
  }

  .footer-logo {
    width: 6rem;
  }
  .footer-main-phrase {
    width: 10rem;
  }
  .footer-second-phrase {
    width: 6rem;
  }
  .footer-title {
    font-size: 1.5rem;
  }
}
/* #endregion  */
