@charset "UTF-8";
/* ==========================================================================
   C&C SRL High-Tech — contatti.css
   The Contatti page template (hero + info cards) and the shared contact form
   (also rendered inside the homepage "06 Contatti" section).

   Enqueue handle: ccsrl-contatti. Depends on ccsrl-base.
   Scope: .cc-contact* and .cc-form* only.

   Rule: no raw hex colour — tokens from base.css :root only.
   ========================================================================== */

/* ==========================================================================
   1. PAGE HERO
   ========================================================================== */

.cc-contact-hero{
  position: relative;
  overflow: hidden;
  background: var(--cc-navy);
}

/* The faint 64px yellow blueprint grid from the design source. */
.cc-contact-hero__grid{
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .06;
  background-image:
    linear-gradient(var(--cc-yellow) 1px, transparent 1px),
    linear-gradient(90deg, var(--cc-yellow) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.cc-contact-hero__inner{
  position: relative;
  z-index: 1;
  padding-top: 70px;
  padding-bottom: 56px;
}

.cc-contact-hero__eyebrow{
  margin: 0 0 18px;
  font-family: var(--cc-font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cc-yellow);
}

.cc-contact-hero__title{
  margin: 0 0 18px;
  font-family: var(--cc-font-display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--cc-surface);
  text-wrap: balance;
}

.cc-contact-hero__rule{
  display: block;
  width: 110px;
  height: 4px;
  margin: 0 0 22px;
  background: var(--cc-yellow);
}

.cc-contact-hero__sub{
  max-width: 640px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--cc-on-navy-soft);
}

/* ==========================================================================
   2. PAGE BODY — two columns
   ========================================================================== */

.cc-contact-main{
  padding: 72px 0;
  background: var(--cc-bg);
}

.cc-contact{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;

  /* Stretch, not start: the info cards were 149px shorter than the form and
     the column ended in mid-air. The cards below share the height out so both
     columns finish on the same line. */
  align-items: stretch;
}

/* ==========================================================================
   3. INFO CARDS
   ========================================================================== */

.cc-contact__info{
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cc-contact__field{
  display: flex;
  flex-direction: column;
  gap: 6px;

  /* Equal share of the column, never shorter than its own content. */
  flex: 1 1 auto;
  justify-content: center;
  padding: 28px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-top: 4px solid var(--cc-navy);
  transition: border-top-color .25s var(--cc-ease), box-shadow .25s var(--cc-ease);
}

.cc-contact__field:hover{
  border-top-color: var(--cc-orange);
  box-shadow: 0 12px 28px rgba(14, 34, 64, .08);
}

.cc-contact__label{
  font-family: var(--cc-font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cc-orange);
}

.cc-contact__value{
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--cc-navy);
}

.cc-contact__value a{
  color: var(--cc-navy);
  font-weight: 500;
}

.cc-contact__value a:hover,
.cc-contact__value a:focus-visible{
  color: var(--cc-orange);
}

.cc-contact__sep{
  color: var(--cc-text-faint);
  padding: 0 2px;
}

/* Stacked email links. */
.cc-contact__list{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.cc-contact__list .cc-contact__value{
  font-size: 16px;
}

.cc-contact__note{
  font-size: 13px;
  font-weight: 400;
  color: var(--cc-text-faint);
}

/* Social row. */
.cc-contact__social{
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.cc-contact__social-link{
  font-size: 15px;
  font-weight: 500;
  color: var(--cc-navy);
}

.cc-contact__social-link:hover,
.cc-contact__social-link:focus-visible{
  color: var(--cc-orange);
}

/* Optional editor content below the cards. */
.cc-contact__content{
  padding: 28px;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border);
  border-top: 4px solid var(--cc-navy);
  font-size: 16px;
  line-height: 1.7;
  color: var(--cc-text-muted);
}

.cc-contact__content h2,
.cc-contact__content h3{
  margin-bottom: .4em;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--cc-navy);
}

/* ==========================================================================
   4. FORM PANEL
   ========================================================================== */

.cc-contact__panel{
  min-width: 0;
}

.cc-form{
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 44px;
  background: var(--cc-navy);
  border-top: 4px solid var(--cc-yellow);
}

/* The homepage variant sits inside an already-navy section: keep it readable
   by lifting the panel one step with the mid-navy fill. */
.cc-section--navy .cc-form{
  background: var(--cc-navy-mid);
  border: 1px solid var(--cc-navy-line);
  border-top: 4px solid var(--cc-yellow);
}

.cc-section--navy .cc-form .cc-form__input,
.cc-section--navy .cc-form .cc-form__select,
.cc-section--navy .cc-form .cc-form__textarea{
  background: var(--cc-navy);
}

.cc-form--compact{
  gap: 14px;
  padding: 36px;
}

.cc-form__title{
  margin: 0 0 6px;
  font-family: var(--cc-font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--cc-surface);
}

/* --- Rows and fields ----------------------------------------------------- */

.cc-form__row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Application form: "Candidatura per il posto di" wraps to two lines in a
   narrow column while "Città" does not. Bottom-aligned, the two controls of
   a row still line up. */
.cc-form--career .cc-form__row{
  align-items: end;
}

.cc-form__field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;

  /* Anchors the focus line below. */
  position: relative;
}

