/*
Theme Name: ag-diellesped
Theme URI: http://underscores.me/
Description: Wordpress Theme rapid development
Author: anonymous
Requires at least: 5.3
Tested up to: 6.0.2
Requires PHP: 7.4
Version: 0.4
*/

.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  background: url('assets/i/static/arrow.svg') no-repeat center;
  background-size: contain;
  vertical-align: middle;
  transition: transform 0.3s;
}

.menu-item-has-children:hover > a::after {
  transform: rotate(-180deg);
}

.mfp-container .mfp-arrow::before {
  background: url('assets/i/static/gallery-right-black.svg') no-repeat center;
}

.mfp-container .mfp-arrow:hover:before {
  background: url('assets/i/static/gallery-right-white.svg') no-repeat center;
}

@font-face {
  font-family: 'Aeonik';
  src:
    url('assets/fonts/aeonik-regular.woff2') format('woff2'),
    url('assets/fonts/aeonik-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src:
    url('assets/fonts/aeonik-light.woff2') format('woff2'),
    url('assets/fonts/aeonik-light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src:
    url('assets/fonts/aeonik-medium.woff2') format('woff2'),
    url('assets/fonts/aeonik-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src:
    url('assets/fonts/aeonik-airitalic.woff2') format('woff2'),
    url('assets/fonts/aeonik-airitalic.woff') format('woff');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src:
    url('assets/fonts/aeonik-blackitalic.woff2') format('woff2'),
    url('assets/fonts/aeonik-blackitalic.woff') format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src:
    url('assets/fonts/aeonik-thinitalic.woff2') format('woff2'),
    url('assets/fonts/aeonik-thinitalic.woff') format('woff');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src:
    url('assets/fonts/aeonik-black.woff2') format('woff2'),
    url('assets/fonts/aeonik-black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src:
    url('assets/fonts/aeonik-thin.woff2') format('woff2'),
    url('assets/fonts/aeonik-thin.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src:
    url('assets/fonts/aeonik-air.woff2') format('woff2'),
    url('assets/fonts/aeonik-air.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src:
    url('assets/fonts/aeonik-bold.woff2') format('woff2'),
    url('assets/fonts/aeonik-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src:
    url('assets/fonts/aeonik-bolditalic.woff2') format('woff2'),
    url('assets/fonts/aeonik-bolditalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src:
    url('assets/fonts/aeonik-mediumitalic.woff2') format('woff2'),
    url('assets/fonts/aeonik-mediumitalic.woff') format('woff');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src:
    url('assets/fonts/aeonik-lightitalic.woff2') format('woff2'),
    url('assets/fonts/aeonik-lightitalic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src:
    url('assets/fonts/aeonik-regularitalic.woff2') format('woff2'),
    url('assets/fonts/aeonik-regularitalic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* File input */
.form-group--file input[type='file']::file-selector-button {
  cursor: pointer;
}

.form-group--file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-group--file .wpcf7-form-control-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 100%;
  z-index: 2;
  overflow: visible;
}

.form-group--file .wpcf7-not-valid-tip {
  width: max-content;
}

.form-group--file input[type='file'] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.form-group--file .form-file__label {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-group--file .form-file__label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url('assets/i/static/paperclip.svg') no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

.form-group--file .form-file__label {
  font-size: 16px;
  color: #fff;
}

.form-file__remove {
  padding: 4px 8px;
  font-size: 14px;
  color: #ff4848;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 3;
}

.form-file__remove:hover {
  opacity: 1;
}

.form-group--file .form-file__label.has-focus {
  outline: 2px solid white;
  outline-offset: 2px;
}
