/* ==========================================================================
   Antonio Lo Cascio - Static Stylesheet
   Responsive, self-contained CSS reproducing https://antoniolocascio.it
   ========================================================================== */

/* --- Fonts & Icon Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;600;700&display=swap');

@font-face {
  font-family: 'sow-elegantline';
  src: url('../fonts/elegantline.woff') format('woff'),
       url('../fonts/elegantline.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'sow-icomoon';
  src: url('../fonts/icomoon.woff') format('woff'),
       url('../fonts/icomoon.ttf') format('truetype'),
       url('../fonts/icomoon.svg') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'sow-fontawesome-brands';
  src: url('../fonts/fa-brands-400.woff2') format('woff2'),
       url('../fonts/fa-brands-400.woff') format('woff'),
       url('../fonts/fa-brands-400.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'sow-fontawesome-free';
  src: url('../fonts/fa-solid-900.woff2') format('woff2'),
       url('../fonts/fa-solid-900.woff') format('woff'),
       url('../fonts/fa-solid-900.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'vantage-icons';
  src: url('../fonts/vantage-icons.woff') format('woff'),
       url('../fonts/vantage-icons.ttf') format('truetype'),
       url('../fonts/vantage-icons.svg') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Icon Classes */
.sow-icon-elegantline {
  font-family: 'sow-elegantline';
  display: inline-block;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
.sow-icon-elegantline[data-sow-icon]:before {
  content: attr(data-sow-icon);
}

.sow-icon-icomoon {
  font-family: 'sow-icomoon';
  display: inline-block;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
.sow-icon-icomoon[data-sow-icon]:before {
  content: attr(data-sow-icon);
}

.sow-icon-fontawesome.sow-fas {
  font-family: 'sow-fontawesome-free';
  font-weight: 900;
  display: inline-block;
  font-style: normal;
  line-height: 1;
}
.sow-icon-fontawesome.sow-fab {
  font-family: 'sow-fontawesome-brands';
  font-weight: normal;
  display: inline-block;
  font-style: normal;
  line-height: 1;
}
.sow-icon-fontawesome[data-sow-icon]:before {
  content: attr(data-sow-icon);
}

.vantage-icon-search:before {
  font-family: 'vantage-icons';
  content: "\e600";
}
.vantage-icon-arrow-up:before {
  font-family: 'vantage-icons';
  content: "\e604";
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inconsolata', monospace;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: #404040;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: #3a5161;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #d2860e;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inconsolata', monospace;
  font-weight: 700;
  margin-top: 0;
  color: #292929;
}

.full-container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

/* --- Masthead / Header --- */
#masthead {
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  z-index: 100;
}

#masthead .hgroup {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 25px;
  padding-bottom: 25px;
}

#masthead .logo {
  text-decoration: none;
}

#masthead .logo h1.site-title {
  font-size: 42px;
  font-weight: 700;
  color: #000000;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

#masthead .support-text {
  font-size: 16px;
  color: #666666;
  font-style: italic;
  font-weight: 400;
  text-align: right;
}

/* --- Main Navigation --- */
.main-navigation {
  background-color: #ffffff;
  border-top: 1px solid #f2f2f2;
  border-bottom: 1px solid #eeeeee;
  width: 100%;
  position: relative;
  z-index: 990;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.main-navigation.sticky {
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
}

.main-navigation .full-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-one-page-menu-container {
  display: flex;
}

ul.menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

ul.menu li {
  position: relative;
}

ul.menu li a {
  display: block;
  padding: 12px 20px;
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s ease;
}

ul.menu li#menu-item-21 a,
ul.menu li.current-menu-item a {
  font-size: 14px;
  font-weight: 700;
  color: #ca3232;
}

ul.menu li a:hover {
  color: #d2860e;
  text-decoration: none;
}

/* Search Icon */
#search-icon {
  position: relative;
  display: flex;
  align-items: center;
}

#search-icon #search-icon-icon {
  padding: 10px;
  cursor: pointer;
  color: #000000;
  font-size: 16px;
}
#search-icon #search-icon-icon:hover {
  color: #464646;
}

#search-icon .searchform {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #ffffff;
  padding: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #e5e5e5;
  z-index: 1000;
}
#search-icon:hover .searchform,
#search-icon .searchform:focus-within {
  display: block;
}