/* The same line that draws across a card on hover, reused on the field the
   visitor is typing into — one idea repeated instead of two unrelated ones.
   It sits on the wrapper because inputs cannot carry pseudo-elements. */
.cc-form__field::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--cc-yellow);
  transition: width .3s var(--cc-ease);
  pointer-events: none;
}

.cc-form__field:focus-within::after{
  width: 100%;
}

/* Visible only when a caller renders a non-sr-only label. */
.cc-form__label{
  font-family: var(--cc-font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cc-on-navy-dim);
}

/* --- Controls ------------------------------------------------------------ */

.cc-form__input,
.cc-form__select,
.cc-form__textarea{
  width: 100%;
  padding: 14px 16px;
  background: var(--cc-navy-mid);
  border: 1px solid var(--cc-navy-line);
  border-radius: 0;
  font-family: var(--cc-font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--cc-surface);
  transition: border-color .25s var(--cc-ease), background-color .25s var(--cc-ease);
}

.cc-form__textarea{
  resize: vertical;
  min-height: 120px;
}

.cc-form__select{
  color: var(--cc-on-navy);
  cursor: pointer;
}

/* The select's popup list is painted by the OS: force readable option colours
   on the engines that let us. */
.cc-form__select option{
  background: var(--cc-navy);
  color: var(--cc-surface);
}

.cc-form__input::placeholder,
.cc-form__textarea::placeholder{
  color: var(--cc-on-navy-dim);
  opacity: 1;
}

.cc-form__input:hover,
.cc-form__select:hover,
.cc-form__textarea:hover{
  border-color: var(--cc-on-navy-far);
}

/* Focus keeps the base :focus-visible ring — the border change is additive,
   never a replacement for the outline. */
.cc-form__input:focus,
.cc-form__select:focus,
.cc-form__textarea:focus{
  border-color: var(--cc-yellow);
}

/* Server-side validation failed and the browser re-rendered the field. */
.cc-form__input:user-invalid,
.cc-form__textarea:user-invalid{
  border-color: var(--cc-orange);
}

/* --- Consent ------------------------------------------------------------- */

.cc-form__consent{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--cc-on-navy-mute);
}

.cc-form__checkbox{
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--cc-yellow);
  cursor: pointer;
}

.cc-form__consent-label{
  cursor: pointer;
}

.cc-form__consent-label a{
  color: var(--cc-yellow);
  text-decoration: underline;
}

.cc-form__consent-label a:hover,
.cc-form__consent-label a:focus-visible{
  color: var(--cc-surface);
}

/* --- Submit -------------------------------------------------------------- */

.cc-form__submit{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  padding: 16px;
  background: var(--cc-yellow);
  border: 1px solid transparent;
  color: var(--cc-ink);
  font-family: var(--cc-font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s var(--cc-ease), transform .25s var(--cc-ease);
}

.cc-form__submit:hover,
.cc-form__submit:focus-visible{
  background: var(--cc-yellow-dk);
  transform: translateY(-2px);
}

.cc-form__submit:focus-visible{
  outline-color: var(--cc-ink);
}

.cc-form__submit:active{
  transform: translateY(0);
}

/* --- Notices ------------------------------------------------------------- */

.cc-form__notice{
  margin: 0;
  padding: 14px 16px;
  background: var(--cc-navy-mid);
  border-left: 4px solid var(--cc-navy-line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--cc-surface);
}

.cc-form__notice--ok{
  border-left-color: var(--cc-yellow);
}

.cc-form__notice--err{
  border-left-color: var(--cc-orange);
}

.cc-form__notice:focus{
  outline: 2px solid var(--cc-yellow);
  outline-offset: 2px;
}

.cc-section--navy .cc-form__notice{
  background: var(--cc-navy);
}

/* --- Honeypot: off-screen, never display:none (bots skip hidden fields) --- */

.cc-form__hp{
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   5. CONTACT FORM 7 FALLBACK
   Styles the plugin's own markup so a CF7 form still looks like the design.
   ========================================================================== */

.cc-form--cf7 .wpcf7-form p{
  margin: 0 0 16px;
  color: var(--cc-on-navy-soft);
}

.cc-form--cf7 input[type="text"],
.cc-form--cf7 input[type="email"],
.cc-form--cf7 input[type="tel"],
.cc-form--cf7 input[type="url"],
.cc-form--cf7 input[type="date"],
.cc-form--cf7 input[type="number"],
.cc-form--cf7 select,
.cc-form--cf7 textarea{
  width: 100%;
  padding: 14px 16px;
  background: var(--cc-navy-mid);
  border: 1px solid var(--cc-navy-line);
  border-radius: 0;
  font-family: var(--cc-font-body);
  font-size: 15px;
  color: var(--cc-surface);
}

.cc-form--cf7 input[type="submit"],
.cc-form--cf7 button[type="submit"]{
  width: 100%;
  padding: 16px;
  background: var(--cc-yellow);
  border: 0;
  color: var(--cc-ink);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
}

.cc-form--cf7 input[type="submit"]:hover,
.cc-form--cf7 button[type="submit"]:hover{
  background: var(--cc-yellow-dk);
}

.cc-form--cf7 .wpcf7-not-valid-tip,
.cc-form--cf7 .wpcf7-response-output{
  color: var(--cc-yellow);
  font-size: 13px;
}

.cc-form--cf7 .wpcf7-response-output{
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--cc-navy-line);
  border-left: 4px solid var(--cc-yellow);
}

/* ==========================================================================
   6. RESPONSIVE — max-width 1100px
   ========================================================================== */

@media (max-width: 1100px){

  .cc-contact{
    grid-template-columns: 1fr 1.05fr;
    gap: 36px;
  }

  .cc-contact-main{ padding: 56px 0; }

  .cc-contact-hero__inner{
    padding-top: 56px;
    padding-bottom: 44px;
  }

  .cc-contact__field{ padding: 24px; }

  .cc-form{ padding: 34px; }

  .cc-form--compact{ padding: 30px; }
}

/* ==========================================================================
   7. RESPONSIVE — max-width 900px  (the two-column layout stacks)
   ========================================================================== */

@media (max-width: 900px){

  .cc-contact{
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cc-contact-main{ padding: 44px 0; }

  .cc-contact-hero__inner{
    padding-top: 44px;
    padding-bottom: 36px;
  }

  .cc-contact-hero__sub{ font-size: 16px; }

  .cc-contact__info{ gap: 18px; }

  .cc-form{ padding: 30px; }

  .cc-form--compact{ padding: 26px; }
}

/* ==========================================================================
   8. RESPONSIVE — max-width 640px  (the 2×2 field grid collapses)
   ========================================================================== */

@media (max-width: 640px){

  .cc-contact-main{ padding: 36px 0; }

  .cc-contact-hero__inner{
    padding-top: 34px;
    padding-bottom: 28px;
  }

  .cc-contact-hero__eyebrow{
    font-size: 11px;
    letter-spacing: 2px;
  }

  .cc-contact-hero__rule{ width: 74px; }

  .cc-contact-hero__sub{ font-size: 15px; }

  .cc-contact__field,
  .cc-contact__content{ padding: 20px; }

  .cc-contact__value,
  .cc-contact__list .cc-contact__value{ font-size: 15px; }

  .cc-contact__note{ display: block; }

  .cc-contact__social{ gap: 16px; }

  /* The 2×2 name / email grid becomes a single column. */
  .cc-form__row{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cc-form,
  .cc-form--compact{
    gap: 12px;
    padding: 22px 20px;
  }

  .cc-form__input,
  .cc-form__select,
  .cc-form__textarea{
    padding: 13px 14px;
    /* 16px keeps iOS Safari from zooming on focus. */
    font-size: 16px;
  }

  .cc-form__textarea{ min-height: 104px; }

  .cc-form__submit{
    padding: 15px;
    font-size: 13px;
    letter-spacing: 1.2px;
  }
}

/* ==========================================================================
   9. PRINT
   ========================================================================== */

@media print{

  .cc-contact{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cc-form,
  .cc-contact-hero__grid{
    display: none !important;
  }

  .cc-contact-hero{ background: none; }

  .cc-contact-hero__title,
  .cc-contact-hero__sub{ color: var(--cc-ink); }
}

/* --- Location map ---------------------------------------------------------- */

.cc-contact-map{
  margin-top: 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(30, 66, 114, 0.14);
  box-shadow: 0 14px 34px rgba(20, 40, 70, 0.10);
  background: #e9eef4;
  line-height: 0;
}

.cc-contact-map__frame{
  display: block;
  width: 100%;
  height: 440px;
  border: 0;
}

@media (max-width: 640px){
  .cc-contact-map{ margin-top: 24px; }
  .cc-contact-map__frame{ height: 300px; }
}