#search-icon .searchform input.field {
  padding: 8px 12px;
  font-family: 'Inconsolata', monospace;
  font-size: 13px;
  border: 1px solid #ccc;
  outline: none;
  width: 180px;
}

/* Mobile Nav Elements */
.menu-mobilenav-container {
  display: none;
}
.mobilenav-main-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #000000;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.mobile-nav-icon {
  display: inline-block;
  width: 18px;
  height: 2px;
  background-color: #000000;
  position: relative;
  margin-right: 8px;
}
.mobile-nav-icon::before,
.mobile-nav-icon::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background-color: #000000;
  left: 0;
}
.mobile-nav-icon::before { top: -6px; }
.mobile-nav-icon::after { top: 6px; }

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 720px;
  background-color: #222222;
  background-image: url('../images/cover-14.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 5px 15px #000000;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  padding: 80px 20px 40px 20px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 65px;
  color: #ffffff;
  margin: 0 0 15px 0;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  font-weight: 400;
}
.hero-content h1 strong {
  font-weight: 700;
}

.hero-content p {
  font-size: 23px;
  color: #ffffff;
  margin: 0 auto 30px auto;
  max-width: 850px;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.hero-arrow {
  display: inline-block;
  margin-top: 20px;
  color: #ffffff !important;
  font-size: 36px;
  line-height: 1;
  text-decoration: none !important;
  animation: heroBounce 2s infinite;
  transition: transform 0.2s ease;
}
.hero-arrow:hover {
  transform: translateY(5px);
}

@keyframes heroBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}

/* --- Section Titles & Headlines --- */
.section-headline-wrap {
  text-align: left;
  margin-bottom: 45px;
}

.sow-headline {
  font-size: 4em;
  color: #292929;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 5px;
  font-weight: 700;
}

.sow-sub-headline {
  font-size: 1.4em;
  color: #404040;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 400;
}

/* --- Sezione Servizi ("COSA FACCIO...") --- */
#servizi-section {
  padding-top: 100px;
  padding-bottom: 45px;
}

.features-grid-row-1 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 35px;
}

.features-grid-row-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 45px;
}

.feature-col-50 {
  flex: 1 1 calc(50% - 15px);
  max-width: calc(50% - 15px);
  display: flex;
  flex-direction: column;
}

.feature-col-33 {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  display: flex;
  flex-direction: column;
}

.sow-icon-container {
  width: 90px;
  height: 90px;
  margin: 0 auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #404040;
}

.feature-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #292929;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.3;
}

.feature-text {
  font-size: 14px;
  line-height: 1.6;
  color: #404040;
  text-align: left;
}

/* --- Sezione Metodo ("COME LO FACCIO...") --- */
#metodo-section {
  padding-top: 30px;
  padding-bottom: 50px;
}

.metodo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.metodo-col {
  flex: 1 1 calc(50% - 15px);
  max-width: calc(50% - 15px);
  display: flex;
  flex-direction: column;
}

/* --- Sezione Bio ("CHI SONO") --- */
#about {
  padding-top: 60px;
  padding-bottom: 80px;
}

.about-grid {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.about-photo-col {
  flex: 0 0 250px;
  text-align: center;
}

.about-photo-col img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.about-text-col {
  flex: 1;
}

.about-text-col p {
  font-size: 14px;
  line-height: 1.8;
  color: #404040;
  margin-top: 0;
  margin-bottom: 20px;
}

/* --- Sezione Contatti ("CONTATTI") --- */
#contatti {
  padding-top: 60px;
  padding-bottom: 60px;
}

.map-container {
  width: 100%;
  margin: 40px auto;
  text-align: center;
  overflow: hidden;
}

.map-container img {
  width: 100%;
  max-width: 1280px;
  height: auto;
  margin: 0 auto;
  border-radius: 2px;
}

/* Contact Info Card (senza form) */
.contact-info-card {
  max-width: 520px;
  margin: 30px auto 0 auto;
  background: #ffffff;
  padding: 35px 40px;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.contact-info-card h3.widget-title {
  font-size: 24px;
  font-weight: 700;
  color: #292929;
  margin-bottom: 20px;
  border-bottom: 2px solid #ca3232;
  display: inline-block;
  padding-bottom: 6px;
}

.contact-info-card p {
  font-size: 16px;
  line-height: 1.8;
  margin: 10px 0;
  color: #404040;
}

.contact-info-card p a {
  color: #3a5161;
  font-weight: 600;
  text-decoration: none;
}
.contact-info-card p a:hover {
  color: #d2860e;
  text-decoration: underline;
}

/* --- Footer --- */
#colophon {
  background-color: #3a5161;
  color: #ffffff;
  padding: 45px 20px 35px 20px;
  text-align: center;
}

.social-media-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}

.sow-social-media-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  text-decoration: none !important;
  transition: transform 0.2s ease, opacity 0.2s ease;
  background-color: #496374;
}

.sow-social-media-button:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.sow-social-media-button-envelope-0 {
  background-color: #ca3232;
}

.sow-social-media-button-phone-0 {
  background-color: #018c99;
}

.sow-social-media-button-linkedin-0 {
  background-color: #0077b5;
}

.sow-social-media-button-AICP-0 {
  background-color: transparent;
  overflow: hidden;
}

.sow-social-media-button-AICP-0 .sow-icon-image {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

#site-info {
  font-size: 13px;
  color: #ffffff;
  line-height: 1.6;
  opacity: 0.9;
}

/* --- Scroll To Top Button --- */
#scroll-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 42px;
  height: 42px;
  background-color: #d2860e;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
}

#scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#scroll-to-top:hover {
  background-color: #b8740a;
  transform: translateY(-2px);
}

/* --- Responsive Media Queries --- */

/* Tablets & Small Desktops (<= 992px) */
@media screen and (max-width: 992px) {
  #masthead .logo h1.site-title {
    font-size: 36px;
  }
  .hero-content h1 {
    font-size: 52px;
  }
  .hero-content p {
    font-size: 20px;
  }
  .sow-headline {
    font-size: 3em;
  }
}

/* Mobile & Small Tablets (<= 780px) */
@media screen and (max-width: 780px) {
  #masthead .hgroup {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  #masthead .logo h1.site-title {
    font-size: 32px;
  }
  #masthead .support-text {
    text-align: center;
    font-size: 14px;
  }

  /* Mobile Nav Menu */
  .menu-mobilenav-container {
    display: block;
  }
  .mobilenav-main-link {
    cursor: pointer;
  }
  .menu-one-page-menu-container {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eeeeee;
  }
  .menu-one-page-menu-container.open {
    display: block;
  }
  ul.menu {
    flex-direction: column;
  }
  ul.menu li a {
    padding: 12px 20px;
    border-bottom: 1px solid #f4f4f4;
  }

  /* Hero Mobile */
  .hero-section {
    min-height: 520px;
  }
  .hero-content {
    padding-top: 40px;
    padding-bottom: 30px;
  }
  .hero-content h1 {
    font-size: 36px;
  }
  .hero-content p {
    font-size: 17px;
  }

  /* Headings */
  .sow-headline {
    font-size: 2.5em;
  }
  .sow-sub-headline {
    font-size: 1.2em;
  }

  /* Features Grid Stacking */
  #servizi-section {
    padding-top: 50px;
    padding-bottom: 30px;
  }
  .feature-col-50,
  .feature-col-33,
  .metodo-col {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 25px;
  }
  .features-grid-row-1,
  .features-grid-row-2,
  .metodo-grid {
    gap: 15px;
  }

  /* About Grid Stacking */
  #about {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .about-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }
  .about-text-col p {
    text-align: left;
  }

  /* Contact Card */
  #contatti {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .contact-info-card {
    padding: 25px 20px;
    margin: 20px 15px 0 15px;
  }

  /* Footer */
  #site-info {
    font-size: 12px;
  }
}

/* Extra Small Mobile (<= 480px) */
@media screen and (max-width: 480px) {
  #masthead .logo h1.site-title {
    font-size: 28px;
  }
  .hero-content h1 {
    font-size: 30px;
  }
  .hero-content p {
    font-size: 15px;
  }
  .sow-headline {
    font-size: 2.2em;
  }
}
